This looks like a Visualforce problem not a Skuid problem — you may need to request each individual field on the Opportunity record manually through Visualforce merge variables, otherwise the Standard Controller won’t request those fields and won’t have them available when it loads the Canvas app, e.g.
<apex:page standardController=“Opportunity”>
<apex:variable var=“name” value=“{!Opportunity.Name}”/>
<apex:variable var=“attachCreate” value=“{!Opportunity.attchCreate__c}”/>
<apex:variable var=“attachRead” value=“{!Opportunity.attchRead__c}”/>
<apex:canvasApp applicationName=“Lane_Cloud” width=“100%” entityFields=“Name,attchCreate__c,attchRead__c” />
</apex:page>
Zach,
Thanks for the tip, will try that out. Meanwhile, we’ve done a bit more troubleshooting. When inspecting the json for the canvas app in the skuid and non-skuid versions, the only difference is that the skuid version does not have the record information. Everything else is identical.
Non skuid:
{ "algorithm": "HMACSHA256",<br /> "issuedAt": 1993913602,<br /> "userId": "match...",<br /> "client": {match...},<br /> "context": {<br /> "user": {match...},<br /> "links": {match...},<br /> "application": {match...},<br /> "organization": {match...},<br /> "environment": {match...},<br /> "parameters": {<br /> <br /> },<br /> "record": {<br /> "attributes": {<br /> "type": "Opportunity",<br /> "url": "/services/data/v36.0/sobjects/Opportunity/006..."<br /> },<br /> "Id": "00617000008VaOuAAK",<br /> "Name": "Sandbox Refresh - 2nd Test",<br /> "attchCreate__c": "Files,Customer File,PM Bids,PM Re-Bids,Value Analysis,Customer Bid,Pre-Award,Final",<br /> "attchRead__c": "Files,Customer File,PM Bids,PM Re-Bids,Value Analysis,Customer Bid,Pre-Award,Final",<br /> "attchDelete__c": "Files,Customer File,PM Bids,PM Re-Bids,Value Analysis,Customer Bid,Pre-Award,Final",<br /> "attchTabList__c": "Files,Customer File,PM Bids,PM Re-Bids,Value Analysis,Customer Bid,Pre-Award,Final",<br /> "attchTabActive__c": "Customer Bid"<br /> },<br /> "version": {match...}<br /> }<br /> }<br />}
skuid:
{ "algorithm": "HMACSHA256",<br /> "issuedAt": 1993913602,<br /> "userId": "match...",<br /> "client": {match...},<br /> "context": {<br /> "user": {match...},<br /> "links": {match...},<br /> "application": {match...},<br /> "organization": {match...},<br /> "environment": {match...},<br /> "parameters": {<br /> <br /> },<br /> "record": {<br /> },<br /> "version": {match...}<br /> }<br /> }<br />}
I found the problem. I had put a quotation mark where it shouldn’t have been.
The apex variables mentioned in Zach’s post were not needed.
VF + Canvas + Skuid = Amazing