Skip to content

Geting and setting instance contents programmatically #268

Answered by JoernT
michmech asked this question in Q&A
Discussion options

You must be logged in to vote

first of all - yes, it's ok to use getInstanceData() to get the data. Within Fore you can also use the instance() function to get the data from a certain instance - the function may take an idref if you don't want the default instance.

Not sure, which version you're using but there is also a setInstanceData() function in fx-instance.

As always there's not just one way to do it - for instance there's also a submission which just echoes some data you submit via submission which will NOT actually send the data over the wire. This can be used to send data from one instance to another. One use case would be to apply filtering out nonrelevant data (which submission will do by default if you hav…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JoernT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #265 on June 18, 2024 08:07.