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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Report Contract Class

(0) ShareShare
ReportReport
Posted on by

Hi all,

In report Contract class, how to fill in Dialog field with value captured by other Dialog Field ?

Like for example, I have Dialog field contain Customer code, when user select one customer, there is another Dialog field need to be automatically fill in, either from some field in CustTable or other table that has relation with the selected customer.

Thanks,

I have the same question (0)
  • Verified answer
    Blue Wang Profile Picture
    on at

    HI WWwong,

    You need to create a UIBuilder class, add field modification methods there, and add lookup methods for another Dialog field.

    Then use it in Contract class through SysOperationContractProcessingAttribute(classstr(YourUIBuilderClass))

  • Community Member Profile Picture
    on at

    Hi Blue,

    Any clear example how to do that ?

    Thanks,

  • Blue Wang Profile Picture
    on at

    HI WWwong,

    Find this:community.dynamics.com/.../ssrs-report---field-modified-method

    It's similar to your needs.

  • Community Member Profile Picture
    on at

    Hi Blue,

    In that sample, there is GetFromdialog method, what is that for ? because the variable is not use anywhere else.

    and as it is implemented SrsReportDataContractUIBuilder, it is the same as mine using SysOperationAutomaticUIBuilder ?

    Thanks,

  • Blue Wang Profile Picture
    on at

    Hi Wwwong,

    getFromDialog() Method:Transfers data from the dialog into the data contract object.

    Transfer dialog field values to the report contract UI Builder uses two main classes: SrsReportDataContractUIBuilder and SysOperationAutomaticUIBuilder

  • Community Member Profile Picture
    on at

    Hi Blue,

    I'm sorry, but should I use it ? because in that blog, that variable not use anywhere.

    and for the 2 main classes u're mentioned, means I can use whatever ? or I should create exactly like that ? because for now I'm using SysOperationAutomaticUIBuilder.

    Thanks,

  • Blue Wang Profile Picture
    on at

    HI WWwong,

    Yes. SrsReportDataContractUIBuilder extends SysOperationAutomaticUIBuilder

    05355.PNG

  • Deepak Agarwal Profile Picture
    8,602 on at

    Hi,

    You have to use UI builder class, there are many examples in AOT like CustVendPaymProposalUIBuilder. You may need to explore few of them.

  • vinitgoyal2005 Profile Picture
    6,332 on at

    Hi,

    You can check exmaple stoneridgesoftware.com/.../

    The code works for D365FO. Last UIBuilder class is for Validation, you need to use same for assigning value to other variable.

  • Community Member Profile Picture
    on at

    Hi

    I'm sorry, but all that are quite different approach than the 1st one. So it makes me more confuse now for which one to follow.

    Which one is the simple one ?

    I only want to put a simple value in the 2nd DialogField from table, that the condition is based on the 1st Dialog Field.

    My needs is only :

    Collection letter course : _______ (this should be a lookup of CustCollectionLetterTable, and it is already done in my UIBuilder)

    then there is another dialogfield : Min days : ______

    This field need to be fill in by the entry in CustCollectionLetterLine firstrecord only in the related selected Course Id, with its Min days (not even another lookup)

    That's all.

    Thanks.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans