RE: Problem in Multi selection lookup parameter name
Hi Mohit Rampal ,
here is my code snippet.
class DemoMultiLookupUIBuilder extends SysOperationAutomaticUIBuilder
{
OCMS_PurchReqContract contract;
DialogField Dialogpriority;
public void postBuild()
{
contract = this.dataContractObject() as OCMS_PurchReqContract;
Dialogpriority = this.bindInfo().getDialogField(contract, methodStr(OCMS_PurchReqContract, parmPriority));
Dialogpriority.lookupButton(FormLookupButton::Always);
}
public void postRun()
{
Query query = new Query();
QueryBuildDataSource qbdsLegalEntity = query.addDataSource(tablenum(PurchReqLine));
qbdsLegalEntity.fields().addField(fieldNum(PurchReqLine, Priority));
qbdsLegalEntity.addGroupByField(fieldNum(PurchReqLine, Priority));
// qbdsLegalEntity.fields().addField(fieldNum(PurchReqLine, Name));
container selectedFields = [tableNum(PurchReqLine), fieldNum(PurchReqLine, Priority)];
SysLookupMultiSelectCtrl::constructWithQuery(this.dialog().dialogForm().formRun(), Dialogpriority.control(), query, false, selectedFields);
}
}