Hi Blue,
In the first link, I tried to follow it, but under the Lookup method, I got stuck in SysLookUpMultiSelectCtrl.
private void lookupVendor()
{
Query query = new Query();
QueryBuildDataSource qbd, qbdPerson;
TableId multiSelectTableNum = tableNum(VendTable);
container selectedFields = [multiSelectTableNum, fieldName2id(multiSelectTableNum, fieldStr(VendTable, AccountNum))];
qbd = query.addDataSource(tableNum(VendTable));
qbd.addSelectionField(fieldNum(VendTable, AccountNum));
qbd.fields().dynamic(NoYes::No);
qbd.fields().clearFieldList();
qbd.fields().addField(fieldNum(VendTable, AccountNum));
qbd.addRange(fieldNum(VendTable, HRRSPayrollVendor)).value(queryValue(NoYes::Yes));
qbdPerson = qbd.addDataSource(tableNum(DirPartyTable));
qbdPerson.fields().dynamic(NoYes::No);
qbdPerson.fields().clearFieldList();
qbdPerson.fields().addField(fieldNum(DirPartyTable, Name));
qbdPerson.relations(true);
SysLookupMultiSelectCtrl::constructWithQuery(this.dialog().dialogForm().formRun(), vendordf.control(), query, false, selectedFields);
}
After the statement this.dialog() there is no access to dialogForm().FormRun()
Do you know where is that come from ?
I think the blog is not complete, also what should happened in Report Data Provider Class ? In that UIBuilder class, there is a variable VendorList which is not used anywhere in the sample.
Thanks,