Salesforce.com How To: Simple Visualforce and Dynamically Filtered Reports
Uploader Comments (aognenoff)
All Comments (8)
-
Very helpful..
-
For pc1 I am trying to pass standard fields of opportunity ex:StageName. It does not respond. How to fetch the field id for standard fields. please let me know.
-
Thanx a lot dear .By putting ID in pc0 it worked. I have one more query.I want to make filters in reports in the form of combo box so that user can choose field value at the run time.So is there any built in facility in REPORTS or i have to make it thru dynamic filters.
-
href="/00O90000001zfZ2?pc0=Iss
ue2__c.ID&pn0=eq&pv0={!Left(Is sue2__c.ID,15)}" target="_blank">Dyno Filter -
I have made this link in visualforce but this is not showing any filters in the report.Issue2 is my custom object.
This link works if i set pc0 and pn0 in report and only set pv0 thru this link
please tell me why its not working with pc0 and pn0.
-
qq
-
VERY HELPFUL. Thanks for taking the time to outline this!
You can't pass pc0 as Object.FieldName - you have to pass in the Custom Object Field ID which you can find several ways, the easiest of which is to go to the field definition page (Setup > Create > Your Custom Object > Your Custom Field) and grab the 15 character ID from the URL. That should be the value of pc0.
aognenoff 6 months ago