The post refers to additional scope in the event handler, but that is no longer avialable (screenshot provided)
- also guys please mention which version of Retool, saying 'a later version' isnt really helpful.
Thanks
The post refers to additional scope in the event handler, but that is no longer avialable (screenshot provided)
Thanks
Hey @peter.b, i just double checked and it is working for me. Did you add it to the UI for "Additional scope" in the query?
We dont use the additional scope directly in the resource query. we prefer to create a JS query and use :
getResourceQuery.trigger({ additionalScope: { sectionId: 1 } })
to pass the additionalScope into the query. Mainly because often we. cascade these queries using onSuccess
Pete
Hey @peter.b,
Yeah, definitely a preferred approach.
I thought you were asking about the additional scope options being visible in the event handler. But if that's not the case, could you rephrase what is it you're looking for?
That's extremely valid feedback! I've updated the topic in question to specify the exact version.
I've also updated the topic to hopefully make it more clear that the option to specify "Additional Scope" when triggering a query via an event handler is only present when the query itself is configured with "Additional scope" variables.
Let me know if you have any additional comments or questions!