Anyone have suggestions on how to apply a filter for a dynamic report.
I have a BAQ that shows open jobs. I created dynamic report that uses that baq and i would like to let the users select the jobs they would like to see.
In the BAQ Report Designer, choose File → New Option. Then chooses the BAQ column, comparitor, and if you want a default.
Test the report and you’ll see new field that is used to filter the BAQ results.
OPTION gives you a control of the type for the column selected. It is intended to hold a single value.
FILTER will give you a grid so you can have multiple values to compare the results to. This would be better for having multiple jobs. Note that the rows are compared to the data and OR’d together.
@DaveOlender, Please follow the below-mentioned steps under Report Data Definition.
Create Report Criteria Sets
In this example, we have already set up BAQ Defined parameters and table criteria in the BAQ Designer. Report Criteria Sets allow you to create and configure the prompts and filter controls that will accept user input of the required values when the report is submitted. Each prompt or filter is then mapped to a BAQ defined parameter.
Therefore when the report is submitted and the user enters prompted values, the BAQ retrieval is controlled by the entered values.
From the File menu, select New Report Criteria Set.
In the Report Criteria ID field, enter XXX_CriteriaSet (where XXX are your initials).
In the Description field, enter XXXCriteria Set.
Click Save.
In the Criteria Mappings sheet, select the parameter row with the BAQ parameters.
Click Create Report Criteria Prompts for Selected to automatically create new prompts.
Use the Criteria Prompts>Detail sheet to customize items such as the Label text will display on the report submission form.
Optionally, use the New > New Criteria Prompt menu option to create prompts manually.
To preview the report criteria you have defined for the BAQ definition, from the Actions menu, select the Preview Submission Form action.
It looks to me like I can add a filter - however the filter is not applied to the main baq dataset. i suppose i can see that since the Dynamic Criteria Reports can contain multiple BAQ’s and therefore multiple datasets.
So from what i have found, the filter list is in a reportparameter called UserCriteria which is a big XML paragraph that contains Tags for the Filter list.
No. When setup correctly (which is far from straightforward) the criteria is passed to the BAQ, and the datasets generated will be filtered before being passed to SSRS
you need to have a parameter in the BAQ that is used to filter the BAQ results (i.e. Table or Subquery Criteria)
Then in the Dynamic Report (RDD) the criteria set needs to be mapped such that the RDD’s criteria is passed to the BAQ.
It’s far from straightforward. I think if the BAQ has parameters, the Criteria tab in RDD has a button to automatically make criteria inputs for each BAQ parameter.
I no longer have access to an E10 system, so I can’t check the or post screen shots.
I’ve found that the BAQ needs to “complete” before making the RDD. What I mean by that, is changes to the BAQ (regarding parameters and criteria), after it has been added to the RDD, tend not to show up in the RDD
I would try making the RDD over, from scratch. Add the datasources (BAQ(s) ), create the relationships, then add a criteria set.
If my memory serves me, after adding the criteria set, there’s some way to have it automatically add the criteria fields, mapping them to the BAQ parameters.
EDIT
TBH - It seemed like sheer luck when I finally got one working.
If memory serves me right, if you create a BAQ report then change anything on the BAQ , you have to refresh the Datasource on the RDD. NOTE !!! Refreshing the Datasource on a regular SSRS report will ( or at least uses to ) trash the report. I have had sucess in the past on refreshing BAQ based reports.
Update - Now that i have been told officially by Epicor Support that we cannot filter using a Dynamic Criteria Report (we need a new name for this - like “Epicor Report” ) - Here is how to do it:
Add a Parameter to your BAQ and assign it as a “Item List”.
Add a Report Criterial Prompt - Select the prompt and press the “Create Report Criteria Prompts …” then change the Control Type to “Filter” and Change the Control name to the name of the filter we created in step 3.
On the main sheet, a text box that shows the key values of the rows on the filter page.
Is that textbox on the main sheet editable? Like you could actually type a list in like: 12345-1-1, 12350-1-1, 12350-1-2
It seems like the filter sheet isn’t really used by the RDD, but rather it just populates the Criteria Prompt - which is used in the SQL query’s IN(...) condition of the WHERE clause.
Mr. Calvin: Great question – I just tested the “Prompt Field” and adding info to that field (even just one job number) is ignored. I get the whole job list.
So it looks like the Prompt is used to pass the Filter list to the BAQ however it is bound to the Filter.