You need to sign in to do that
Don't have an account?
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!
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:pageBlockButtons> <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> <apex:column headerValue="Goal Amount"> <apex:inputField value="{!opp.Account.Current_Quarter_Goal__c}"/> </apex:column> <apex:column headerValue="Digital Booked"> <apex:inputField value="{!opp.Digital_Booked__c}"/> </apex:column> <apex:column headerValue="Digital Pipeline"> <apex:inputField value="{!opp.Digital_Pipeline__c}"/> </apex:column> <apex:column headerValue="PTV Booked"> <apex:inputField value="{!opp.PTV_Booked__c}"/> </apex:column> <apex:column headerValue="PTV Pipeline"> <apex:inputField value="{!opp.PTV_Pipeline__c}"/> </apex:column> </apex:pageBlockTable> <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> </apex:panelGrid> </apex:pageBlock> </apex:form> </apex:page>
1) recordSetVar="opps", it is a standard list controller and you use "Opportunity" a standard object.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_sosc_overrides.htm
Setup > Opportunity > Buttons, Links, and Actions > Tab ( ... edit = Whoa! )
2) Filter with subject? you have used "rerender" yet.
Regards
Alain