Lookup form reference for EDT
Step 1 : Create one form with the required fields MyTable
Under Form level
---------------------------------------
void init()
{
;
super();
element.selectMode( control_LookupField);
}
public void run()
{
FormStringControl callingControl = SysTableLookup::getCallerStringControl(element.args());
boolean filterLookup;
;
filterLookup = SysTableLookup::filterLookupPreRun(callingControl, control_LookupField , TableName_ds);
super();
SysTableLookup::filterLookupPostRun(filterLookup, callingControl.text(), control_LookupField , TableName_ds );
}
Under form datasource node
-----------------------------------------
void init()
{
Query query = new Query();
;
super();
query.addDataSource(tablenum( MyTable));
this.query(query);
}
Step 2 : Provide the name of form to the EDT in formref property
No comments:
Post a Comment