16.5.2.2 Passing Client Data Directly to Dialogs
Open a dialog with dynamic client-side values by substituting page item placeholders in a URL template.
To pass dynamic client data to a dialog directly, thus avoiding a server round trip:
- Use
APEX_PAGE.GET_URLto default a dialog URL template with page item value placeholders - Use a JavaScript helper function to substitute the page item placeholders and open the dialog
- Call the helper function in a triggered action to open the dialog, passing in the template URL
- Disable session state protection on the target dialog page item receiving the dynamic value.
- Defaulting URL Template Page Items
UseAPEX_PAGE.GET_URLto compute the template URL containing page item placeholders you replace with client values when opening the dialog. - Substituting Client-Side Data in Dialog URL
- Opening Dialog, Passing Client-Side Data
Open modal drawer and dialog pages by passing a URL template to JavaScript helper functions - Unprotecting Dynamic Client Arguments
Relax session state protection for dialog page items that receive dynamic client-modifiable values.
Parent topic: Passing Client-Side Data to Dialogs