- Mon Aug 24, 2015 6:37 am
#783906
Hello,
I try to fill values in a grid unsing this code:
Thanks for any suggestions...
mpm
I try to fill values in a grid unsing this code:
Code: Select all
But in both fields (sel_jahr and sel_monat) I get this message: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;
}
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