Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to add into fields in form without refreshing?

(0) ShareShare
ReportReport
Posted on by 208

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.

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

    ok i'll let you know when its done.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to add into fields in form without refreshing?

    No, you must call the details form with arguments - Then only you can get the record given in the dialog form will be passed to details form.

    Refer to the standard form - TsTimesheetEntry(Details transaction form) - TsTimesheetCreate(Dialog form) - Refer to the method closeOk of the dialog form - Same TsTimesheetEntry form will be called with arguments. Then only the detail form will be opened with records given in the dialog form.

    Please follow the same and will achieve the desired result you are expecting.

    Thanks,

    Girish S.

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

    Dialogue form is only for data insertion not for calling.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: How to add into fields in form without refreshing?

    This is fine how you are calling the details form from dialog form?

    Thanks,

    Girish S.

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

      [DataSource]
        class OCJ_DTTable
        {
            /// 
            ///
            /// 
            /// 
            public void create(boolean _append = false)
            {
                super(_append);
    
                new MenuFunction (menuItemDisplayStr(OCJ_PurchaseOrderDialogueBasic),MenuItemType::Display).run(new Args(element));
            }
    
        }

    by overriding create method in details form DataSource

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 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.

  • JJDunaid Profile Picture
    JJDunaid 208 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
    GirishS 27,821 Super User 2024 Season 1 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
    JJDunaid 208 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
    GirishS 27,821 Super User 2024 Season 1 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans