Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By mpmichael
#783906
Hello,

I try to fill values in a grid unsing this code:
Code: Select all
var grd = $("#progrid").find(".pmdynaform-grid-row");
  var jahr = $("#projahr").getValue;
  var monat = $("#promonat").getValue;
  for (i=1; i <= grd.length; i++) 
  {
    document.getElementById("form[progrid]["+i+"][sel_jahr]").value = jahr;
    document.getElementById("form[progrid]["+i+"][sel_monat]").value = monat;
  }
But in both fields (sel_jahr and sel_monat) I get this message:
function (row,col) {"use strict"; var field = getFieldById(this.attr("id")) || null, val = null; if (field) { if (val === null && field.model.get("type") === "grid" && row !== undefined && col !== undefined){ val = field.getValue(row, col); } if (val === null && field.getData ){ val = field.getValue(); } if (val === null || val === undefined) { if (field && field.getLabel) { val = field.getLabel(); } } }else{ null; } return val; }
Any ideas what was going wrong?
Thanks for any suggestions...
mpm
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]