Horje
ax 2012 dialog reference field lookup Code Example
ax 2012 dialog reference field lookup
// This is the new lookup
private Common lookupWorker(FormReferenceControl _ctrl)
{
    SysReferenceTableLookup  tableLookup = SysReferenceTableLookup::newParameters(tableNum(HcmWorker), _ctrl);
    Query query = new Query();
    QueryBuildDataSource qbds = query.addDataSource(tableNum(HcmWorker));
    
    // Here you would have some ranges    

    tableLookup.parmQuery(query);
    tableLookup.addLookupfield(fieldNum(HcmWorker, Person));

    return tableLookup.performFormLookup();
}

// This is how you override the standard lookup
Dialog dialog = new Dialog("Select user");
DialogField df = dialog.addField(extendedTypeStr(HcmWorkerRecId),"User");

df.registerOverrideMethod(methodstr(FormReferenceControl, lookupReference),
                          methodstr(YourClass, lookupWorker),
                          this);

dialog.run();




Whatever

Related
Undefined offset: 7 in D:\xamp\htdocs\PHP\function\function.php on line 137 Code Example Undefined offset: 7 in D:\xamp\htdocs\PHP\function\function.php on line 137 Code Example
The bus between the CPU and the L2 cache inside the CPU housing is called Code Example The bus between the CPU and the L2 cache inside the CPU housing is called Code Example
ceiling symbol latex Code Example ceiling symbol latex Code Example
terminaor shortcut Code Example terminaor shortcut Code Example
dapper insert record when entity properties have the same names as the SQL columns. Code Example dapper insert record when entity properties have the same names as the SQL columns. Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8