Skip to main content

We have a client that has multiple apex controller classes linked to VF pages. The controllers use SOQL inner joins to create variable sets pulling data from multiple objects AND creates virtual fields for data not stored in salesforce objects.


Does skuid allow the ability to access and display apex variables in a table?


The code below is a simplified working VF page. It references an apex controller: PPL_Client_Account_Selection that does a join of a couple salesforce objects as well as defines a virtual field called: !account.selected that does not exist in any salesforce object.


Goal is to use a skuid table that displays the controller variable data.


The best that I can determine is that skuid tables utilize a model for displaying data and models can only reference Salesforce Object data and not an apex class variable.



<apex:page standardController=“Portfolio_Proposal__c” extensions=“PPL_Client_Account_Selection”>

<apex:form >

<apex:pageMessages />


<apex:pageBlock title="input">
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}"/>
</apex:pageBlockButtons>
<apex:pageBlockTable value="{!accounts}" var="account">
<apex:column headerValue="Select">
<apex:inputCheckbox value="{<b>!account.selected</b>}"/>
</apex:column>
<apex:column value="{!account.account.Name}"/>
<apex:column value="{!account.account.Registration_Type__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>

</apex:form>


<apex:outputText value=“{!Portfolio_Proposal__c.Account__c}” rendered=“false”/>

</apex:page>

This isn’t a direct answer.  

Why are you trying to display an apex class variable in the table. 
It looks to us like you are simply trying to show one account record as selected.   If this is true,  there are easier ways to accomplish that in Javascript that we would reccomend. 

Having said that - you are right,  Skuid models connect to object data,  not to Apex class variables. 


Thanks Rob

You are correct that the example is a simple record account selected, example was simplified for the question.