Setting dropdown contents on programmatic row creation
How do I set the options for a child dropdown list in a subform row when I create the row based on a template from a parent row. I've tried a few methods, but it seems like the UI for the row just doesn't exist until the function exits.
e.g.
- for each value in newitemsrequired
- {
- newrow = booking.subrows();
- newrow.parentcolumn = booking.parentdefault;
- newrow.childcolumn = booking.childdefault;
- newrow.childcolumn:ui.add(getChildValues(newrow.parentcolumn)); //This does not work as the UI hasn't been generated yet.
- input.subrows.insert(newrow);
- }