Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

SysQueryForm add field in lookup

$
0
0

I would like to add the field_id in the range lookup to see the true database fieldName but I`m not able to display any row in lookup.

 

Is it possible to modify sysqueryform lookup?

 

public void lookup()  // this is what i have tried

{

 

SysTableLookup sysTableLookup = SysTableLookup::newParameters(tablenum(TmpSysQuery),this);

Query query = new Query();

QueryBuildDataSource queryBuildDataSource;

    ;

 

queryBuildDataSource = query.addDataSource(tablenum(TmpSysQuery));

sysTableLookup.parmQuery(query);

sysTableLookup.addLookupfield(fieldnum(TmpSysQuery,FieldLabel));

sysTableLookup.addLookupfield(fieldnum(TmpSysQuery,field_id));

sysTableLookup.performFormLookup();

 

}

 


Viewing all articles
Browse latest Browse all 9880

Trending Articles