You need to sign in to do that
Don't have an account?
Matthew Allen
visualforce external object Related list
Hi,
Our org uses lightning connect to retireve data from another org. Using a matching ID I can show the external objects as related lists on a standard account page, however I need to show these objects on a Visualforce page? Can I do this?
My VF code is below, the external object API name is MAccount__x. Can anyone help me? If I make detail relatedList="True" then it does show, but I need it on another tab.
<apex:page standardController="Account" showHeader="true"
tabStyle="account" >
<style>
.activeTab {background-color: #236FBD; color:white;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Details" name="AccDetails" id="tabdetails">
<apex:detail relatedList="False" title="true"/>
</apex:tab>
<apex:tab label="Business Area 1" name="BA1">
<apex:relatedList subject="{!account}" list="contacts" />
<apex:relatedList subject="{!account}" list="opportunities" />
</apex:tab>
<apex:tab label="Business Area 2" name="BA2">
<apex:relatedList subject="{!account}" list="MAccounts__x" />
</apex:tab>
</apex:tabPanel>
</apex:page>
Our org uses lightning connect to retireve data from another org. Using a matching ID I can show the external objects as related lists on a standard account page, however I need to show these objects on a Visualforce page? Can I do this?
My VF code is below, the external object API name is MAccount__x. Can anyone help me? If I make detail relatedList="True" then it does show, but I need it on another tab.
<apex:page standardController="Account" showHeader="true"
tabStyle="account" >
<style>
.activeTab {background-color: #236FBD; color:white;
background-image:none}
.inactiveTab { background-color: lightgrey; color:black;
background-image:none}
</style>
<apex:tabPanel switchType="client" selectedTab="tabdetails"
id="AccountTabPanel" tabClass="activeTab"
inactiveTabClass="inactiveTab">
<apex:tab label="Details" name="AccDetails" id="tabdetails">
<apex:detail relatedList="False" title="true"/>
</apex:tab>
<apex:tab label="Business Area 1" name="BA1">
<apex:relatedList subject="{!account}" list="contacts" />
<apex:relatedList subject="{!account}" list="opportunities" />
</apex:tab>
<apex:tab label="Business Area 2" name="BA2">
<apex:relatedList subject="{!account}" list="MAccounts__x" />
</apex:tab>
</apex:tabPanel>
</apex:page>
Matthew Allen
Can I assume it can't be done?
Matthew Allen
Anyone?