Reputation: 37
I am using an interactive report in Oracle Apex with rows and columns to display and edit some data in a tabular form. I have an icon, which on clicking, opens a Modal Dialog Page, where some data is entered.
Now on closing the dialog page ( the action is submit page on the close button of the dialog ), the parent page behind is just getting re-rendered and I am losing all the edited data entered before opening the modal dialog.
I am not able to find a way that would also Submit Parent Page after closing Modal Dialog so that all the values entered before opening dialog also get saved when the parent page gets submitted.
Upvotes: 0
Views: 4834
Reputation: 2165
If I understand, you have a tabular form on the parent page. In this report you have a link that opens a modal. in this modal you fill some data. You need to click a button, save the data you filled in the modal, and submit the parent page.
If so, try doing this:
1 - In the modal create a dynamic action to execute a code pl/sql and save your data in the modal page by clicking on a button.
2 - In this same dynamic action create another true action to close the modal "Close Dialog".
3 - On the parent page create a dynamic action where:
Event: Dialog closed
Selection Type: Region
Region: the region of the report
Condition: No condition
True Action: submit the page to save the form tabular
Upvotes: 1