Notifications
Announcements
No record found.
How to insert data in a from using another form e.g (if we click on new button in a customized form the dialogue form will open for inserting data in first table )
where we select new buttton
Don't you have any more specific question? Does it mean that you don't know how to insert records at all? Or how to open a form on record creation? Or what?
Also, which version of AX is it about?
Hi JJDunaid,
What is the purpose of dialog form here?
I mean does it contains any fields?
Thanks,
Girish S.
hi Martin,
i am working on two form patterns (1.detailMaster 2.DialogueBasic)both have same fields and table
i have added a mneu item button on actionpane of my "detail master form"whenever i want to add new record it i click on my menu item buutton it takes me to "dialogue basic form" .
so, whatever data i insert in "dialogue basic form "i want it to show it in "detail master form" for every record.
e.g just like pruchase order creator in purchtable form.
So what do you need from us?
Also, you again fogot to mention your version. I suspect that you're using F&O and therefore you asked in a wrong forum. I'll move the thread when you confirm it.
sorry I forgot to tell
I am using D365FO
also can you explain me the procedure ?,
through which i can implement the scenario that i have explain in previous reply.
Moved to Dynamics 365 Finance Forum.
Putting your logic on a custom button sounds like a bad idea to me, because it wouldn't work when using the standard "New" button or a keyboard shortcut.
You don't have to reinvent the wheel, because what you want is already used at several places in the standard application, therefore you can look at the implementation.
For example, see how new sales orders are created in SalesTable form. I don't have an F&O environment on hand, but I think you'll see that create() method of SalesTable data source calls another form for the record creation.
Just insert data to table and refresh first form Ds via caller or at button_clicked method(after super)
I agree with martin - No need to create custom button as you have the one in the standard.
In addition to martin comments - Refer to standard TsTimesheetEntry form - On the DataSource create method of TsTimesheetTable they will be calling the dialog form - After giving the details on the dialog form - Once the user clicks ok button - closeOk method of the TsTimesheetCreate(dialog form) form will be called - Inside the method they will be calling the details form with the caller records.
Girish;
i have added new button because when i have used system generated button it makes new reecord in the existing form rather then opening "Dialogue basic form".
Could you help me with code and how to navigate it?
can you explain it briefly?
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 503 Most Valuable Professional
André Arnaud de Cal... 434 Super User 2025 Season 2
BillurSamdancioglu 278 Most Valuable Professional