As of my last post, I had explained how to custom our own theme in Siebel Open UI.
Well it was simple and straight forward, but what if we have more than one applications and we want separate theme for each applications….??
Being a developer its a simple task,
- Go to Tools / User Preferences / Behavior
- Select “Tab” in the Navigation Control field
- And select required theme from drop down list of Theme Field
But do we ask our end users to follow above steps, each time he/she logged in to the application. Trust me its not a good idea………… we must need a solution to automate this.
Requirement:
We want separate themes for different applications, when user logged in to its relevant application theme should reflect automatically with no user overhead.
Solution 1:
I haven’t tried this, its a possible solution.
- Create separate theme.js files for each required theme.
- Register custom themes in LOV as of GRAY TAB
- Create a server side script to switch between theme tabs based on Application Name
It will work but its a SRF dependent solution.
Solution 2:
What if we can find a solution inside Manifest Administration only ??
Idea comes from here…
[su_lightbox type=”image” src=”http://www1.askmesiebel.com/wp-content/uploads/2014/05/Capture2.jpg”]
[/su_lightbox]
WE have to create custom Object Expressions for each application and register theme files.
Lets follow below steps…
We don’t need original theme.js file, then blank this file. (After that, web client will load with no css files and will become a real mess.)
- Create separate theme.js files for each required theme.
- Go to Manifest Expression, create custom Object Expressions for each applications
Name = ApplicationN
Expressions: GetProfileAttribute(“ApplicationName”) = “ApplicationN”
here N is numeric number of applications
- Go to Manifest Administration, query for Type = ‘Application’ and copy ‘Platform Independent’ entry.
- Inside Object Expression, add custom Object Expressions for each application with their respective theme files.
[su_divider]
@AskmeSiebel