web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SSRS multi value real data type parameter

(0) ShareShare
ReportReport
Posted on by 1,307

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);
}

the report is throwing error "List object not initialized".

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

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    István Orosz Profile Picture
    2,137 on at

    Hi,

    First, you have to instantiate a new List object, to be able to use it. For more information on the topic, please refer to this article: AX 2012 R3 SSRS reports to multi select in parameter.

    Kind regards,

    István

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans