Skip to content

Instantly share code, notes, and snippets.

@mokamoto
Created April 10, 2014 02:40
Show Gist options
  • Save mokamoto/10338397 to your computer and use it in GitHub Desktop.
Save mokamoto/10338397 to your computer and use it in GitHub Desktop.
<apex:page standardController="Case" recordSetvar="cases">
<apex:pageBlock >
<apex:form id="theForm">
<apex:panelGrid columns="2">
<apex:outputLabel value="View:"/>
<apex:selectList value="{!filterId}" size="1">
<apex:actionSupport event="onchange" rerender="list"/>
<apex:selectOptions value="{!listviewoptions}"/>
</apex:selectList>
</apex:panelGrid>
<apex:pageBlockSection columns="1">
<apex:dataList var="c" value="{!cases}" id="list">
{!c.subject}
</apex:dataList>
</apex:pageBlockSection>
</apex:form>
</apex:pageBlock>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment