Hi, I've got a form with a list control in it, and I want to update the total of the lines (in the main form) when an entry is added or changed in the list control. I've tried a few things from here but nothing seems to work in the New form.
fd.rendered(function() {
// disable the field
fd.field('Total').disabled = true;
fd.field('Order_x0020_Number').disabled = true;
fd.field('Order_x0020_Number').value = getOrdVar();
//refreshing the total
var myVar = setInterval(calcTotal, 2000);
fd.control('SPDataTable1').$on('change', function() {
fd.control('SPDataTable1').widget.bind("dataBound",function(){
calcTotal();
})
});
});
The calcTotal function updates the Total in the main form.
Could you show me where I'm going wrong?
NB the child form is in non-dialog view