Discussion
Pegasystems Inc.
PL
Posted: Aug 2, 2021
Last activity: Oct 21, 2023
Last activity: 21 Oct 2023 6:13 EDT
Make Delegated Data types open in a new window in Theme Cosmos
In Theme Cosmos based application default configuration is to open delegated data types in the same window, but delegated rules in a popup window due to application architecture. To make the user experience consistent and open both objects in a popup window some changes are required.
- Create new rule named InitializeDataType in class Rule-Obj-Class:
- On the parameter tab define parameters named (type wrapped in parentheses): "Label" (String), "DataType" (String), "DPaction" (String), "IsPortal" (String), "searchTerm" (String), "IsRefreshAction" (Boolean), "showInherited" (Boolean), "showRelevantRecords" (Boolean), "DelegationExp" (String), "ShortDescription" (String), "DetailedDescription" (String)
- Choose action "Apply Data Transform" and set target to pzInitializeDataType; open the action's configuration using gear icon; Enable "Pass current parameter page?" and submit the modal dialog.
- Save the rule
- Open rule DelegatedRuleDetail of class Embed-System-User-MyRules located in Theme-Cosmos ruleset.
- Edit the button responsible for editing data types (the one referencing pzIsDataType When rule in "Condition for visibility") and modify the action set.
- Replace last action "Landing Page" with "Harness" action. Set "Target" to "Pop-up window", Set "Using page" to "pyLanding", Set "Class" to "Rule-Obj-Class", Set "Harness" to "pzDataTypeOverview", Switch "Read-only" to false, Enter something for "Window Name", Choose newly created rule InitializeDataType in the field "Data Transform"
- A new panel for parameters' configuration should appear, so fill it accordingly: For "Label" enter .pyOriginatingLabel, For "DataType" enter .pyRuleName, For "Is Portal" enter string "true" (without quotation marks), For "DelegationExp" enter .pzDelegationExperience, For "ShortDescription" enter .pyAdviceText, For "DetailedDescription" enter .pyDescription
- Submit the changes
- Save changed rule under different name (like MyDelegatedRuleDetail) in the application ruleset.
- Open DelegatedRuleMain section from the Theme Cosmos ruleset, replace the reference to DelegatedRuleDetail with the renamed copy of this section and save the DelegatedRuleMain section in the application ruleset.
After the changes all delegated rules should be open in a new window.
***Edited by Moderator: Pooja Gadige to add Developer Knowledge Share tag***
To see attachments, please log in.