-
Imagine a form or wizard that has multiple steps. Each steps collects data, then moves to the next step. In the final step, all data collected in the previous steps should be available so it can be processed/uploaded/... Is this possible? How could it be done? For example
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, sorry looks I missed your question. There is no some built-in helper for such task, so the most strait-forward way seems to be using State subclasses for each step. |
Beta Was this translation helpful? Give feedback.
Hi, sorry looks I missed your question.
There is no some built-in helper for such task, so the most strait-forward way seems to be using State subclasses for each step.
In State subclasses (steps) your can declare properties to hold all the necessary data. And fill it when the step is complete.
At the last step you can get all that properties from states (by direct references or using
findState
api).Alternatively you can store all per-step data in some separate data structure (outside of StateMachine).