web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,563 Moderator 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

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator 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.

  • JJDunaid Profile Picture
    226 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);
    
        }

  • GirishS Profile Picture
    27,825 Moderator 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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,882

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 794 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 525 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans