Is there a better way to include visual force page in skuid page other than use of iframe ?

  • 2
  • Question
  • Updated 2 months ago
  • Answered
I have a tabbed skuid page and one of the tab is a combination of skuid + visual force page. So I have used PanelSet for this and included the visualforce page in one half using template and iframe. Is there any better way to achieve this? 
Photo of Sneha

Sneha

  • 624 Points 500 badge 2x thumb

Posted 3 years ago

  • 2
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
There is not another way of achieving this.  We used to allow you to use the page include method for VF pages,  but if your VF page did any data operations at all these completely collided with the skuid operations and all sorts of silliness emerged. We deprecated the method. 
Photo of Sneha

Sneha

  • 624 Points 500 badge 2x thumb
Now the page include just gives the option to include skuid pages/assignments. So basically there isnt any other way other than iframe. Right?
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
As stated above,  we deprecated that method..  iFrame / Template is the best solution.  Would recomend that you set your template to not be bound to any Model and use global merge syntax for including data in your iframe code. 
Photo of manuj

manuj

  • 60 Points
if clickjack protection is enabled in salesforce, pages don't load because of the use of iframe. What is the alternative recommendation from skuid?
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Manuj, unfortunately Skuid does not have control of this behavior, since it depends on Salesforce security settings, and browser behavior in some cases.

But there are options to consider. If you're building this for Classic Salesforce, you could set up your Visualforce page so it shows a Skuid page alongside the Visualforce content, instead of putting the VF page inside Skuid. Or, if you're in Lightning, you could similarly, set up both the Skuid page and the Visualforce page as separate components inside a Lightning App Builder page.