Using schema methods and Wrapper class I displayed all custom objects and Related fields with del and Edit commandlinks.How to perform delete functionality on delete Command link on custom objects and fields,
Using this i deleted fields but this is not working on objects.In fields also i deleted one field automatically all fields will be deleted and following error will be come
(i think using id's only possible custom objects and fields that's why i am asking using wrapper class how to get field id's and object ids) this is my lat requirement
System.LimitException: rajesh:Too many callouts: 11 Error is in expression '{!doDelete}' in page createfields
Class.rajesh.MetadataService.MetadataPort.deleteMetadata: line 8470, column 1 Class.rajesh.MetadataController11.doDelete: line 22, column 1
This is not possible using apex. So for that you have to use "Tooling API" to retrieve custom object ids.
http://www.salesforce.com/us/developer/docs/api_toolingpre/api_tooling.pdf
Hope this will helps you.
thank u for replay
Using schema methods and Wrapper class I displayed all custom objects and Related fields with del and Edit commandlinks.How to perform delete functionality on delete Command link on custom objects and fields,
please help me..........
Please read the metadata components.
Example
AsyncResult[] = metadataConnection.delete(Metadata[] metadata);
Using this i deleted fields but this is not working on objects.In fields also i deleted one field automatically all fields will be deleted and following error will be come
(i think using id's only possible custom objects and fields that's why i am asking using wrapper class how to get field id's and object ids) this is my lat requirement
System.LimitException: rajesh:Too many callouts: 11
Error is in expression '{!doDelete}' in page createfields
Class.rajesh.MetadataService.MetadataPort.deleteMetadata: line 8470, column 1
Class.rajesh.MetadataController11.doDelete: line 22, column 1
please help me