You need to sign in to do that
Don't have an account?
aks0011
how to access or get set fieldpaths using wrapper ???? if I want to create and add a new object.
public PageReference addNewObject(){
name = objectName;
Schema.sObjectType SObTypeObj = Schema.getGlobalDescribe().get(name);
system.debug('@cO' +SObTypeObj +'----'+ name);
for(sortedMappingChildren s :finalMapChildren){
if(s.objName == name){
sObject so = SObTypeObj.newSobject();
s.obj.add(so);
}
}
system.assert(false, finalMapChildren);
return null;
}
name = objectName;
Schema.sObjectType SObTypeObj = Schema.getGlobalDescribe().get(name);
system.debug('@cO' +SObTypeObj +'----'+ name);
for(sortedMappingChildren s :finalMapChildren){
if(s.objName == name){
sObject so = SObTypeObj.newSobject();
s.obj.add(so);
}
}
system.assert(false, finalMapChildren);
return null;
}
Please follow the link https://developer.salesforce.com/page/Wrapper_Class
Link will help you in understand Wrapper classes.
Thanks
Vikash_SFDC