Skip to main content
I have created a couple simple VisualForce pages that show only select fields for one of our custom objects.  These VF pages serve as summary reports, showing us only fields that are relevant during our reporting periods.  These VF pages are accessed via the records details page, so if a user wanted to see that quick summary of our custom object, he/she would only have to find that object, click on the VF button, and poof, the new VF page appears with only the important fields we need for reporting.

 

I am wondering if there is a way to pull multiple of these VF pages at once.  For example, if I want to be able to pull all of these VF pages for all of our active records, without having to go into each record and generating the page individually.  Ideally when the VF pages are all pulled at once they would show up in a single window, so I'd be able to print a summary of all of our active records.

 

Is this doable with simple VF code?
1 answer
  1. Jun 28, 2013, 5:47 PM
    You can program a VF page to displays fields from multiple records using some of the <apex:*> components as well as HTML tags.  Assuming you can figure out a way to identify for the page which records you want to show, the controller would just query for the records, create a list, then let the VF page display the list.  Here's a link to the Visual Force Dev Guide that has tons of great examples and descriptions:  http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#.CSHID=pages_compref.htm|StartTopic=Content%2Fpages_compref.htm|SkinName=webhelp
0/9000