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
AHAMMEDAHAMMED 

visual force

HI 

I want to Create One Inputtex Box and command button, Now i am insert Sobject's like account, contact,and lead then cliock the command button then i want to display sobject Related query, related record's and list of records
 
SantoshChitalkarSantoshChitalkar
Hi,

This one is a biggy dud. You can try this using following logic.
1) On button click, pass the entered object to apex class. e.g. suppose in inputtexbox you entered 'Account'
2) Accept the value in controller method and use Globledescribe() to get all the fields related to that object.
3) Generate Dynamic query string and fetch the records from sf DB.
4) return the the list of records to Visualforce page and rerender it again.

Regards,
Santosh Chitalkar