how to create a record table of created skuid salesforce reports

  • 1
  • Question
  • Updated 2 years ago
  • Answered
I've created several skuid reports and want to place those report links in a table so I can easily access them from a tab view in skuid. 

Any ideas how I can achieve adding the reports to my custom skuid page? 
Photo of ns

ns

  • 1,822 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Easy way: put each report in a tabset tab and set it to dropdown. Then the selected report will appear based on your drop down choice.
Harder: create a custom object in Salesforce to store the URL of the reports.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
This is also a little harder, but you could also use a Nav component if you want to see a vertical or horizontal stack of your reports instead of a dropdown list. Then, have the nav action dynamically load a page include with javascript, like this:

var pageInclude = skuid.$('#EmptyPageIncludeComponent').data('object');
pageInclude.pagename = //the name of your page
pageInclude.querystring = //any params that your page needs
pageInclude.load(function(){
 console.log('Loaded page include.');
});


Where 'EmptyPageIncludeComponent' is the unique id of your page include component.
(Edited)
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Yes, but you can take it to the next level with the snippet if you add in some other actions to the sequence and/or don't want the tab bar displayed. For example, you could open the report in a full screen popup to give it maximum screen real estate and put the nav buttons anywhere on the page like in your header. Love it.... thanks for posting. I acccomplished something similar through conditional rendering of multiple page include components, but this snippet would have probably saved me some time and creative thinking.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Yeah, I found that method helpful with nested queues in drawers, where we need to load a different page include depending on which level of the queue the user clicks on.
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Yes the options are endless. Seems like it would make a good action item: "Load page include". Then any componenet you need to have variable parameters could be put in a page include, then you could use this action to feed in the parameters and load it.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
i'd vote for it. :)
Photo of ns

ns

  • 1,822 Points 1k badge 2x thumb
Looks like I have a couple options to play with :) 

Let me see which comes out to be better option.

I appreciate it very much and will get back to you on which method was decided on.