You need to sign in to do that
Don't have an account?
Maheshh Patel
How to retrieve child page parameters?
I have page included(<apex:include pagname="page\parameters">) in the Master Page.
I want to retreive the child page parameters from URL in the child controller...
I tried through "apexpages.currentpage().getparameters().get('id')" ,but this is reffering to the MasterPage parameters..
Kindly suggest how to achieve this?
Thanks for your inputs in adavance!!
I want to retreive the child page parameters from URL in the child controller...
I tried through "apexpages.currentpage().getparameters().get('id')" ,but this is reffering to the MasterPage parameters..
Kindly suggest how to achieve this?
Thanks for your inputs in adavance!!
Best Answer chosen by Maheshh Patel
bob_buzzard
I've never had any success using parameters in the included page - in the past I've hit internal server errors, and while the docs aren't 100% clear, they suggest to me that the include requires a page rather than a page with parameters. If the included page uses the same controller as the parent page, they will share the same controller instance, which allows you to pass information around. Otherwise I suggest you look at turning your included page into a thin wrapper around an apex:component and pulling that into your master page instead, or if that won't work there's always the apex:iframe option, which will accept parameters.