You need to sign in to do that
Don't have an account?
URVASHI
Setredirect(true) value passing
Hi can some help.
I wana pass a value to a vf page select list but with setredirect as true.
I tried using
public PageReference DatabaseSelectionPage() //true tha { PageReference newpage = new PageReference('/apex/connection1?dbname='+selectedValue); newpage.setRedirect(true); newpage.getParameters().put('dbname',selectedValue); selectedValue=ApexPages.currentPage().getParameters().get(selectedValue); return newpage; }
But its passing the value in url.
I want my selectedvalue to be passed to my select list on connection1 page.
Can any one please help?
Thanks.
First of all, your code is overly complicated.
The trick though, is that the next page (connection1) must read that value from the page parameters:
All Answers
First of all, your code is overly complicated.
The trick though, is that the next page (connection1) must read that value from the page parameters:
Hey sorry i marked it as solution but it isnt working.
My select list still shows the default value.
Where do i write the last line of code u have provided.(inside the function or outside)?
Thanks
Hey its working fine,when i called it in constructor thanks a lot :):)