You need to sign in to do that
Don't have an account?
Kanwalpreet Singh
Apex how to check view is Salesforce Classic or Lightning.
Hi,
How i can check on controller if page is opened using 'Salesforce Classic' or 'Salesforce lightning' UI(for winter 16 release).
Thanks,
Kanwalpreet Singh
How i can check on controller if page is opened using 'Salesforce Classic' or 'Salesforce lightning' UI(for winter 16 release).
Thanks,
Kanwalpreet Singh
if(document.referrer.indexOf(".lightning.force.com") > 0){
alert("welcome to lightning ");
}else{
alert("welcome to classic");
}
The LaserPecker 3 (http://creativecommons.org/choose/results-one?q_1=2&q_1=1&field_commercial=n&field_derivatives=sa&field_jurisdiction=&field_format=Text&field_worktitle=Blog&field_attribute_to_name=Lam%20HUA&field_attribute_to_url=http%3A%2F%2Fmdshariful.com%2F) is a brand new ultra-fast, compact laser (http://www.google.de/url?q=https%3A%2F%2Fmdshariful.com%2F) engraving and reducing (http://maps.google.es/url?q=https%3A%2F%2Fmdshariful.com%2F) machine that has a lot in widespread (http://maps.google.es/url?q=https%3A%2F%2Fmdshariful.com%2F) with a mannequin we lately mentioned, the LaserPecker 4. you can also downlaod all premium crack software (https://updatecrack.com/) for free form updatecrack.com
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_useruitheme.htm
Use these variables to identify the CSS used to render Salesforce web pages to a user. Both variables return one of the following values.
Valid values include:
Theme1—Obsolete Salesforce theme
Theme2—Salesforce Classic 2005 user interface theme
Theme3—Salesforce Classic 2010 user interface theme
Theme4d—Modern “Lightning Experience” Salesforce theme
Theme4t—Salesforce mobile app theme
Theme4u—Lightning Console theme
PortalDefault—Salesforce Customer Portal theme that applies to Customer Portals only and not to Experience Builder sites
Webstore—AppExchange theme
<apex:page>
<apex:pageBlock title="My Content" rendered="{!$User.UITheme == 'Theme2'}">
// this is the old theme...
</apex:pageBlock>
<apex:pageBlock title="My Content" rendered="{!$User.UITheme == 'Theme3'}">
// this is the classic theme ...
</apex:pageBlock>
</apex:page>
example: