You need to sign in to do that
Don't have an account?
Tadd
I need help creating a visualforce page that returns a table of filtered data from opportunities
I want to create a list of opportunities on a visualforce page so I can add them to our dashboard.
You can use pageblock table to display records if you are sure that count will be less than 1000
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_pageBlockTable.htm
In addition to Venky's comments, please go through the below link to make it editable list:
http://mwelburn.github.io/Visualforce-Edit-Multiple-Records/
if you don't want to edit it, just to display then you can use PageBlockTable example and retrieve the results;
Sample code for PageBlockTable is:
Along with Venky's link, you can also look into below options:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_iteration_components.htm
http://salesforce.stackexchange.com/questions/44310/creating-visualforce-pageblocktable-with-custom-object-table-not-appearing
This one will shows you different other components to display table kind of output.
http://www.thephani.com/difference-between-pageblocktabe-datatable-repeat/
Please let me know if this helps you.
Regards,
Mahesh
Based on your help I came up with the following which returns a blank page:
<apex:page standardController="Opportunity">
<apex:pageBlock title="Work Ticket Status">
<apex:pageBlockTable value="{!Opportunity}" var="Work_Ticket_Status__c">
<apex:column value="{!Work_Ticket_Status__c}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
Please do let me know if it helps.
Regards,
Mahesh
I need three columns where the example only has two, the opportunity fields are "Work_Ticket__c" "Name" and "Questions_and_Comments__c"
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_advanced_dashboard_components.htm