"Where" without BAQ parameters in odata?

From my testing it seems like you can’t add any filters to an odata query without first defining parameters for those fields in the BAQ (please tell me I’m wrong?).

I have an extremely complex BAQ that is currently being used for a dashboard, so I don’t want to add parameters that will then pop up when people are using the dashboard (because the dashboard already has filters). But I need some way to filter the odata query. I guess I can just make a copy of the BAQ with parameters but then if we ever change one BAQ we will have to remember to change the other, ugh.

There are many threads on this board talking about a feature to map dashboard filters to BAQ parameters but I can’t find any that actually explain how to do it? From poking around in the dashboard and BAQ designers its not obvious to me. Any suggestions or links?

I believe that it’s this part in the dashboard. Right click on the query and go to properties. I haven’t done it myself yet, so I’m not sure how it works.

1 Like

As far as I can tell, that only lets you bind a parameter to a constant, not a tracker field. But I would love to be wrong about that.

image

Looking for an example but I believe that you can use a Published field as a passed parameter.

Dean

That wouldn’t work either though - I need to pass my date fields on the tracker view as the baq parameters.

can you publish the Date fields ?

Sorry for the 5 year old looking graphics Part number is published, pPN is BAQ Param for second Query

Maybe I am just not understanding the idea but . . .
I have a tracker view which contains two controls to specify the date range.
If I publish the date field in the dashboard, and even if I try to tie that back to the parameter, how does that help me? It sounds circular? I need to bind the parameters to my tracker fields not the query results.

Ahh, I see. In my example, the tracker is tied to the top grid ( Prompted input to fill the top grid. )

The Part Number( actually from the first Query) is what is published to fill the bottom grid.

Dean

Thinking outside the box here, but if you set one of those to something that will never fail, does it stop the popup? Basically just set it to non-sense so that the parameter doesn’t fire and you can use the tracker as normal.

It doesn’t let you type in there, can only pick constants or published fields. I’m pretty sure if I pick either that will limit my BAQ results and I won’t get the expected data although I haven’t tested it.

I’m out of ideas. Sorry :person_shrugging:

You are wrong.

You don’t need to add any parameters and mess up your dashboard.

I have a BAQ on UD07 I just tested with no parameters.

https://url?$filter=UD07_Key2 eq ‘5063108’

if you are testing in the Epicor REST Swagger UI, put this in the $filter field:
(don’t type “$filter=”)

UD07_Key2 eq ‘5063108’

It got my filtered data just fine.

1 Like

That’s awesome! Thank you!