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
6262 

Hello all, iam new to Apex and Visualforce.. can any one answer this Question?

How to pick the data from V'force page to controller class and how to update and insert these data into DB??

NiketNiket

Hi ,

 

You need to create getter and setter properties for the variables whose values you want to pull from page to controller. You can find a very good example here :

 

http://www.forcetree.com/2009/07/getter-and-setter-methods-what-are-they.html

 

In order to insert please go through following link :

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_dml_insert.htm

 

Please mark it as the solution if it answers your question and if you have any question, let me know.

 

Ckeck My Blog