Question
Vodafone GmBH
IN
Last activity: 4 Oct 2018 11:08 EDT
dynamic browser or harness header
Hi all,
Is there a way to define dynamic header for the browser window in which user logs in.
We want to display something like 'MyAppName ITT', 'MyAppName UAT' 'MyAppName PROD' etc depending on environment.
We will have to set the short description of the harness in portal dynamically.
We tried using 'MyAppName+ {pxProcess.pxSystemName}' but it did not work. I do not want to create circumstances version of harness just for this small UI display requirement.
Any suggestions?
Regards,
Aniket
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Vodafone GmBH
IN
As of now I am settled with writing System name on top header section with pxProcess.pxSystemName
Pegasystems Inc.
JP
how about using "pxProcess.pxSystemNode" or "pxProcess.pxSystemNodeID"?
I think "pxProcess.pxSystemName" is set to "pega" by default, and you won't see the difference from node to node.
Vodafone GmBH
IN
Hi Chunzhi,
We are storing pxProcess.pxSystemName as ITT, UAT , PROD etc.
My question is with the syntax. How can I use the clipboard page value in short description field of Harness?
I tried putting inside curly braces it does not work.
Pegasystems Inc.
JP
Now I understood your requirement.
So why do you need to hack the short description of the harness rule?
what is the shortage if you just override the header section of the user portal to put the system name somewhere, for example beside the Pega logo?
Vodafone GmBH
IN
That is another option already on ,my mind.
Admin team wanted it to be inline with other applications. For other browser based tools they can see environment on browser header. In Pega this browser header is coming from harness short description.
Updated: 16 Sep 2015 7:06 EDT
Pegasystems Inc.
IN
In some HTML fragment, you can write script that sets document title. On server, a scriptlet could get you a property value.
<script> document.title = '<%= tools.findPage("pxProcess").getString("pxSystemNodeID") %>'; </script>
Accepted Solution
Vodafone GmBH
IN
As of now I am settled with writing System name on top header section with pxProcess.pxSystemName
JP Morgan Chase
US
Do a save as of pyMetaTags HTML Fragment and add the below script:
<script>
var productionLevel='<%= tools.findPage("pxProcess").getString("pzProductionLevel") %>';
var env= "Dev";
if(productionLevel=="3") env= "QA";
if(productionLevel=="4") env= "UAT";
if(productionLevel=="5") env= "";
document.title = '<%= tools.findPage("pyPortal").getString("pyLabel") %>' + " - " +env;
</script>