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




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


please give the replay any one

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:

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:

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.