private void lookupAgentBroker(FormStringControl _formStringControl)
{
//Query query = new Query();
//QueryBuildDataSource qbds;
//SysTableLookup sysTableLookup;
//sysTableLookup = sysTableLookup::newParameters(tableNum(CustTrans), _formStringControl);
//sysTableLookup.addLookupfield(fieldNum(CustTrans, CICAgentBroker));
//qbds = query.addDataSource(tableNum(CustTrans));
//qbds.addGroupByField(fieldNum(CustTrans,CICAgentBroker));
//qbds.orderMode(OrderMode::GroupBy);//To avoid duplicate lookup value
//sysTableLookup.parmQuery(query);
//sysTableLookup.parmUseLookupValue(false);
//sysTableLookup.performFormLookup();
}
{
//Query query = new Query();
//QueryBuildDataSource qbds;
//SysTableLookup sysTableLookup;
//sysTableLookup = sysTableLookup::newParameters(tableNum(CustTrans), _formStringControl);
//sysTableLookup.addLookupfield(fieldNum(CustTrans, CICAgentBroker));
//qbds = query.addDataSource(tableNum(CustTrans));
//qbds.addGroupByField(fieldNum(CustTrans,CICAgentBroker));
//qbds.orderMode(OrderMode::GroupBy);//To avoid duplicate lookup value
//sysTableLookup.parmQuery(query);
//sysTableLookup.parmUseLookupValue(false);
//sysTableLookup.performFormLookup();
}
No comments:
Post a Comment