Here's the full init method. I've noticed that everything is great
(using info()) until after the super() call. This leads me to
believe that the forms datasource init method needs to be
overwritten, but not 100% sure how.
void init()
{
Salesline _fromSalesLine;
FormDataSource _fromSalesLine_ds;
;
if (element.args().dataset() == tableNum(salesLine))
{
_fromSalesLine = element.args().record();
_fromSalesLine_ds = element.args().record().dataSource();
info( "assigned fromSalesLine before super: " +
_fromSalesLine.itemId);
}
thisFormsDS = _fromSalesLine_ds.getFirst(true);
if (thisFormsDS)
{
thisFormsDS = _fromSalesLine_ds.getFirst(true);
info( "first from thisFormsDS: " + thisFormsDS.ItemId);
while (thisFormsDS)
{
thisFormsDS = _fromSalesLine_ds.getNext();
info( "next from thisFormsDS: " +
thisFormsDS.ItemId);
}
}
super();
info ("AFTER main init's super call thisFormsDS: " +
thisFormsDS.ItemId);
}