+ Start a Discussion

How to store String(or decimal) values in to custom field from visualforce(apexcode)

I declared one string(decimal) variable in visualforce page (apex class). And also i taken one object with field values (all fields are number type). in visualforce page i am calling that variable name in <apex:repeat> tag,


here what i want is, 


if i given values to those varible from visualforce page, it will effect to custom object record. Means if given one value as 10.0 then one field can take that value and if i given second value it will take second field. 


This is nothing but, Storing values to custom fields through visualforce page. 


I want, how to store these type of operations?


please give the solution ASAP.....





Generally for these kind of scenarios its better to go for wrapper class.