function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
santusantu 

Hi,

Hi,

 

how to display objects all field names and records in pageblocktable dynamically when click on object in picklist

 

please give the replay any one

kranjankranjan
Hi Santu,

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.
santusantu

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.