Configure obligation review for the playbook
Create a page in UI Builder that uses a viewport component to dynamically load obligation review content in the playbook.
Before you begin
Role required: admin
Procedure
Navigate to All > Now Experience Framework > UI Builder.
Select the Experiences tab.
Open your workspace.
Create a new page by selecting the + icon.
Add pages and variants on an experience page in UI Builder.
Select Create from scratch instead.
On the form, enter the
Review Obligation Listin the Name field.The URL path will be automatically updated with
review-obligation-list.Select Looks good.
Complete the remaining steps to create the page.
For more information, see Create a page in UI Builder.
Add a viewport component for the page.
For more information on adding a viewport, see Add a viewport component to your page.
In the configuration panel, select + Add to attach the Now Assist in Contract Management page collection.
Select Apply default configuration with added URL parameters and then select done.
Create a client script for the page.
For more information on adding a client script, see Define and bind client scripts to components.
Select + next to Client scripts.
Name your script.
A descriptive name helps you know what the script does. It also makes it easier to find the script later when you add it to an event handler.
Add the following script.
function handler({api, event, helpers, imports}) { api.emit("MACROPONENT_VIEWPORT_LOAD_REQUESTED", { viewportElementId: 'viewport_1', route: 'review-obligations', fields: { 'cntrSysId': api.context.props.sysId, 'diTaskSysId': api.context.props.diTaskSysId }, params: {} }); }Select Apply.
Select the Body component and then select the Events tab under Page configuration.
Events tab under Page Configuration.
1. Select **Add handler** under the **Page ready** section.
2. Select the client script created in step 10.
3. Select **Continue**.
The client script is bound to the Page ready event. When the page loads, this event handler automatically executes the client script.
If Form Controller is available under Data resources, remove it.
Navigate to the General tab under Settings and verify that table, sysId, and diTaskSysId are available under the Required parameters.
If the parameters are not available, add them manually. For more information on modifying the page settings, see Edit page variant settings.
Parent Topic:Configuring the Playbook tab on contract repository records