You can use describeSObject() to get the field names for an object. Use the output to build a dynamic SOQL query. Refer to the following article for the same:
And then you can use the query() function by passing the dynamic query build to get the data in a list object which you can ind to the pageBlockTable. Refer to the link below for this:
You can use describeSObject() to get the field names for an object. Use the output to build a dynamic SOQL query. Refer to the following article for the same:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_describesobject.htm
And then you can use the query() function by passing the dynamic query build to get the data in a list object which you can ind to the pageBlockTable. Refer to the link below for this:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_query.htm
Hope this helps.
Hi, to all,
This is Santhosh, I have one requirement that is.
1.Displaying all objects of organization in a picklist. if i select any one of the object, all field names must be display in
pageblocktable header column wise and records also display under the fields respectively.