Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CustomVariable config with SceneDataTransformer result #875

Open
LarsStegman opened this issue Aug 21, 2024 · 0 comments
Open

Update CustomVariable config with SceneDataTransformer result #875

LarsStegman opened this issue Aug 21, 2024 · 0 comments

Comments

@LarsStegman
Copy link

Hello,

I want to use the result of a SceneDataTransformer and set it as the possible values of a CustomVariable. How should I approach this? Right now I have:

  1. Variable q with query ""
  2. SceneQueryRunner x with the raw data query.
  3. SceneDataTransformer y with its $data property set to x
  4. activationHandler on y that subscribes to y state. In the subscription handler I then call q.setState({query: yResult}). This unfortunately does not work. As the scene does not make use of the result. The subscription handler is called and I can print the result in the console.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant