Reply
Regular Contributor
Adil_SFDC
Posts: 72
0

Adding Data of One Visual force Page to other

Hi All 

 

I have 2 Visualforce Pages. 

 

My First visual force Page is called "ContactIntegration" and the page displays a list of documents from a website.

Lets say I have 3 documents A,B,C. 

I have a custom button on this page called Customize Email Text which invokes another VF Page ContactEmail which has a field called "Subject".

 

If "A" doc is selected I want to pass title of "A" in the subject.

If A , B and C are selected My subject should Say title of "A"+ 2others selected.

 

Please help.

Trusted Contributor
vishal@force
Posts: 429
0

Re: Adding Data of One Visual force Page to other

Hi,

 

If the data (titles) that you want to transfer to the other page isn't too long, one way to do this is using url parameters.

 

For example:

 

A has title 'titleA', you can add this as a parameter :

 

'apex/yourPageName?selectedTitle=titleA';

 

and then fetch this value using ApexPages.currentPage().getParameters().get('selectedTitle'); in your second page's controller.

Vishal, Certified Developer and Administrator
Kudos a post if it helps, mark it as solution if it solves.
http://exploretheforce.blogspot.in