You need to sign in to do that
Don't have an account?
Navneeth Raj
Invalid type: Schema.SObjectType ERROR2
public class SchemaExample1 {
public Map<String,Schema.SObjectType> objMap {get;set;}
public List<SelectOption> objs {set;get;}
public SchemaExample1(){
objMap=Schema.getGlobalDescribe();
Set<String> key=objMap.keySet();
objs=new List<SelectOption>();
for(String s:keys){
Schema.SObjectType sobj=oldMap.get(s);
Schema.DescribeSObjectResult res=Sobj.getDescribe();
SelectOption op=new selectOption(s,s);
objs.add(op);
}
}
}
public Map<String,Schema.SObjectType> objMap {get;set;}
public List<SelectOption> objs {set;get;}
public SchemaExample1(){
objMap=Schema.getGlobalDescribe();
Set<String> key=objMap.keySet();
objs=new List<SelectOption>();
for(String s:keys){
Schema.SObjectType sobj=oldMap.get(s);
Schema.DescribeSObjectResult res=Sobj.getDescribe();
SelectOption op=new selectOption(s,s);
objs.add(op);
}
}
}
Let me know if this is correct or not.
If this solve you problem mark this as best answer to help others.