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?
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.
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); }
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.
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
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156