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 :
Finance | Project Operations, Human Resources, ...
Answered

Display Order Attribute for parameters SSRS report

(0) ShareShare
ReportReport
Posted on by 226

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?

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    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

  • Verified answer
    GirishS Profile Picture
    27,843 Moderator on at

    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.

  • JJDunaid Profile Picture
    226 on at

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

  • GirishS Profile Picture
    27,843 Moderator on at

    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.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 468 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans