Can't set query params on click

Hi @Roei_Natan and welcome to the forum!

So, if I'm understanding this correctly you have an API query with a couple of parameters. This query needs to run when you click on a table row and you want to send the values in your positionId and trader columns to the parameters to run the query again and get the results, right?

If that's the case, I think there are two ways of approaching this:

  • The simple, but not so proper way, is to refer to the selectedRow in your table directly from your API parameters, e.g. table1.selectedRow.positionId. If you set your query's behavior to run on "Automatic" then every time the variable above changes it will run.
  • The best way of appraoching this is using additionalScope which will then allow you to re-use your api query from other parts of the application. You will basically add to variable to your parameters, e.g. {{ positionId }} and {{ trader }} and you will create an event handler on click to trigger the query and pass the additionalScopes (in this case, passing selectedRow.positionId, etc. Here's a link to a helpful post on how to use additional scope.

If you need further help, do share some screenshots of your setup.

Cheers and good luck!

1 Like