Hello awesome community!
This is my first take on using UIBuilder, so please correct the newbie!
I want to have a lookup in a parameter, Table name: "PurchAgreementHeader" Field Name: "PurchNumberSequence".
The drop down button appears next to the parameter field, but once I click on it I get this error saying: "The data source is not embedded within a (parent) data source."
I believe the issue is coming from the lookup method, so here how my lookup method looks like:
public void lookup(FormStringControl _control)
{
Query query = new Query();
QueryBuildDataSource qbds;
sysTableLookup = SysTableLookup::newParameters(tableNum(PurchAgreementHeader), _control);
sysTableLookup.addLookupfield(fieldNum(PurchAgreementHeader, PurchNumberSequence));
sysTableLookup.addSelectionField(fieldNum(PurchAgreementHeader, PurchNumberSequence));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}
Is there something wrong in the lookup method?
Any advice would be appreciated :)
Thanks in advance!
*This post is locked for comments
I have the same question (0)