public class customController {
public List<Account> lstAccount {get; set;}
public customController() {
lstAccount = [select id,name from Account];
}
}
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
I am also interested in this question please. I want to run a query on records and display that information in a visualforce page. I dont want the data to come from existing fields in records, but it to be generated by code and displayed in the UI, the data does not need to be stored either. Thanks
Hi,
here is the simple example for display account record dynamically to visualforce page.
Visualforce Page:
Apex Class:
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thanks,
Hitesh Patel
Thanks for your reply, But I want to Pulling of dynamic data by the UI and displaying in visualforce page.