URL configuration string examples

The following examples illustrate how to define URL configuration strings.

Launching a custom JSP with a popup

The following example launches a custom JSP.

$ {
      "labelKey" : "custom.url.labelForMyCustomUrl",
      "path" : "/custom/mycustom.jsp",
      "dontPromptForUnsavedChanges": false
      "parameters" :
       {  
             "objId" : "$objectId",
             "repId" : "$reportingPeriodId",
             "isRisk" : "true" ,
             "includeVersions" : "false"
       },
       "conditions" :
       {
             "reportingPeriod" :
             {
                   "isCurrent" : true/false,    // no quotes for Boolean values
                   "labelKey" : "custom.url.label.invalid.ReportingPeriod"
             },
             "objectState" :
             {
                   "isUnlocked" : true/false,   // note the UN-locked designation
                   "labelKey" : "custom.url.label.object.locked"            
             },
             "fieldValue" :
             {
                   "field" : <"FieldGroup.FieldName">,
                   "value" : "$currentUser",
                   "operator" : "equal",     // supported operators include "equal" and "notEqual"
                   "labelKey" : "custom.url.label.invalid.user"           
             }
             "fieldValue" :
             {
                   "field" : <"FieldGroup.FieldName">,
                   "value" : true,
                   "labelKey" : "custom.url.label.invalid.value"           
             }
             "fieldValue" :
             {
                   "field" : <"FieldGroup.FieldName">,
                   "value" : "Undifferentiated",
                   "operator" : "notEqual",
                   "labelKey" : "custom.url.label.invalid.value"           
             }
       },
       "popUp" :
       {
             "windowAttributes" : "height=600,width=800,menubar=no,status=yes,toolbar=no,
   scrollbars=yes,resizable=yes"
       }
   }

Launching a Cognos report

The following example launches a Cognos report from a Command Center redirect with a security condition:

${
  "labelKey": "report.name.security.domain.role.assignments",
  "path": "/report.tree.post.do",
  "dontPromptForUnsavedChanges": false
  "parameters": {
    "reportPath": "/_cw_channels/Reporting/SOX/OpenPages Platform Reports/Audit Reports/Security/Security 
Domain Role Assignments.pagespec",
    "label": "Current Reporting Period",
    "entity_id": "$objectId"
  },
  "conditions": {
    "fieldValue": {
      "field": "OPSS-BusEnt.Executive Owner",
      "value": "$currentUser",
      "operator": "equal",
      "labelKey": "custom.url.invalid.user"
    }
  }
}

For this example, you need to add the entity_id parameter to the template that your report is using: CommandCenter Report Redirect or CommandCenter Report Redirect for Cognos Report. For more information, see Configuring parameters for Cognos reports.

Launching a custom JSP

The following example launches a custom JSP.

$ {
      "labelKey" : "url.custom.jsp",
      "path" : "/custom/custom.jsp",
      "dontPromptForUnsavedChanges": false
      "parameters" :
      {
          "Risk Category" : "Damage to Physical Assets",
          "Risk Sub-category" : "Willful Damage"
      }
}