我是銷售人員發展的新手。我無法在社區用戶訪問的可視化頁面中創建自定義對象記錄表。我可以通過使用包裝類訪問個人記錄。然而,我不能顯示一個表,如果我在頂點使用包裝對象列表:重複值,我得到這個錯誤(因爲它們不是SObjects):需要社區用戶VF的自定義對象表
「只能與SObjects或Visualforce對象一起使用現場組件可解析「。
解決此問題後,我還需要支持內聯編輯。客戶社區用戶的自定義對象訪問是否受限?只有通過社區門戶進行訪問,問題纔會出現。實現內聯編輯自定義對象表的任何方式?
VF頁
<apex:page controller="FHController" >
<apex:form >
<apex:repeat value="{!fhList}" var="rec">
Series: <apex:outputField value="{!rec.Series__c}" />
</apex:repeat>
</apex:form>
</apex:page>
控制器
public class FHController {
public List<Funding_History__c> fhList {get; set;}
public FHController() {
String id = ApexPages.currentPage().getParameters().get('id');
fhList = [SELECT id, Series__c, Date__c, Amount__c, Valuation__c, Investors__c FROM Funding_History__c WHERE Account__c = :id];
}
public PageReference save() {
System.debug('COUNT: ' + fhList.size());
update fhList;
return null;
}
}
謝謝!