Hello,
I have a simple custom lookup that is using a view. I want to be able to retrieve the entire record of the selected row (and not just 1 field). I saw some examples, but wasn't able to get it to work correctly. Could someone point me in the right direction?
public void lookup()
{
SysTableLookup sysTableLookup = SysTableLookup::newParameters(tablenum(CustomView), this);
Query query = new Query();
;
sysTableLookup.addLookupField(fieldnum(CustomView, FieldA), true);
sysTableLookup.addLookupField(fieldnum(CustomView, FieldB));
query.addDataSource(tablenum(CustomView));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}
Any help would be appreciated.
Thanks,
Charu