Category: Configuration
Resource links
Updated

This solution is summarized from an archived support forum post. This information may have changed. If you notice an error, please let us know in Discord.

Is It Possible to Use 1 Query Object Bound to Different Controls with Different Results?

Issue

As a developer, I need to bind different text boxes to a single query, with only the filter parameter changing. However, I am struggling to do so without creating multiple query objects, which would be cumbersome with many text boxes. Currently, all the text boxes are displaying the same data, but I want them to dynamically display data based on the query assigned to them.

Resolution

To achieve this, onSuccess of the query, you can store the response based on the textbox name using the storeValue() method, and then cosume the value from the store. This way, you can avoid the use of multiple queries.