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.
.
(IN my senario it saves data on refreshing after pressing ok button )
first pic is from Details Transaction
second pic is from Dialogue form.
ok i'll let you know when its done.
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.
Dialogue form is only for data insertion not for calling.
This is fine how you are calling the details form from dialog form?
Thanks,
Girish S.
[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
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.
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 .
I cannot understand your issues.
Can you tell me what functionality you are doing?
What is the purpose of dialog form?
Thanks
Girish S.
Yes girish,
Data source for both forms are same.
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 .
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.
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156