Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
I have plan to pass the list variable into url.
Ex: List<Id> ids = new List<Id>();
Ids have some list of Ids.
public PageReference method(){
PageReference pr = new PageReference('/VFPage?IdList='+ids);
return pr;
}
can I use like this. And Can I use these list variable in VFPage page.
Regards
Venkat
Hi Venkat,
You could do it like this:
public PageReference method(){ PageReference pr = Page.VFPage; pr.getParameters().put('IdList',String.valueOf(ids)); return pr; }
BUT I would adive against it since you will likely meet the max size of the URL.
What is your usecase for this? why can't you just share the controller between pages?
Hi Venkat,
You could do it like this:
BUT I would adive against it since you will likely meet the max size of the URL.
What is your usecase for this? why can't you just share the controller between pages?