1

Is there any possibilities of adding the query results to the <apex:enhancedList> in an VF page

1

Just making an assumption regarding the meaning of 'the query results' in your question. Are you saying you want to do your own query and display the results of it using the apex:enhancedList component? If so, the answer is no, this component does its own querying based on the users list view filters. However...

To display your own results consider either packaging your own list view which you can reference using this component or for more flexibility (queries can be dynamic) take a look at using the apex:pageBlockTable component. The Salesforce documentation has a good sample on it here. Also see other links below.

A list of data displayed as a table within either an or apex:pageBlockSection component, similar to a related list or list view in a standard Salesforce page

enter image description here

Here is a video I found demonstrating its use, http://www.youtube.com/watch?v=9qL-fh-h1DU. Also a cool demo using it to display an additional detail row (i know not something you asked about, but ignore that this sitll gives you some keen further insight into the compoent).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.