hi,
in ax7 i have created form
ds - vendtrans
i have created field payment destination
where i used the override method lookup
inside which the code below is there,
when i run the form ..when i select the value from lookup it throws the error
"more than one form was opened at once for the lookup control".
Query query;
QueryBuildDataSource qbds;
QueryBuildRange qbr;
SysTableLookup lookup;
query = new Query();
qbds = query.addDataSource(tableNum(VendTrans));
qbr = qbds.addRange(fieldNum(VendTrans,AccountNum));
lookup = SysTableLookup::newParameters(tableNum(VendTrans),PaymentDestination,true);
lookup.parmQuery(query);
lookup.addLookupField(fieldNum(VendTrans, AccountNum), true);
lookup.performFormLookup();
super();
*This post is locked for comments