Application Studio passing Parameters to BAQ

I would also like to say that you’re lucky you’re on v2023.1. This was not trivial in the previous versions, lol.

Fresh Meat GIFs | Tenor

Thanks for the reply,
I have the Dataview:
image

and have two Panels;
image

Event:

If I have an EpBinding set for the Textbox, it is un-editable at runtime.

image

ItemView should be the return data, not your parameter data.
You cannot edit it because that view is not initialized by anything.

Out of curiosity, what are you trying to do?

It looks like you’re trying to create a search by part number. Is there something special about the data being returned in the BAQ?
If not, every textbox widget has a property called “Enable Search” that will add a magnifying glass to the textbox that a user can click on to initiate a standard search. I have a post out there somewhere on how to wire it up if you need or want.

You can also wire it up for your own events :slight_smile:

It is Basically a Search, however user already knows the Part Number, Just needs the record.
So currently the issue is just getting the value from the Text Box, into the BAQ parameter.

Right now when running I can enter Part:
image

BAQ Parameter Window pops up:
image

Enter Part Again: (Press OK)
image

BAQ Runs and Items Display:
image

You are correct in that the ItemView is uninitialized until BAQ runs.
I end up with the same basic issue, where is the Textbox value stored and how to pass (reference) that in the BAQ parameter field and run without the popup…

The fact that the erp-baq has a BAQ Parameter section suggests that, I just do not know the syntax to reference the initial textbox value.

Why not bind the search field to TransView.PartNum? Does it ever need to be saved to the database? If not, TransView will serve for your needs.

how to pass (reference) that in the BAQ parameter field and run without the popup…

To this point, you wired it correctly, but I would change the binding to something else. If that field has a value, it will pass silently, otherwise it should still slide out.

I must be missing TransView initialization?
If I set EpBinding for the Textbox :

image

with the Event BAQ Parameters set;

image

and try to Preview, I can not enter any values in the textbox…
image

it’s just grey…

Should I be doing something with the Panel EpBinding?

The parameter value should have curly braces: {TransView.PartNum}.

What screen is this in? Is this native (I assumed it was)? If not, you will need to create the initialize event.
Create an event that fires after Form_onLoad and use a row-update to set TransView.PartNum to "".

Hannah, Thanks so much for your support, I did try with and without {} , still no luck.
I will clear the current App and start Fresh as it’s getting a little messy.
Will advise if I get it working.

Check the payload of the ExecuteBAQ call in Dev Tools on the network tab to see if your value is actually being passed.

That being said–I thought your field was currently read only? Or did you get it initialized?

I can’t see BAQ Parametrs in erp-baq widget.
Is it because of version 2022.2.14? If this is a case - is it possible to pass parameter somehow to avoid slider?

You can, but it’s painful.
You have to use REST and call DynamicQuerySvc.
I have a reply on another post with how to do it.

@phoenix What are you doing with the return of the BAQ?

Might be easier to just call a function and do your work there.
Pass the data back.

Couldn’t find your post… was searching for DynamicQuerySvc keyword
Starting from which version a “BAQ Parameter” option is available?

Already have few BAQ’s and not going to convert to function (I know I can call BAQ from within function - but hoping that I can do it from AS)

Couldn’t find my post either, lol. Found it:" Kinetic Dashboard with Parameters - Kinetic 202X - Epicor User Help Forum (epiusers.help)

Any who–this should help if you’re already familiar with configuring the REST widget:
Erp-baq send parameter to baq - Experts’ Corner - Epicor User Help Forum (epiusers.help)

Novice application studio user here. I’m trying to follow this and add a similar panel card/event to call a BAQ. I cannot seem to call the BAQ silently or to pass BAQ to the panel card, instead a popup keeps coming up when I click on a quote. Trying to get the BAQ to populate when I expand the panel card. The BAQ has a calculated fields, not sure if that matters. The panel card doesn’t have any components, do I need to start there. Or do I have the wrong set up for EpBinding? Here’s what I have, any help would be appreciated.


From looking through this, is there a way to use expression parameters with an erp-baq widget in the same way you do with the BAQ where list in the provider model?

Since the panel card expand feature seems to be bugged for Panel Card Grids, I want to load a grid from a dataview BAQ executing via button click. Although, using parameters such as a date range expression doesn’t seem to be as easy as it is through the BAQ where list.