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
SexmanSexman 

How do I put an <apex:listviews> in a <apex:PageBlock>?

I need an <apex:listviews> inside of an <apex:PageBlock> , but I can't  do it because, according with the error message, the <apex:listviews> can't be inside a <apex:form> tab.

 

 

Cheers!

Best Answer chosen by Admin (Salesforce Developers) 
hisrinuhisrinu

Why dont you create the other pageblock and keep it in the form and  place the command buttons.... it might not look exactly the same but you can do some kind of work around

All Answers

hisrinuhisrinu

 

<apex:page standardController="Account">
<apex:pageBlock>
<apex:listViews type="Account"/>
</apex:pageBlock>
</apex:page>

 

 

SexmanSexman

Thanks, Srini, but what I want to know is how to fill it with buttons.

hisrinuhisrinu

Why dont you create the other pageblock and keep it in the form and  place the command buttons.... it might not look exactly the same but you can do some kind of work around

This was selected as the best answer