You need to sign in to do that
Don't have an account?
Shwetal Desai
Pass parameters From One VF page to another VF Page
Hi,
There are two Visual force pages i have,
One is for master custom object and another is for detail custom object
now what i have to do is when user click on save button on master vf page it will redirect the user to Detail vf page and also set the Id and Name of Master record in the apropriate <apex:inputfield> of master's in detail vf page.
I tried it with javascript and querystring, but its not work..
anyone has idea about it?
any help/guidance pls?
Thanks
http://forums.sforce.com/sforce/board/message?board.id=Visualforce&message.id=4054
Thanks for reply
let me make my problem more clear.
I have two visual force pages, On page-1 i have one command button onclick of which page-2 will get open as a pop up page.
now on page-2 i have two <apex:inputHidden> components one fir Id and one for Name.
I've passed the value of Id & name in a page-2 using query string.
now my problem is i need to save this id and name in custom object when other values will be saved using Save button and then i have to return on page-1.
to do this i need to fatch value of Id & Name from query string [I did this through javascript, i have these values in a javascript variable.]
but now how can i pass this values to controller and how can i save it.
please have a look on code
Please guide me and show me proper way to finish this functionality.. as its urgent.
Thank u much in advance.
Please refer http://wiki.apexdevnet.com/index.php/Using_Browser_Technologies_in_Visualforce_-_Part_2
This provides a possible solution.