Hi all,
In UI Report Builder, how to create a report parameter Dialog that accept multiple value. As usual the Dialog Field that I want, lets say Customer account number, the Dialog field will have Lookup from Customer Table, but I want it to be able to receive multiple or a range like this
Customer account : TEST001, TEST002, TEST99
or
Customer account : TEST001..TEST100
For the lookup creation in report UI Builder, usually I create like this
class MyrRptUIBuilder extends SrsReportDataContractUIBuilder
{
MyContract RptContract;
public void myCustLookup(FormStringControl _lookup)
{
Query query = new Query();
QueryBuildDataSource qbds;
//QueryBuildRange qbr;
SysTableLookup sysTableLookUp;
if (_lookup != null)
{
sysTableLookUp = SysTableLookup::newParameters(tableNum(CustTable), _lookup);
sysTableLookUp.addLookupfield(fieldNum(CustTable, AccoutnNum));
qbds = query.addDataSource(tableNum(CustTable));
sysTableLookUp.parmQuery(query);
sysTableLookUp.performFormLookup();
}
}
public void postRun()
{
DialogField dlgCustomer;
RptContract = this.dataContractObject() as MyContract;
super();
dlgCustomer= this.bindInfo().getDialogField(this.dataContractObject(),methodStr(MyContract, parmCustomer));
dlgCustomer.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(MyrRptUIBuilder , myCustLookup),this);
}
}
Thanks.