You need to sign in to do that
Don't have an account?
Creating multiple records using wrapper class
Hello,
Please help me to resolve an issue. I have created a page which will display all the fields name of an object and a comment box in a apex:page table.
An object name as Trans__c have four fields : Language__c, Field__c, Comment__c and object__c. All are Text (320) field.
This link hold the attachment of screenshot of the requirement: https://ap1.salesforce.com/sfc/p/90000000hbAW/a/90000000PKFg/9n6p89F57h.kA5Kdcztjura0UeX260kYIrFYm56btD0=
Now requirement is get those field values from Visualforce page and store them as records. So when Save button will be clicked Number of records (for those fields where comment is not null) will be saved at a time. So if two fields having comments then two records will be saved at a time if save button is clicked. (Map as: Fields Name-->Fields__c, Comment-->comment__c, Language--> Language__c, Object Name-->object__c
Codes Are shared via link: https://ap1.salesforce.com/sfc/p/90000000hbAW/a/90000000PKFl/kbu6qs0sznPu7XISKu_F9d6WtdAxXW8HcjQtWweX6ys=
My issue is I am unable to get the Vales in Wrapper Class which consists Two list of strings. And Can't insert those values as records.
Please help me to resolve this issue.
Thanks and Regards
Debajyoti Mondal
here is a good article about wrapper class
http://bobbuzzard.blogspot.jp/2011/07/managing-list-of-new-records-in.html