Hi everyone,İ have a question.İ have a table BoraxEmplTable and their method,İ have a form AlbArhivePlanTable.İ open
AlbArhivePlanTable and call this lookup method in a field like this.
public void lookup()
{
super();
BoraxEmplTable::lookupOldEmplId(this);
}
İ have 4 column in lookup.İ want all column value .How can i get all column value when i select a record in lookup.İ want EmplId,EmplName value to use .How can i get it in lookup closed?
and this is my lookup method.
public static void lookupOldEmplId(FormControl _formControl)
{
Query query = new Query();
QueryBuildDataSource queryBuildDataSource;
SysTableLookup sysTableLookup;
;
changecompany (curext())
{
query.addDataSource(tablenum(BorAXEmplTable));
sysTableLookup = SysTableLookup::newParameters(tablenum(BorAXEmplTable), _formControl);
sysTableLookup.addLookupfield(fieldnum(BorAXEmplTable, OldEmplId),true);
sysTableLookup.addLookupfield(fieldnum(BorAXEmplTable, EmplId));
sysTableLookup.addLookupfield(fieldnum(BorAXEmplTable, EmplName));
sysTableLookup.addLookupfield(fieldnum(BorAXEmplTable, BorAXDivision));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}
}
İ want EmplId and EmplName value when the record is selected in lookup.Please help me!