For each event you use, create the named screen Client Action below. Add its listed input parameters with the exact types. Select that action on MainComponent's event property, then enter each mapping explicitly. Event arguments and screen locals are different scopes.
OnError → HandleError
Reports invalid input or a failed runtime operation
Flow: Start → display the mapped error argument in your feedback region → End.
OnExpandedChanged → HandleExpandedChanged
| Reports the current expanded node keys.
Flow: Start → validate the requested value; assign the corresponding screen state so the Block receives it back → End.
For a JSON argument, use JSON Deserialize with the matching Structure or List shown in this component’s API. Do not deserialize unrelated payloads into the same structure. Keep the raw JSON only when the documented storage contract requires it.
OnSelectionChanged → HandleSelectionChanged
Reports a user-selected node.
Flow: Start → validate the requested value; assign the corresponding screen state so the Block receives it back → End.