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 insert data in a from using another form

(0) ShareShare
ReportReport
Posted on by 226

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

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

    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?

  • GirishS Profile Picture
    27,827 Moderator on at

    Hi JJDunaid,

    What is the purpose of dialog form here?

    I mean does it contains any fields?

    Thanks,

    Girish S.

  • JJDunaid Profile Picture
    226 on at

    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.

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    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.

  • JJDunaid Profile Picture
    226 on at

    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.

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    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.

  • ergun sahin Profile Picture
    8,826 Moderator on at

    Just insert data to table and refresh first form Ds via caller or  at button_clicked method(after super)

  • GirishS Profile Picture
    27,827 Moderator on at

    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.

    Thanks,

    Girish S.

  • JJDunaid Profile Picture
    226 on at

    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?

  • JJDunaid Profile Picture
    226 on at

    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.

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

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans