Saturday, 24 November 2012

Passing parameters from controller to another page


The following snippet is used for passing parameters from controller used in one visualforce page to another visualforce page.

PageReference pageref=new Pagereference('/apex/Attachmentoncustomobj'); 

pageref.getParameters().put('id',recid);

Attachmentoncustomobj  is the name of the page to which we want to send the parameters.


2 comments:

Convert 15 character IDs to 18 character IDs in formula field

Hi , We have new method " CASESAFEID() "in formula field now to make 15 character Id to 18 character. Classic 1. Go to  Se...