+ Start a Discussion
sss pppsss ppp 

list view

Hello guys,

Can anyone explain me this code.

<apex:page standardController="Opportunity" recordSetVar="accounts">
       <apex:selectList value="{!filterid}" size="1">
           <apex:selectOptions value="{!listviewoptions}"/>
       <apex:commandButton value="Go" action="{!list}"/>
Medhya MahajanMedhya Mahajan

This code is used to display a list view of accounts.
This link mgiht help you : https://trailhead.salesforce.com/en/visualforce_fundamentals/visualforce_standard_list_controllers

MArk Solved if it helped.

Medhya Mahajan