on 11-27-2015 6:59 AM
Hi Experts,
is there a way to change background color of a flavor dynamically with Javascript ?
I want to change backgroundcolor depending of the system-id.
Thanks and regards.
Juergen
You can indeed. Use the object inspector in the scripting tool to select the object you want to change - the GuiUsrArea I presume? Scroll down to the end of the list of properties for the object to the ones in blue with the {} icon. You'll find backgroundColor among other properties you can change. Click on the {} icon to insert the necessary code to change the property. Specify colours in in hexadecimal RGB - so "#ff0000" is red, for example.
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know exactly when this functionality appeared. I would update the Personas client note - 2179045 - to the most recent. Mine is currently version 17. And install the latest kernel - I'm at kernel patch level 226.
Or alternatively, install service pack 02, which requires at least kernel patch 300.
Either of those should get you to a version at least as new as mine. If you don't see this after that, then we might need somebody from SAP to jump in and explain!
Steve.
This change is per-flavour. To make the change globally you'd need to do it in a theme and programatically select a theme to match the system. You could do that in the onLoad event of SMEN so the theme selection happened upon login. That would then persist across all subsequent transactions, unless somebody changed the theme manually.
I can't immediately think of another way to get the result you're looking for.
Steve,
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.