Skip to main content
I have two VisualForce pages that I've created that deal with a custom object.  The first page has several search criteria.  The second page is called from the first and is designed to show the details of a selected record.

How do I pass the ID from the Search page to the Detail page?  The code snippit I'm using is:

                        <apex:outputLink value="{! URLFOR('/apex/boleteDetailView', bol.Id) }">

                            View

                        </apex:outputLink>

This opens the detail page fine, but I don't see any evidence that the ID has been passed.

Also, once I am on the detail page, how do I retrieve the details for the selected record?  Is there a way to retrieve the custom object's fields/values directly (like you can with the standard controller) or will I also need to create a function in the custom controller to get the detail records?
2 answers
  1. Jul 10, 2015, 3:38 PM
    Since I am using a custom object and custom page, I don't think I can use the $Action variable.  Otherwise, the code looks like what I indicated.  So, how do I tell if the ID was successfully passed to the page designated in the URLFOR action?  It doesn't show up in the URL when the page is displayed.
0/9000