web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Extend UIBulider class in standard SSRS report to add lookup control

(1) ShareShare
ReportReport
Posted on by 756
Hi Everyone,
 
   I need to extend UIbuilder standard class to add a lookup control to the dialog for the SSRS report, do you know any suggestions on this code. 
 
[ExtensionOf(classStr(CustAccountStatementExtUIBuilder))]
final class CustAccountStatementExtUIBuilder_LeonardChesire_Extension
{
    private DialogField VEL_ServiceNameLookUp;
        public void build()
    {
        next build();
        VEL_ServiceNameLookUp = this.bindInfo().getDialogField(this.dataContractObject(),
            methodStr(CustAccountStatementExtContract, parmvEL_ServiceName));  
        
        VEL_ServiceNameLookUp.registerOverrideMethod(methodStr(FormStringControl,lookup),methodStr(CustAccountStatementExtUIBuilder,PerfServiceTypeLookup),this);
    }
 
Moreover, how can I show/hide this lookup control based on the menuitemoutput name called the report.

Thanks,
H
 
I have the same question (0)
  • Suggested answer
    Waed Ayyad Profile Picture
    9,212 Super User 2026 Season 1 on at
     
    Try this code:
     
    if(this.controller().parmArgs().menuItemName() == menuItemOutputStr(MenuItem1))
    {
          VEL_ServiceNameLookUp.visible(false); 
    }
    else if(this.controller().parmArgs().menuItemName() == menuItemOutputStr(MenuItem2))
    {

         VEL_ServiceNameLookUp.visible(true);
    }
     
    Thanks
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Layan Jwei Profile Picture
    8,282 Super User 2026 Season 1 on at
    Hi Hisham,

    What do you mean by "do you know any suggestions on this code"?  Are you facing any issues with this code u wrote?

    As for the 2nd question about showing or hiding lookup control, i think it was answered in your previous question:
    https://community.dynamics.com/forums/thread/details/?threadid=5116af78-35dd-ee11-904d-000d3a574bff

    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
  • Waed Ayyad Profile Picture
    9,212 Super User 2026 Season 1 on at
     
    Did my answer help you? If yes please verify it. Do you want additional help?
     
     
    Thanks,
    Waed Ayyad
  • Hisham Alsayed Profile Picture
    756 on at
    Hi Waed,
     
     
        Did you try this code and works well or it is just suggestion.
     
    Thanks,
    H
  • Hisham Alsayed Profile Picture
    756 on at
    Hi Waed,
     
        Thanks for your reply it solved my problem.
     
    Thanks,
    H

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 265 Most Valuable Professional

#3
Subra Profile Picture

Subra 262

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans