You need to sign in to do that
Don't have an account?
Lesley Boyd
I'm having trouble with an iframe in salesforce1. How can I re-write the existing code?
My current code is as follows(I re-wrote the first part of the URL for security):
<apex:page standardController="Account">
<apex:pageBlock >
<apex:outputText style="font-style:bold; font-sizje: 12pt" value="Tableau Dashboards for {0} with AD User ID {1} and Sales Rep ID {2} and Ship To # {3}.">
<apex:param value="{!$User.Username}"/>
<apex:param value="{!$User.ADUser__c}"/>
<apex:param value="{!$User.BATO_Sales_Rep_ID__c}"/>
<apex:param value="{!Account.Customer_Number__c}"/>
</apex:outputText>
</apex:pageBlock>
<apex:iframe src="https://salesforce.com/embed_dashboard.php?workbook=Salesforce_Dashboard_Ship_To&view=Salesforce_Dashboard_Ship_To&user={!$User.ADUser__c}&Ship_To={!Account.Customer_Number__c}&width=1300px&height=600px" height="550px" width="1250px" scrolling="false"/>
</apex:page>
I'm trying to embed a tableau dashboard on an account page and pass parameters for filtering purposes. The dashboard renders for my browsers, but fails in the SF1 app. Salesforce says it's the iframe so I need a workaround, but I don't quite know how to write the code.
<apex:page standardController="Account">
<apex:pageBlock >
<apex:outputText style="font-style:bold; font-sizje: 12pt" value="Tableau Dashboards for {0} with AD User ID {1} and Sales Rep ID {2} and Ship To # {3}.">
<apex:param value="{!$User.Username}"/>
<apex:param value="{!$User.ADUser__c}"/>
<apex:param value="{!$User.BATO_Sales_Rep_ID__c}"/>
<apex:param value="{!Account.Customer_Number__c}"/>
</apex:outputText>
</apex:pageBlock>
<apex:iframe src="https://salesforce.com/embed_dashboard.php?workbook=Salesforce_Dashboard_Ship_To&view=Salesforce_Dashboard_Ship_To&user={!$User.ADUser__c}&Ship_To={!Account.Customer_Number__c}&width=1300px&height=600px" height="550px" width="1250px" scrolling="false"/>
</apex:page>
I'm trying to embed a tableau dashboard on an account page and pass parameters for filtering purposes. The dashboard renders for my browsers, but fails in the SF1 app. Salesforce says it's the iframe so I need a workaround, but I don't quite know how to write the code.
You may have to look at lightning component option for this.
I'm also having trouble with an iframe in salesforce1, did anyone get workaround on this ?