03-26-2024 2:53 PM - edited 03-26-2024 3:17 PM
Hello experts,
I'm trying to understand what the standard reset button does in SAC (OEM) stories, and how it interacts with scripting. I mean this button :
Scenario: So basically I understood that onInitialization and onActive events were triggered after the user presses the reset button. That's OK. I want also to use some event based scripts (onInitialization or onActive)
Problem 1: When the button is pressed, the story throws scripting errors if event-based scripts try to change anything (at least that's what it looks like). For example: I cannot execute
Widget1.setVisible(true);
in the onActive or onInitialization events of my story page if the user presses the Reset button, as this will throw a script execution error.
...and the story doesn't reload.
The debugging console shows this kind of errors:
continuing with:
Problem 2: Another strange behavior is that Script variables values are not reset to default or null values, if you check their values in the onActive event of a Page after the user presses the reset button. They keep their values from before the reset button was pressed.
Problem 3: The reset button is, so to say, at story level. So I would expect the story to reinitialize when it is pressed. But the original state of of the widget doesn't seem to change. I saw that at least a radio button group, and the visibility of widgets are not reset to the story's initial state. And also the page activated after the reset button is pushed is the last page shown before the reset button is pushed, not the first page in the story.
Questions:
Best regards,
Stéphane
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.