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

How to add into fields in form without refreshing?

(0) ShareShare
ReportReport
Posted on by 226

i have created Details transaction form and added Dialogue form when pressed (+New)  button . when I add data into  feilds of dialogue form  I  want to save data into Detail Transaction form when i  press (OK ) Button. 

.DTF.PNGDBF.PNG_2D00_640x480.png_2D00_640x480.png

(IN my senario it saves data on refreshing after  pressing  ok button ) 

first pic is from Details Transaction

second pic is from Dialogue form.

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: How to add into fields in form without refreshing?

    Hi jd junaid,

    On the dialog form - Get the caller form DataSource - On closeOk method you can call the DataSource research method to refresh caller DataSource.

    Thanks,

    Girish S.

  • JJDunaid Profile Picture
    226 on at
    RE: How to add into fields in form without refreshing?

    Hi Girish,

    How exactly i can do this?

    could you help me with code.

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at
    RE: How to add into fields in form without refreshing?

    Refer to the below blog.

    Write the logic given in the below blog for refresh on dialog form closeOk method.

    https://axnotesblog.wordpress.com/2019/03/14/refresh-caller-form-in-d365fo/

    Thanks,

    Girish S.

  • JJDunaid Profile Picture
    226 on at
    RE: How to add into fields in form without refreshing?

    ok thanks. ;)

  • JJDunaid Profile Picture
    226 on at
    RE: How to add into fields in form without refreshing?

    Girish ,

    i am facing a problem when i enter data into dialogue form  and press ok button  the data is stored but when i enter scond record it still shows data saved in previous data .

    how to correct?

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: How to add into fields in form without refreshing?

    Does the DataSource of the Details master form and dialog form are same?

    Dialog form will be opened against the current record in the details master form you have selected. So, it will update the values to current record only. It won't update for all the records in the table.

    Thanks,

    Girish S.

  • JJDunaid Profile Picture
    226 on at
    RE: How to add into fields in form without refreshing?

    Yes girish,

    Data source for both forms are same.

    dfpurch.PNG_2D00_640x480.png_2D00_640x480.png

    i saved data with this purch id on dialogue form butwhen i click ok(with overriddern method(closeok)) it shows the previous purch id  and previous data in fields.

    when i press OK button i want it to store fresh record data into details form .

    dtform.PNG

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: How to add into fields in form without refreshing?

    I cannot understand your issues.

    Can you tell me what functionality you are doing?

    What is the purpose of dialog form?

    Thanks

    Girish S.

  • JJDunaid Profile Picture
    226 on at
    RE: How to add into fields in form without refreshing?

    i am inserting data from ' dialogue form ' into 'details transaction form ' .

    when i click NEW it takes me to dialogue form where i insert data into fields.when i enter OK button on dialogue form  i want it to insert data into fields of details transaction form every time.

    but when i press ok button it shows previously saved data every time but not the new data .

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: How to add into fields in form without refreshing?

    Detail master form will have Grid view and details view.

    So I understand that you will be clicking new button from grid view and upon entering data in dialog form - details form will be opening.

    Can you tell me how you are calling the details form?Meaning upon clicking ok button on dialog form how you are calling details form.

    Thanks,

    Girish S.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

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

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 569

#3
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans