Skip to main content
Olivia Salvatore-King (ShipHawk) 님이 * Lightning Now! *에 글을 올렸습니다

Hi there, 

I am an admin for my org and I am updating some of my VF pages to include logic to look at the current user's theme in order to correctly launch a link to a report while also passing a variable into the report. 

Here is the line of code: <apex:outputLink value="{!IF($User.UITheme == 'Theme3','/00Oa0000007D60P?pv1={!account.NA_Code_EU__c}','/lightning/r/report/00Oa0000007D60P/view?fv1={!account.NA_Code_EU__c}')}"

 

Great news is that, when the button in the VF page is clicked it takes me to the right UI based on my current theme. Bad news is that is won't pass the variable from the current record. Instead this is the URL I receive: /00Oa0000007D60P?pv1=#%7Baccount.NA_Code_EU__c%7D OR in lightning 00Oa0000007D60P/view?fv1=%7B%21account.NA_Code_EU__c%7D

 

This tells me that it can't read the brackets? Can anyone assist me on the format of the logic or help to understand what I am doing wrong? I feel very close but have been unable to find an answer. 

Thanks!

 

#Lightninglinks #Lightningbuttons #Visualforce Page 

0/9000