16.5.2 Passing Client-Side Data to Dialogs
Construct appropriate dialog links to pass dynamic client-side values to a dialog, with or without server-generated checksums.
Pages can link declaratively to others when the passed parameter values don't change after rendering. But here the selected job ID is dynamic. The user changes the hidden selected job id page item by clicking on job cards.
Only the server can compute checksums, so the two options for generating a URL that passes dynamic client values to a dialog page are:
- Use
APEX_PAGE.GET_URLin a trigger action to generate it on the server, or - Update placeholder values in a dialog URL template, without the additional server round trip.
Avoiding server-side URL generation, however, requires disabling session state protection on the receiving dialog page items. In both cases, JavaScript routines in an app-wide app.js can simplify the job.
- Opening Server-Generated Dialog URL
Open a dialog page with client-side values by passing a server-generated URL to a helper function. - Passing Client Data Directly to Dialogs
Open a dialog with dynamic client-side values by substituting page item placeholders in a URL template.
Parent topic: Uploading a File to a BLOB Column