Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

Display Order Attribute for parameters SSRS report

(0) ShareShare
ReportReport
Posted on by 208

HI,

I have created an SSRS report with RDP,UI and Contract. I have arranged my parameters with display attribute numbering .

the order is disturbed when I run my report on front end. 

the code is attached below and visuals for better understanding.

[DataContractAttribute,
SysOperationContractProcessingAttribute(classstr(SalesOrderInvoiceUiBuilder))
 ]
public class SalesOrderInvoiceContract
{

    InvoiceDate  fromDate,toDate;
    List         custAccount, invoiceId;



    [
        DataMemberAttribute,
        SysOperationLabelAttribute(literalStr("From Date")),
         SysOperationControlVisibilityAttribute(false),
         SysOperationDisplayOrderAttribute('1')
     ]

        public InvoiceDate parmfromDate(InvoiceDate _fromDate= fromDate)
       
    {
        fromDate    = _fromDate;
        return          fromDate;
    }

    [
        DataMemberAttribute,
        SysOperationLabelAttribute(literalStr("To Date")),
         SysOperationControlVisibilityAttribute(false),
        SysOperationDisplayOrderAttribute('2')
     ]

        public InvoiceDate parmtoDate(InvoiceDate _toDate = toDate)
    {
        toDate    = _toDate;
        return          toDate;
    }

    [
       DataMemberAttribute,
        AifCollectionTypeAttribute('InvoiceId', Types::String),
       SysOperationLabelAttribute(literalStr("Invoice Id")),
       SysOperationDisplayOrderAttribute('3')
     ]

        public List parmInvoiceId(List _InvoiceId= invoiceId)
    {
        invoiceId    = _InvoiceId;
        return          invoiceId;
    }

    [
       DataMemberAttribute,
        AifCollectionTypeAttribute('CustAccount', Types::String),
       SysOperationLabelAttribute(literalStr("Cust Account")),
       SysOperationDisplayOrderAttribute('4')
       
   ]

    public List parmcustAccount(List _custAccount = custAccount)
    {
        custAccount = _custAccount;

        return       custAccount;
    }

}

any suggestions?

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Display Order Attribute for parameters SSRS report D365fo x++?

    This seems to be okay, but line number 5 & 6 you are assign parmFromDate and parmToDate to same dialog field variable "dialogInvoiceDate".

    This will work if you change the order of adding field to the dialog. But I am confused why it's not working.

    Try creating group as mentioned by Mohit.

    Thanks,

    Girish S.

  • JJDunaid Profile Picture
    JJDunaid 208 on at
    RE: Display Order Attribute for parameters SSRS report D365fo x++?

    Hi Girish,

    as i have mentioned before i am using UI . and in  Build method i have used this code !

    does this need to be altered?

      public void build()
        {
            _contract                  = this.dataContractObject();
           
            dialogInvoiceDate          = this.addDialogField(methodStr(SalesOrderInvoiceContract, parmfromDate), _contract);   
            dialogInvoiceDate          = this.addDialogField(methodStr(SalesOrderInvoiceContract, parmtoDate), _contract);   
            dialogInvoiceId            = this.addDialogField(methodStr(SalesOrderInvoiceContract, parmInvoiceId),   _contract);
            dialogCustAccount          = this.addDialogField(methodStr(SalesOrderInvoiceContract, parmcustAccount), _contract);
    
        }

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Display Order Attribute for parameters SSRS report D365fo x++?

    Hi Junaid,

    To change the dialog UI, you need to create an UI builder class and then in the build method you need to add the field to dialog based on the order you wanted.

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Display Order Attribute for parameters SSRS report D365fo x++?

    Hi, Please check this MS article, try adding the parameters in a Group and arrange in Vertical alignment. 

    learn.microsoft.com/.../how-to-group-and-order-report-parameters-by-using-a-data-contract-class

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans