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

Community site session details

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

Call a custom form instead of Standard one

(1) ShareShare
ReportReport
Posted on by 6,470
Hello,
we have a requirement to modify the creation of Planned Orders.
Because of that, we have to create new form (dialog) with Grid and call it instead of the standard one.
 
For example, from Planned Order >> Click New >> Dialog called "Select a record type to create" is opened >> Click Create button and Dialog Form "New planned order" (AOT name: ReqTransPoCreate) is opened.
So instead of ReqTransPoCreate, we want new form to be opened.
 
As I have seen, ReqTransPoCreate is called from the below class and method.
Is it somehow possible to achieve what I have explained above? If I use CoC, below method code will still be called and I can't skip it right?
 
 
Thanks
I have the same question (0)
  • Waed Ayyad Profile Picture
    8,831 Super User 2025 Season 2 on at
    Call a custom form instead of Standard one
    Hi,

    Is your issue resolved?  If yes, mark the answers that helped you as verified.

    Thanks
    Waed Ayyad
  • Layan Jwei Profile Picture
    7,997 Super User 2025 Season 2 on at
    Call a custom form instead of Standard one
    Hi Johnny,
     
    I'm happy that calling the close method worked for you :)
     
    If your issue is fixed then please verify the answers that helped. And if you have more questions then please create another question.
     
    Thanks,
    Layan Jweihan
  • Waed Ayyad Profile Picture
    8,831 Super User 2025 Season 2 on at
    Call a custom form instead of Standard one
    Hi Johnny,
     
    Did you apply my suggestion? if yes, please mark my answer as verified solution.  For your new inquiry I suggest creating new question with all details.
     
    Thanks,
    Waed Ayyad
     
  • Verified answer
    Johnny Profile Picture
    6,470 on at
    Call a custom form instead of Standard one
    Hi Layan,
     
    I acieved it by making extension CoC for form's run method and after the next call I wrote
    this.closeCancel();
     
    And in the method shown in the screenshot, I open my new form.
     
    Now what I want to achieve is to create several new Planned Orders from my new form.
    In this new form, I have a Grid with new table, where user will input some data (different item variants, etc)
    And based on the data entered, then I want to start creating new Planned orders.
  • Layan Jwei Profile Picture
    7,997 Super User 2025 Season 2 on at
    Call a custom form instead of Standard one
    Hi Johnny,

    When you click create, the dialog "ReqTransPOCreate" is opened and you want something else right?

    is your new dialog very different from the original one? i mean can't you use the current dialog and do extension to maybe hide some fields and add new ones?  to make sure u don't skip important code for creating the planned order.

    regarding the two forms being opened, maybe you could close the first one by calling the close method if it works

    Thanks,
    Layan Jweihan
  • Johnny Profile Picture
    6,470 on at
    Call a custom form instead of Standard one
    Hello,
    as I noted in my previous comment, if we write a code in CoC form init method, both forms are opened (original and new). So this can't be a solution
  • Johnny Profile Picture
    6,470 on at
    Call a custom form instead of Standard one
    Hello,
    have not tried yet, but will not still kinda open the original form too? And on that original form there are many many different validations which will throw validation error I guess.
    But, will try.
    Thanks
  • Suggested answer
    Waed Ayyad Profile Picture
    8,831 Super User 2025 Season 2 on at
    Call a custom form instead of Standard one
    Hi,
     
    Did you try to add the code (To open the new form) in the init method of form ReqTransPoCreate, I didn't try it before, but you can try it.
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
     
     

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 745 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 597 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans