Search code examples
oracle-apexoracle-apex-5oracle-apex-5.1

Open page in new tab when dialog closed and request != DELETE


I am using APEX 21.1. I have a report and a form. The form is dialog And is for creating and editing DEPT table's data. The report for displaying the same table's data. I should be able to open a page in a new tab after the dialog closes and the request was CREATE or SAVE. If the request is DELETE, the page should not open. The code for opening a new page in a new tab is in the report page's Dialog closed dynamic action. For example, run the report> edit a record> the click Apply Changes> the dialog is closed> the page is opened in a new tab. That was case one. Case 2: instead of clicking Apply changes, click delete to delete the record> the dialog closes> nothing happens.

ws= ESLAM_WS
un= forhelp  
pwd= Forhelppwd$  
app= Help  
pages= 2 and 3

Solution

  • I have created a page item P3_REQUEST and a process in the dialog page before the "Close Dialog" process to set that item with the request :P3_REQUEST := :REQUEST; and used the dialog return item attribute to return that value. And created another item in the calling page and a set value dynamic action to set it's value with the request value returned. Then set a client-side condition for the DA that calls the new page in new tab. Your answer was very helpful. Thanks.