function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
for(Schema.SObjectType objTyp : Schema.getGlobalDescribe().Values()){ if(objTyp.getDescribe().isCustom()){ System.debug(objTyp.getDescribe().getName()); } }
you can try this:
All Answers
you can try this:
Vf Page:
<apex:page controller="ObjectSchema">
<apex:form >
<apex:pageBlock >
{!AllObjects}<br/>
</apex:pageBlock>
</apex:form>
</apex:page>
APex Class:
public Class ObjectSchema{
public List<String> AllObjects{get;set;}
Public List<String>objectnames{get;set;}
public ObjectSchema(){
system.debug('here');
AllObjects = New List<string>();
objectnames = new list<String>();
Map<String , Schema.SObjectType> globalDescription = Schema.getGlobalDescribe();
for(Schema.SObjectType objTyp : Schema.getGlobalDescribe().Values()){
system.debug(objtyp);
if(objTyp.getDescribe().isCustom()){
objectnames.add(objtyp.getdescribe().getname());
for(String str : objectnames){
AllObjects.add(str);
System.debug(objTyp.getDescribe().getName());
}
}
}
}
}