SQL report - Multivalue real data type Parameter - "List Object not Initialized"

Hi, 

I am trying to create a real data type parameter which accepts multi values in an SSRS report.

I have to key-in a random list of quantities. There is no table data as drop down.

So I have coded as below.

Contract Class

[
DataMemberAttribute('PrintQtys'),
AifCollectionTypeAttribute("PrintQtyList", Types::Real),
SysOperationLabelAttribute(literalStr("Print Quantities")),
SysOperationGroupMemberAttribute('Criteria'),
SysOperationDisplayOrderAttribute('5')
]
public List parmQuantities(List _qty = Qty)
{
qty = _qty;
return qty;
}

ReportUIBuilder Class

private void QtyLookup(FormStringControl _control)
{
msCtrlQty = SysLookupMultiSelectGrid::construct(_control, _control);
_control.text("");
msCtrlQty.run();
}

public void postBuild()
{
super();


//BOMID
dfBOMId = this.bindInfo().getDialogField(contract, methodStr(<Contracttable>, parmBOMID));
dfBOMId.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(<ReportUIBuilderClass>, BOMIdLookup), this);
if (dfBOMId){
dfBOMId.lookupButton(2);
}

//PrintQuantities


dfQuantity = this.bindInfo().getDialogField(contract, methodStr(<Contracttable>, parmQuantities));
dfQuantity.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(<ReportUIBuilderClass>, QtyLookup), this);
if (dfQuantity){
dfQuantity.lookupButton(2);
}

Let me know how to fix this so i can key-in multiple real values.

Thanks,

Lakshmi

Related
Recommended