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
AnushaAnusha 

Re : Insertion of Values from DataTable

Hello Evryone,

I have a small issue that,

I need to insert the Records from a DataTable to my custom Object.

(i.e., there are 10 InputText Fields in a Datatable in my Page, Now I need to Insert these values to my Object )

 

I have written the properties for that inputText, But it taking the last entered value.

 

Please Help me...............

Thanks in Advance............

Best Answer chosen by Admin (Salesforce Developers) 
Pradeep_NavatarPradeep_Navatar

I do not think there is an issue with inserting all text values in object. All values will declare as getter and setter property in controller side and when we create an instance of an object and bind with the actual field API name with the string variables to insert the records.

All Answers

Pradeep_NavatarPradeep_Navatar

I do not think there is an issue with inserting all text values in object. All values will declare as getter and setter property in controller side and when we create an instance of an object and bind with the actual field API name with the string variables to insert the records.

This was selected as the best answer
AnushaAnusha

Yeah, but I'm passing more then one Record to Controller from Page via the DataTable.

i.e., I have <apex:inputTest /> in Data Table I need to insert this Field Values into Object.