Ok so i have this table, i can click on an item, it will select that item, then i can click on edit and a pop up will happen that contains the data from the selected row and column of the table from the previous window. So now at this point i can alter the data and write it back to the database.
But when the popup window closes the data in the table does not automatically refresh.
So my one question is as follows: When the lines of code are executed from a button click event, and during execution it comes to a popup windows, does it execute the popup window and then when the popup window closes resumes execution from where it was?
Or what is the best way to have the table refresh the data one a change has been made?
To answer your question, no, execution does not continue when the popup window is closed. An event script that opens a popup window continues to execute right away after the line that opens the popup window.
The exception to this is a modal popup that is shown with such functions as system.gui.inputBox. So what kind of popup window do you mean? An Ignition window that is used as a popup window, or a modal window that is shown because of a function call to system.gui.inputBox?
The best way to update/refreash a table (or any property) programmatically is to use the system.db.refresh function. You could add a script to the “visionWindowClosed” event of the popup window that gets the window that has the table you want to refresh and refreshes the data property of that table with system.db.refresh.
I have tried, unsuccessfully so far, to persuade employer to upgrade to ignition, have downloaded demo and imported my project into it and tested it, so i know that it will work but convincing them of parting with the money is not an easy task. So for now will keep with legacy.
As for the code there must be something that is not quite right yet because since i changed the word system to fpmi now i get the error message: