1. Writing lookup method for a field at datasource level
2. Written code
public void lookup(FormControl _formControl, str _filterStr)
{
SysTableLookup sysTableLookup;
;
//Create an instance of SysTableLookup with the form control passed in
sysTableLookup = SysTableLookup::newParameters(tablenum(DAPInsuranceLevels), _formControl);
//Add the fields to be shown in the lookup form
sysTableLookup.addLookupfield(fieldnum(DAPInsuranceLevels, levelid), true);
sysTableLookup.addLookupfield(fieldnum(DAPInsuranceLevels, Description), true);
// Perform lookup
sysTableLookup.performFormLookup();
}
3. Output at form level
No comments:
Post a Comment