Opening Dialog, Passing Client-Side Data
Open modal drawer and dialog pages by passing a URL template to JavaScript helper functions
As shown below, the (Submit First Referral) button opens the modal drawer page using the appropriate helper function from the app namespace defined in the application-wide app.js file. It passes in the value of the urlTemplate and title arguments by name, letting any other named arguments use their default valued specified in the function definition.
app.openDrawerURLWithClientPageItemPlaceholders({
urlTemplate: $v('P11_DRAWER_MODAL_URL_TEMPLATE'),
title: "Submit New Referral"
});

Description of the illustration open-modal-drawer-dynamic-data.png
The (Submit Referral) button calls the other helper method for dialogs with the same two arguments:
app.openDialogURLWithClientPageItemPlaceholders({
urlTemplate: $v('P11_DIALOG_MODAL_URL_TEMPLATE'),
title: "Submit New Referral"
});