function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AffinaquestAffinaquest 

Passing Parameters to Visual Force Page in a Managed Package

I am creating a managed package for distribution to several different organizations.  I have a need to use visual force pages.  I am confused by what is allowed in passing parameters to these pages in a managed package.
 
I can call these pages with the following type of URL successfully in my developer instance:  "/apex/mypage?param1=xyz&param2=abc" and it works fine.  However, some of the posts on this board indicate this might not work in a managed package.
 
I have also seen references to the use of URLFOR, although the solution above seems more straightforward.
 
I'm generally doing this from a custom button on either the detail page or from a related list button.  It has been suggested in this forum that one must use a visualforce page in a managed package to keep this all straight and that the page must use a standard controller.  Unfortunately, that doesn't seem to work with a button on a related list.
 
I would appreciate clarification of exactly what can be done to pass parameters to a visualforce page in a managed package.
 
Thanks in advance for your assistance.
 
40/4040/40
I saw your post and just figured out how to do this myself.  You must reference a standard controller to be able to call a Visual Force page directly from a button.  However, you can extend the standard controller fairly easily.  Take a look at this page (http://wiki.apexdevnet.com/index.php/Code_Samples http://wiki.apexdevnet.com/index.php/Code_Samples) and go to the Quote PDF samples.  There is some good code examples in there for you.

Steve
40/40 Consulting
www.4040consulting.com