Configure a data broker server script that connects the UI Builder component to the script include method controlling the Playbook tab visibility.
Antes de Iniciar
Role required: admin
Procedimento
-
Navigate to the All menu and enter sys_ux_data_broker_transform.list.
The Data Broker Server Scripts table appears.
-
Select New.
The Data Broker Server Script form opens.
Figura 1. Data Broker Server Script form
-
In the Name field, enter the name for your configuration.
-
In the Application field, select the appropriate application scope for your implementation.
-
In the Description field, enter a description.
For example, Whether to show or hide the Playbook tab on the Legal Counsel Center
-
In the Properties field, add the following JSON configuration:
[{
"name": "table",
"label": "Table",
"fieldType": "string",
"mandatory": true
},
{
"name": "sysId",
"label": "Sys ID",
"fieldType": "string",
"mandatory": true
}]
-
In the Script field, add the script for the data broker.
Example:
function transform(input) {
var table = input.table;
var sysId = input.sysId;
if (!table || !sysId) return true;
return sn_lg_cf_workspace.LegalUIBWorkspaceDataBrokerHelper.hidePlaybookTab(table, sysId);
}
This function receives the table and sysId from the input, validates them, and calls the helper method to determine tab visibility.
-
Select Update to save the data broker server script.