function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shubham SonarShubham Sonar 

how to pass post data between visualforce pages

hello all,
     I am sharing some useful information between VF pages using PageReference getParameters. I am finding it bit risky to do all operations using the url parameters. For example:  the url: my.saleforce.com/deletePage?idToDelete=a0d00asdsdfgyXas is used to delete a record. But is there any way to make url unintelligible(as well as pretty) or a way to pass data between pages without addinng the ids to url.
Amit Chaudhary 8Amit Chaudhary 8
NOTE :- you can also create the same controller (Apex) class for both VF page in that case no need to pass value in URL.
Thanks


Please check below post
1) http://www.forcetree.com/2009/06/passing-parameters-to-visualforce-page.html
2) https://gist.github.com/pchittum/7929944

 
Shubham SonarShubham Sonar
hey amit, I haven't tried your solution yet but is it a best practice to create a single APEX code for multiple VF pages. Assume it to be a large scale application made in salesforce. I am working on Lightening components right now and finding it more useful than VF pages and controllers in the same concern. Maybe Cache.SESSION could also help for the same.