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
Travis Lee 1Travis Lee 1 

Visualforce Grid Display/Filters

Hi Forum Community,

I'm attempting to create a panel grid using Visualforce for sellers to enter in values to the Opportunity object for the purposes of a custom forecasting tool. I've got a rough draft of a page that I've included the code for here. I'm trying to accomplish two things:

1. I can't seem to display this page as anything other than a listview button? Not sure what I've done to restrict it's accessibility to a tab override or a custom link?

2. Include filters that are subject to the role hierarchy (create options for My Opps and My Team's Opps similar to standard functionality)?

Open to any suggestions that might exist!
<apex:page standardController="Opportunity" recordSetVar="opps">
    <apex:form >
        <apex:pageBlock >
            <apex:pageMessages />
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}"/>
                 <apex:commandButton value="Quick Save" action="{!quicksave}"/>
            <apex:pageBlockTable value="{!opps}" var="opp">
                <apex:column value="{!opp.Account.Name}"/>
                <apex:column headerValue="Current Goal Amount" value="{!opp.Account.Current_Quarter_Goal__c}"/>
                <apex:column headerValue="Probability">
                    <apex:inputField value="{!opp.Probability}"/>

                <apex:column headerValue="Goal Amount">
                    <apex:inputField value="{!opp.Account.Current_Quarter_Goal__c}"/>
                <apex:column headerValue="Digital Booked">
                    <apex:inputField value="{!opp.Digital_Booked__c}"/>
                <apex:column headerValue="Digital Pipeline">
                    <apex:inputField value="{!opp.Digital_Pipeline__c}"/>
                <apex:column headerValue="PTV Booked">
                    <apex:inputField value="{!opp.PTV_Booked__c}"/>
                <apex:column headerValue="PTV Pipeline">
                    <apex:inputField value="{!opp.PTV_Pipeline__c}"/>
            <apex:panelGrid columns="2">
                  <apex:commandLink action="{!first}">First</apex:commandlink>
      <apex:commandLink action="{!last}">Last</apex:commandlink>
      <apex:commandLink action="{!previous}">Previous</apex:commandlink>
      <apex:commandLink action="{!next}">Next</apex:commandlink>

Alain CabonAlain Cabon
Hello Travis

1) recordSetVar="opps", it is a standard list controller and you use "Opportunity" a standard object.

Setup > Opportunity > Buttons, Links, and Actions > Tab  ( ... edit = Whoa! )

2) Filter with subject? you have used "rerender" yet.