Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6675905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:55:10+00:00 2026-05-26T03:55:10+00:00

Ok, so I want to have a report that does not require the end

  • 0

Ok, so I want to have a report that does not require the end user to know all about writing and customizing reports or memorizing field values. I ultimately want the user to be able to use a collection of prepopulated SelectList based filters on an apex page I’ve created to filter their report.

So far I have this as far as being able to filter by one value for each field:

  1. Create an Account report
  2. Add a filter for BillingState Equals blank (This is filter #1, or index 0)
  3. Create a Page with a SelectList and use a Controller to populate it with a list of States
  4. Create a CommandButton on the page and use a PageReference object to redirect to the Report
  5. At the end of the URL for the report, add pv0 (parameter value for index 0) = [selected state]

So this is all well and good – instead of having the user memorize valid field values and mess with report filters they can point and click stuff – so simple a sales person could do it.

But now I want to filter by a list of states (or some other text field). I can easily get a String[] list of states with the multiselect attribute of the SelectList, but I don’t know how to go about applying it to the report. In an SQL sense I want add a “State=x OR State=y OR State=Z” or “State IN (x, y, z)” where condition to the reports query.


How could I go about doing this – filtering a report by a list of valid values for a field, and doing it programmably from a controller?

  • Is there some method to programmably create a temporary report on the fly? Clone a “template” report and then add OR filters as needed?

  • Is there a way to pass a set of objects to a report? Some reports return a lot of results, so this seems dangerous.

  • When doing PageReference redirection the Redirect attribute states that when it is false all the state information is retained, but the destination page must have the same controller – is there a way to use controllers with reports to customize their logic?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:55:11+00:00Added an answer on May 26, 2026 at 3:55 am

    If I get you right, you’re almost there.

    Add your criteria values comma separated to the appropriate URL parameter. In your example, the pv0 URL parameter:

    /[your-report-id]?pv0=OR,FL
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple report that I want to export to a CSV file.
I have a simple report sending framework that basically does the following things: It
I have a report that I created with Crystal Reports 2008. This report uses
I have a report that I currently allow the user to choose an output
I have a report that contains a drop down of users. I want the
I have a section in a Crystal Report that I want to suppress. I
I have a client report (rdlc) and want to repeat some textboxes in every
I have a JasperReport and I want to create for this report a cover
I have data in 2 tables, and I want to create a report. Table
I am using Crystal Report 2008 with C# , have a WinForm and want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.