Pass skuid model values to canvas app entity fields in an iframed visual force page

  • 2
  • Question
  • Updated 3 years ago
  • Answered
  • (Edited)
I've read every post in this awesome community that contains the word "canvas", so I'm fairly certain this is a new question...

We have a visual force page that we use on detail pages for various objects (Account, opportunity, etc):
<apex:page standardController="Opportunity">apex:canvasApp applicationName="Lane_Cloud" width="100%" entityFields="Name,attchCreate__c,attchRead__c,attchDelete__c,attchTabList__c,attchTabActive__c" />
</apex:page>
We want to include this canvas app in our skuid detail page. Thanks to previous conversations posted, I've got a template set up to display the VF page in an iframe:
<iframe src="/apex/c__Opportunity_Attachments"?id={{{$Model.Opportunity.data.0.Id15}}}&isdtp=mn" width="80%" height="400px" frameborder="false"></iframe>
The page is showing up, but without any of the entity field values.  How do you get the values from the data model into the entity fields for the canvas app?
Photo of Jared Jones

Jared Jones

  • 2,214 Points 2k badge 2x thumb

Posted 3 years ago

  • 2
Photo of Jared Jones

Jared Jones

  • 2,214 Points 2k badge 2x thumb
Official Response
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