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.

  1. Create new rule named InitializeDataType in class Rule-Obj-Class:

    1. 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)

    2. 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.

    3. Save the rule

  2. Open rule DelegatedRuleDetail of class Embed-System-User-MyRules located in Theme-Cosmos ruleset.

  3. Edit the button responsible for editing data types (the one referencing pzIsDataType When rule in “Condition for visibility”) and modify the action set.

    1. 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”

    2. 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

    3. Submit the changes

  4. Save changed rule under different name (like MyDelegatedRuleDetail) in the application ruleset.

  5. 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.

@zarlm

What value to be passed in the parameter *.*pzDelegationExperience

while delegating a datatype.I followed the above process and found that it is opening my datatype from pega instead of opening the delegated data type.

However, the data type is deleted to the access group I can see it in favourites instances.