You need to sign in to do that
Don't have an account?
true
7.0 - UI enhancement related query
I am trying to create a customize page for one of the custom tab. I need to pull palette information for this custom tab.
I saw in the following article which describes changes for 7.0(winter release)
http://www.sforce.com/resources/tn-16.jsp
According to thsi article, it is possible to pull tab style info dynamically by adding tab class info on body tag
For example in case of accounts tab, is used that reflects the selected tab.
Now if I have created a custom tab called "Test"
In order that my custom page reflects the "Test" tab info, do I have to add ?
I will really appretiate if someone can give me more information.
Thanks,
True
I saw in the following article which describes changes for 7.0(winter release)
http://www.sforce.com/resources/tn-16.jsp
According to thsi article, it is possible to pull tab style info dynamically by adding tab class info on body tag
For example in case of accounts tab, is used that reflects the selected tab.
Now if I have created a custom tab called "Test"
In order that my custom page reflects the "Test" tab info, do I have to add ?
I will really appretiate if someone can give me more information.
Thanks,
True
first download and unzip this cool overview
http://www.sforce.com/us/downloads/winter06_ui.zip
open the index.html
then on the section called Color System ... Custom Objects, open up and see the cool colors
copy the color value, say #3333CC for the tab you want to match your scontrol to
then open up the custom.css file :
https://na1.salesforce.com/dCSS/Theme2/default/custom.css
and search for #3333CC
in my case this was "custom22"
so, now i can add this to my body tag and the scontrol page comes out blue
i think it was class="custom22 overviewPage"
would be handy to have a map of tab style to custom css tag ie: Phone->custom22
hope that is what you were asking...
Thanks for your reply. Is it possible to pull the custom tab style dynamically and add it in body tag of framed customize pages.
For example:
In my application I have added custom tab called "MYTest" and this tab has tabstyle="customTab17".
and I have figured it out that in my customize page for "MyTest" tab, body tag will be
I need to pull the tab style value dynamically and depending on this value, framed customize page body tag class will set.
I will really appretiate if you can suggest any method for pulling it dynamically.
Thanks,
True
are you talking about reading thru the CSS file to find a matching tag?
the CSS values are not stored in the app or database, and I'm not sure how to read the contents of a style sheet from javascript.
perhaps i mis-understand your problem?
Maybe this could help
http://www.howtocreate.co.uk/tutorials/index.php?tut=0∂=27
Manipulating the CSS DOM with Javascript
Regards
thanks everyone. I got it worked. I am using scontrol to pull bodyclass from top frame and then redirect to my custom page along with bodyclass.
Basically using parent.document.body.className; to get classname.