Hi all,
I want to add value from my lookup StringEdit in a form.
I want to add the datasource of the form (it already has range/query)
How can i achieve that? here is my code, it works but has error: The form datasource query object does not support changing its AllowCrossCompany property after the form has executed the query.
It shows like the grid in datasource shows but Error occur when i click the dropdown multiple times. here is my code:
public void lookup()
{
Query qry = CustTrans_ds.query();
QueryBuildDataSource queryBuildDataSource;
SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(CustTrans), this);
sysTableLookup.addLookupField(fieldNum(CustTrans, Voucher));
sysTableLookup.parmQuery(qry);
sysTableLookup.performFormLookup();
//super();
}
*This post is locked for comments
I have the same question (0)