Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 710 Bytes

20180708_nuAddRow.md

File metadata and controls

29 lines (19 loc) · 710 Bytes

Issue:

I created a form that contains a subform grid. Upon loading the edit screen, I run a script to add some additional rows (eg. 5) to the subform. But just one row is added, not 5!

The issue only occurs when the the first object in a grid row is a lookup object

https://forums.nubuilder.com/viewtopic.php?f=19&t=9614

Workaround 1:

If you add a timeout before adding a new row, all rows will be added. https://forums.nubuilder.com/viewtopic.php?f=19&t=9614&hilit=workaround#p17644

var d  = 50;
for (i = 0; i < 20; i++) {
  setTimeout(function() {
  nuAddRow('accform' );
}, d);
d += 50;
}

Workaround 2:

The adding works well if the lookup is not the first element in the row.