Skip to content

Correct query.. or parse return.. please help. #14451

Answered by mikesealey
zimart asked this question in Help
Discussion options

You must be logged in to vote

Hey @zimart

Is the puzzle that you're getting a string back from your query it should be a number?

If so, in the Data tab when configuring your query, click "Schema" in query results, and you'll have some options to change the data type. (This image is taken from an old project where I followed along to a tutorial, so query names and exact structures might not match your specific use case)

If you want to take that value returned and use it in a form field, you could set it in state:

In this example, it's set with a button click. Add an action to the button click to run the query

Then add another on-click action to Update State

In the bindings drawer, you'll now see that you have access…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mikesealey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants