16.5.2.2.3 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"
});Figure 16-48 Opening Modal Drawer Passing Dynamic Values in URL Template
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"
});Parent topic: Passing Client Data Directly to Dialogs
