Alpha Video Training
Page 2 of 2 FirstFirst 12
Results 31 to 33 of 33

Thread: Filter report with multiple parameters

  1. #31
    Real Name
    Edhy Rijo
    Join Date
    Sep 2012
    Bronx NY

    Default Re: Filter report with multiple parameters

    Yes the SP is the report's datasource.
    These are the steps:
    1. Create a new report based on <SQL Data Source>
    2. In your data source, for SQL Syntax select "Stored Procedure"
    3. Create your report arguments as shown in my previous screenshot and add a call to your stored procedure passing the report arguments :arg1, :arg2 etc. that you created.
    4. Now when you design your report, AA will grab the metadata for the fields in your SP so you can drag and drop your fields in the report.
    5. Click preview and your SP will be executed and the report previewed.
    6. Then in your UX you can use a JavaScript Action to open that report and update its arguments/parameters with the values of your UX controls expected by your SP.

    As you can see the most important part is to make sure your SP is working properly in MySQL before you can use it anywhere in AA.
    Edhy Rijo
    (Computer Consultants)
    The makers of CardTracking.Net

  2. #32
    Real Name
    Travis Parker
    Join Date
    Feb 2011

    Default Re: Filter report with multiple parameters

    Thank you Edhy, that helps a lot. I appreciate you spending the time to help me.
    I will tackle this next week.

  3. #33
    Real Name
    Travis Parker
    Join Date
    Feb 2011

    Default Re: Filter report with multiple parameters

    We have expanded the report UX with a way to enable and disable the filter fields based on which report will be run. In the screenshot we have filter fields which may or may not be in the reports underlying datasource, but we want to be able to run many reports from one UX and using the same filters. To do this we allow the user to first click which report they want to run, this does not run the report, but instead it sets some checkboxes true or false for each of the filter fields on the UX. If the checkbox is true then the filter field is enabled, if not then it is disabled and the user cannot use the filter, since the datasourse does not contain that field. It would actually not do anything anyway, but it can confuse users if they select a filter that has no bearing on the outcome of the report.

    My question is there an easier way to do this than what we came up with? Still not confident using Alpha, and sometimes we do things the round about way.

    We will be adding a few more filter fields and a lot more reports to this UX, but it seems to work ok, so far.
    We started by trying to just enable and disable the fields when the report is selected, but never had any luck, so we used the checkboxes.

    If anyone has a better way, please let us know before we build this bigger and expand to other modules in the application.

Similar Threads

  1. Showing report filter parameters on report
    By Ckirkpatrick in forum Alpha Five Version 11 - Desktop Applications
    Replies: 15
    Last Post: 12-04-2014, 02:15 PM
  2. How do I create a report based on the parameters of the filter date
    By r.akabane25 in forum Mobile & Browser Applications
    Replies: 18
    Last Post: 09-29-2014, 07:06 AM
  3. How do I show selected filter parameters for a report in the report
    By Robert Rough in forum Alpha Five Version 7
    Replies: 14
    Last Post: 10-03-2006, 03:36 PM
  4. Multiple Parameters when Building Grids
    By Rich Hartnett in forum Archived Wishlist
    Replies: 0
    Last Post: 06-01-2006, 01:36 PM
  5. Passing Filter Parameters to Report
    By Jim Stephenson in forum Alpha Five Version 5
    Replies: 2
    Last Post: 06-21-2004, 06:50 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts