Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Need Assistance with Adding Filter to "Customer Account Statement Report

(0) ShareShare
ReportReport
Posted on by 750
Hello everyone,

I'm currently working on the /Customer Account Statement Report/ and have been tasked with adding a filter to it, which should function to filter the output data. 
I've already added the parameter in the contract, UIBUILD classes, and bound it in the class data provider. However, when I open the report designer, I'm unable to find the parameter under the parameter list. I already restored the dataset many times and deployed the report with no luck.

Could someone please advise if it's necessary to manually add it to the report layout XML, or if there are other steps required to ensure the report runs with the filter successfully?

Any guidance or insights would be greatly appreciated.

Thank you in advance!
H
  • Hisham Alsayed Profile Picture
    Hisham Alsayed 750 on at
    Need Assistance with Adding Filter to "Customer Account Statement Report
    Hi Layan,
     
       Thanks for sharing the code but my issue is not in this part ad i mentioned in the post, and it is after that related to report design when i open the parameter list under report designer.
     
    if you have experience with such case or add new filter, what it should do after amend UiBuild class
     
    Thanks,
    H
  • Suggested answer
    Layan Jwei Profile Picture
    Layan Jwei 7,634 Super User 2025 Season 1 on at
    Need Assistance with Adding Filter to "Customer Account Statement Report
    Hi Hisham,

    Can you show us your code?

    if you did the following then you should be able to see new the parameter in the UI:
    [ExtensionOf(classStr(CustAccountStatementExtContract))]
    final class CustAccountStatementExtContract_Extension
    {
        public AccountNum accountNum;
    
        [DataMemberAttribute]
        public AccountNum parmAccount(AccountNum _accountNum = accountNum)
        {
            accountNum = _accountNum;
            return accountNum;
        }
    
    }
    
     
    [ExtensionOf(classStr(CustAccountStatementExtUIBuilder))]
    final class CustAccountStatementExtUIBuilder_Extension
    {
        public AccountNum  accountNum;
        public DialogField accountNumField;
    
        public void build()
        {   
            contract = this.dataContractObject() as CustAccountStatementExtContract;
            accountNumField = this.addDialogField(methodStr(CustAccountStatementExtContract, parmAccount), contract);
    
            next build();
        }
    }
    



    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans