How To: BAQ Parametrised Dashboards

Parametrized BAQ Dashboard

BAQ Config

BAQ

Parameter setup

Create Function

Input / Output Variables:

User interface - with search inputs

Dataview setup

Event to call Function

Method parameters

  • JobNum (EpBinding: Search.JobNum)
  • BAQ ID (Your BAQ ID)
  • PartNum (EpBinding: Search.PartNum)
  • PartDesc (EpBinding: Search.PartDesc)
  • CustID (EpBinding: Search.CustID)
  • PONum (EpBinding: Search.PONum)

Response Parameters:

Now your grid is ready to be bound with the appropriate columns produced with the dataset

8 Likes

This is a great solution for the parameter issue; it gets around the problem of the hard paging that just calling the REST service presents.

Thanks for sharing!

4 Likes

Thanks @hmwillett , really appreciated the feedback :slight_smile:

You beat me to it.

angry monty python GIF

Nice.

2 Likes

@klincecum @hmwillett
This Is The Way GIF by Shibetoshi Nakamoto

3 Likes

Is there some formatting issue with this post?
I can’t click on any images to get them big enough to actually read.
(I’m old and have bad eyes)

1 Like

Apologies @estm8ben , its my awful formatting in the dev software we use and hold our documentation. :slight_smile:

Here is a more user friendly PDF:
parametrizedbaq dashboard.pdf (1.6 MB)

Hope this helps.

3 Likes

Thank you so much for this topic! I used these instructions with success but had to bind my grid to a dataview called ‘actionResult’ which I am not able to see in App Studio and now I’m not sure how to edit the columns in the grid. I tried creating columns and then binding them to the ‘actionResult’ dataview but that did not work. Do you have any advice?

1 Like

You can’t edit this. It’s a runtime dataview used to hold results returned from things like functions and REST calls.
You would be better off using a dataview-copy event widget to copy actionResults to a dataview you created which would then allow you to add new columns.

1 Like

Thank you so much for your help! I created an event to copy the dataview and then bound it to my grid and got results

But when I try to define my columns under Grid Model, I don’t get data anymore:

Any idea why? I’m really only trying to rename my columns

image003.png

image004.png

image198944.png

image101518.png

image239219.png

image177858.png

Hi @jrich2624 ,

Would it be possible to screenshot the setup on the grid in the provider model and also the data grid column example ?

Glad to know the guide got you 90% of the was there. :slight_smile:

Sure, I’m only referencing the same grid in both

image198944.png

image101518.png

image239219.png

image177858.png

Would you send a screenshot of the Grid Model > Columns as well?

1 Like

Interesting approach.

How I have worked this out was to take a user defined table - UD11 for example
Create an updatable BAQ that allows you to add records.
When I create a new record, Key1 is assigned the current UserID
The BAQ allows any one of the fields to be updated.
Date1 and Date2 for example.

I then create a BAQ for orders where I have UD11 as a CTE filtered to current userID
The next subquery is OrderHed filtered by the results of UD11 Date1 and Date2 compared to OrderDate.

On the dashboard I pull in both queries and place the UD11 at the top of the screen allowing you to enter in your date range.

This worked for me since I am not a programmer using functions :slight_smile:

Sure, here is the first column:

And here is the second:

image198944.png

image101518.png

image239219.png

image177858.png

Remove the Ep Bindings and change the Field to be Calculated_MINumRev and Calculated_PartNum.

1 Like

Also, here is my view:

image198944.png

image101518.png

image239219.png

image177858.png

It worked! :blush: Thank you so much!

image198944.png

image101518.png

image239219.png

image177858.png

2 Likes