#Params in database query

1 messages · Page 1 of 1 (latest)

ancient garnet
#

Hi,
Is there a way to send params from JS script to a database query other than through the storage ?

olive summitBOT
#

Hi There!
Thanks for reaching out to us. One of our engineers will be with you shortly.

If you are stuck with an issue/error, please help us with following information.

  1. Which version of Appsmith are you on?
  2. Provide screenshots/screen recordings of the original error/code snippet.
  3. Add details about your use case and provide steps to reproduce the issue, if
    possible.
ancient garnet
olive summitBOT
ancient garnet
#

Hi, I fork this sample app but I don't find any params for {{Query1.run(); Query2.run()}}

olive summitBOT
#

The Fetch Data button runs the query with the 'limit' parameter:

ancient garnet
olive summitBOT
ancient garnet
#

It's working with a button.
But I wish to send a params to the data table without a button.

Something like this {{get_users_from_company.run({ workflow: '4' }).data}}

How can I write it?