You need to sign in to do that
Don't have an account?
Hanumantha Rao 6
How to pass selected reocrd ids in another visualforce page
Hi Folks,
can u pls explain how to pass selected record ids in another visualforce page
Explanation : i have created a vf page dispalying the opportunity related products ,for this using wrapper class so if i select any record and click on the save button it will redirect to another page called:downloadpdf " page , in this page iam downloading pdf file, in this pdf file am unable to display the selected records information in pdf file , pls find the below code and pls do any modifications its very urgnt
VF PAGE :
can u pls explain how to pass selected record ids in another visualforce page
Explanation : i have created a vf page dispalying the opportunity related products ,for this using wrapper class so if i select any record and click on the save button it will redirect to another page called:downloadpdf " page , in this page iam downloading pdf file, in this pdf file am unable to display the selected records information in pdf file , pls find the below code and pls do any modifications its very urgnt
VF PAGE :
Youd can achive this by two way
1) Use Same controller for both VF page
2) Or you can send id in URL
return new PageReference('/apex/PAGENAME?id'+selectedID);
And you can try below code to get ID in new controller.
ApexPages.currentPage().getParameters().get('id')
Please mark this as solution if this will help you
Thanks
Amit Chaudhary
thanks for quick reply ,
if i use
return new PageReference('/apex/PAGENAME?id'+selectedID); in my first controller class ,it will redirect to my another page but pdf file will not be generated,
can u pls tell me how do i need to pass as a string parameter to another controller or pls co modification in my code and reply me ASAP it would be great help full for me
Regards,
Hanu