I have a wizard that preps information where project managers describe new projects. Not all projects will have all potential components has parts of the new project.
The issue that I am running into is that it seems that the commands are not running sequentially.
The main list of actions is called from a manual button push that defaults all the context variables. There is a text field that is used as a log to show progress so that end users can follow along. Due to how objects are represented there is a need to use context variables as counters and since those cannot be updated inside ForAll loops I am having to put that code in buttons.
To the issue:
I have Documentation code being executed before Machine code. Meaning the code that builds the list of documentation we have to provide is run before the code that handles the machines that the documentation is about.
When I am looking at the log I see the header for the documentation being logged, then the header for the machine section, then some machines being logged and then the documentation.
Each non-header log entry is accompanied by a patch back to a table. The new records are added successfully but they are not in order of the code as it should be executed.
Is there a known issue with the main thread being executed first before Select calls are made to buttons and that code run? I would assume that this should be handled with a FIFO stack.