Visualforce Page

To show report parts in tabs, connect the reports to show into SalesForce.com pages.

  1. In the Build panel click on the Develop > Visualforce Pages
  2. Click on the New button 
    1.  
  3. Enter a Label for the page
  4. Enter a Name (Make sure to use underscores if you have spaces in the Label for the Page).
  5. Enter or paste the code below into the Visual Force Markup field.
  6. Click on the Save button.

Default Code


<apex:page>
<!-- Begin Default Content REMOVE THIS -->
<h1>Congratulations</h1>
This is your new Page
<!-- End Default Content REMOVE THIS -->
</apex:page>

Change to the following


<apex:page >
<!-- Launch Works Call to call a report tab content -->
<apex:iframe
src="http://<launch_server>/launch/callreport.jsp?viewer=HTML&AppName=launch&ID=10555602 &refresh=Y&SfdcSessionId={!$Api.Session_ID\}&SfdcUrl=\{!$Api.Partner_Server_URL_220}" scrolling="true" id="theIframe"/>
</apex:page>

Parameters


E.g. Retrieve custom field called Federated id from my profile and pass the value as Account variable in Webi report.
 
SA=Account={!Account.mdtEAppCore_Federated_Id_c}
Full Code:
<apex:page standardController="Account" extensions="AccountBOLW">
<apex:form >
<apex:pageBlock title=" " mode="view">
<apex:pageBlockSection title=" " columns="1">
<iframe width="100%" height="400" src="http://<launch_server>/launch
/callreport.jsp?viewer=HTML&AppName=launch&ID=10485515&refresh=Y&SA=Account={!Account.mdtEAppCore_Federated_Id_c}&SfdcSessionId={!$Api.Session_ID}&SfdcUrl={!$Api.Partner_Server_URL_220}">
//scrolling="no" frameborder="0"
</iframe>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>


Visual Force Tab

  1. In the Build panel click on the arrow next to Create  and then Tab
  2. Click on the New button 
  3. Select the Visualforce page you want to show in the tab
  4. Enter a Label for the tab
  5. Enter a Name (Make sure to use underscores if you have spaces in the Label for the tab).
  6. Select an Icon for you tab
  7. Depending on your security you will have the options to apply the tab to one or more profiles and 
    apps in Step 4 and Step 5 of the  Tab addition process. 
    1.    
  8. Save your settings
  9. To place the tab in your tab menu press the + button on the tab menu
  10. Select your tab from the list of tabs