Hi,
I have created a dialog form /MultiPrint/ with a grid and have added the form to Menubutton /Multiselect/ in /salesTable/ form's action pane.
Requirement is, from the SalesLine grid the selected multilines, should be captured in my dialog form.
I have written in my /MultiPrint/ form datasource init method as follows: But only one line is getting captured in dialog form. Is there any other approach?
.
public void init()
{
MultiPrintTableMultilineTable;
SalesLine lsalesLine;
MultiSelectionHelper helper = MultiSelectionHelper::construct();
super();
FormDataSource multiLine = element.args().record().datasource();
helper.parmDatasource(multiLine);
lsalesLine = helper.getFirst();
while(lsalesLine.RecId != 0)
{
MultilineTable.UnitOfMeasure = lsalesLine.SalesUnit;
MultilineTable.CustAccount = lsalesLine.CustAccount;
MultilineTable.insert();
lsalesLine = helper.getNext();
}
MultiPrintTable.linkPhysicalTableInstance(MultilineTable);
}