Skip to main content
Lauren Bailey ha fatto una domanda in #Security
I have the following Visualforce page that I am trying to do a simple iframe inside of a community to show a Tableau dashboard that only displays the logged in user's data. Everything works fine until I try to pass in the running user's related Account ID using “AccountID={User.AccountID__c}”. Strangely it wont save as “AccountID={!User.AccountID__c}”. How can I pass a variable into the src below?

 

 

<apex:page showHeader="false">

<apex:pageBlock >

<apex:iframe src="https://10az.online.tableau.com/t/psdemo/views/PoolsureData/Dashboard1?AccountID={User.AccountID__c}&:iframeSizedToWindow=true&:embed=y&:showAppBanner=false&:display_count=no&:showVizHome=no#4"> </apex:iframe>

</apex:pageBlock>

</apex:page>

 

 
6 risposte
  1. 21 dic 2018, 19:13
    I tried using {!User.AccountID__c} if that's what you mean but it wouldnt save. I get the error message "Unknown property 'User.AccountID__c' referenced in TestTableauPage"

     

    I can save it with {$CurrentPage} as the variable but I'm not following how that would actually pass in the Account ID I need.

     

     
0/9000