You need to sign in to do that
Don't have an account?
Wayne Solomon 2016
Files related list not working when apex:tabpanel is added
Hi
Whenever I add an apex:tabpanel component to a vf page the new Files related list upload button doesn't upload the selected file. Once I remove the apex:tabpanel component then Files start uploading
<pre>
<apex:page standardController="Account">
<!-- component causing issue -->
<apex:tabPanel ></apex:tabPanel>
<!-- classic attachments related list works regardless of apex:tabpanel component-->
<apex:relatedList subject="{!account.id}" list="CombinedAttachments" />
<!-- new salesforce files related list doesn't work with apex:tabpanel component -->
<apex:relatedList subject="{!account.id}" list="AttachedContentDocuments" />
</apex:page>
</pre>
Whenever I add an apex:tabpanel component to a vf page the new Files related list upload button doesn't upload the selected file. Once I remove the apex:tabpanel component then Files start uploading
<pre>
<apex:page standardController="Account">
<!-- component causing issue -->
<apex:tabPanel ></apex:tabPanel>
<!-- classic attachments related list works regardless of apex:tabpanel component-->
<apex:relatedList subject="{!account.id}" list="CombinedAttachments" />
<!-- new salesforce files related list doesn't work with apex:tabpanel component -->
<apex:relatedList subject="{!account.id}" list="AttachedContentDocuments" />
</apex:page>
</pre>
All Answers
Cannot read property 'isFileSync' of undefined is getting thrown
https://success.salesforce.com/issues_view?Id=a1p3A000001SoQ5
public class SalesCallAgendaViewController {
public Account acct {get; set;}
public Boolean rendered { get; set; }
public SalesCallAgendaViewController(ApexPages.StandardController controller){
this.rendered = false;
setupData();
}
public void setupData(){
this.acct = [ SELECT Id,Name
FROM Account
WHERE Id='0010I00002747Lk' // some valid Id
];
}
public void renderList() {
this.rendered = true;
}
}
****************************************
<apex:page standardController="Account" extensions="SalesCallAgendaViewController" tabStyle="Account">
<apex:outputpanel id="SalesCallAgendaTabPanel">
<apex:detail relatedList="false" inlineEdit="true" />
</apex:outputpanel>
<apex:outputpanel id="fileList">
<apex:relatedList rendered="{!rendered}" list="AttachedContentDocuments"/>
</apex:outputpanel>
<apex:form >
<apex:tabPanel selectedTab="scadetails" id="SalesCallAgendaTabPanel2" >
<apex:tab title="Upload files" label="Upload here" id="scadetails">
</apex:tab>
</apex:tabpanel>
<apex:actionFunction action="{!renderList}" reRender="SalesCallAgendaTabPanel2,fileList" name="renderList" id="renderList"/>
</apex:form>
<script>
setTimeout(function() {
renderList();
}, 2000);
</script>
</apex:page>