function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matthew AllenMatthew 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>
Matthew AllenMatthew Allen
Can I assume it can't be done?
Matthew AllenMatthew Allen
Anyone?