Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Unanswered

UIBuilder in ExtensionOf

(0) ShareShare
ReportReport
Posted on by 465
Hi Everyone,
 
I have a SSRS report from ISV in D365FinOps. The contract class doesn't have a UIBuilder class and I need to add multi select parameter where the it has to get a lookup through a method in UIBuilder. I believe, the same issue will be applicable for any Out of the box report too.
 
Also, I tried to use the ExtensionOf class and it didn't help.
 
Anyone has any suggestions on how I can attach the UIBuilder class to the existing contract class?
 
Also, I have to write a validation on this parameter and not sure how I could implements the contract with SysOperationValidatable
 
Regards,
Verma MC
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,391 Super User 2024 Season 2 on at
    UIBuilder in ExtensionOf
    Hi Verma,
     
    Instead of extending the ISV report, have you considered an own custom report which will be fully independent of any changes the ISV can apply themselves in updates? You can then implement the multi-select parameter to your own insights.
  • Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    UIBuilder in ExtensionOf
    I can't tell what changes to make the code because I don't know anything about your code.
     
    In general, you need to be able to be able to provide your instance of the contract, which may be trivial, or it may be impossible without creating your own report. It depends on what you're doing and how the other code is implemented.
     
    Changing the code of ISV's data provider is impossible for you, but keep in mind that the types are compatible. Code written for a base class will (in most cases) work if you use a child class instead (= polymorphism).
  • VermaMC Profile Picture
    VermaMC 465 on at
    UIBuilder in ExtensionOf
    Thanks Martin,
     
    I can check with ISV. 
     
    Meanwhile, I want to explore options with child class. If I extend the contract and create a child contract while I could add the UIBuilder attribute and also implement the interface, but how do we make the DP Class use this child class? I think, we won't be able to change the Contract class's attribute in DP to use the child class, correct? or Do we have a chance?
  • Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    UIBuilder in ExtensionOf
    Adding interface implementation is impossible and I think it applies to the attribute too.
     
    Consider asking the ISV to add a UI builder and implement the interface. They don't need to provide any implementation, just something you can extend.
     
    Maybe you could also succeed with creating a using a child of the contract class.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans