I have a script in which I am first asking a yes/no question in a dialogue box, if the use marks "yes", then a section of code will run that pulls data from a database which is then used to build an application. In that app the user interacts with the data (table and plots) to produce a pdf form, finalize those materials, close the application, and then move on to the next station at which time you get the same yes/no question but for a different location. The problem is that if I select yes, the code runs and creates the application (all great), but then continues on to the next dialogue box. Once that dialogue box pops up I cannot interact with my application. How can I code this so that the next dialogue doesn't come up until I am finished with my application?
Event=dialog("Are there samples at Site A?",
Vlist(Lineup(1,eventtype=radio buttons("Yes","No"),)));
If(Event["eventtype"] == 1,(
//if the user selects yes then within here the code for this site runs to produce an application with graphs and tables (see example below). User must select points in the graph, generate pdf form, and then close the application before moving on.
);
);
In this screenshot you can see a button that says "finish up." I don't want my next dialogue box to pop up until after this has been clicked.
Running JMP 16.2.0