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

How to create customize dialog in SysOperation framework

(0) ShareShare
ReportReport
Posted on by 214

As we known, when using SysOperation framework, we can create Contract class , then SysOperation framework will create the dialog automaticlly, and binding the form component with the Contract class.

Since that's great, we need not create UI by selft, but when the UI composition is complex, we want to draw the Form/Dialog, then bind with Contract class, I didn't find the way, can you give me some advices?

thanks!

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    Using your own form is possible, but don't forget that you can also implement a custom UI builder class and modify standard form at runtime. That's sufficient in most cases.

    If you need a custom form anyway, you can tell your controller class to use it by overriding templateForm() and returning the name of your form. You can use cross-references to find examples in the standard application if needed. For example, LeanDocumentServiceController utilizes LeanDocumentServiceCreation form. Note that the framework has some expectations about controls in the form.

  • RongYan Profile Picture
    214 on at

    Hi Martin

    thanks very much!

    I checked the source code of LeanDocumentServiceCreation (Form), it use  this.controller().getDataContractObject(#dataContractKey); to get the Contract object , then do the data set/get for the Contract object manually according to the logic.

    I think this is the best practice of Dynamics 365 because it's the standard module implementation, I can reference this sample in my project.

    Best Regards.

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 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans