I have a requirement to populate a list when a window opens and highlight a number of the list entries. I have tried to do this by binding the list to a SQL query, then running the code to highlight the list entries in a function which is run using system.util.invokeLater to ensure the list is populated before I try to highlight anything. This works on our internal network, but fails when run on the customer’s network. Testing shows that the list has not been populated by the time the code in the function runs. The only way I can get it to work with invokeLater is to add a delay of a couple of seconds.
It would appear that invokeLater is not working as advertised. The manual says invokeLater “calls the given Python function object after all of the currently processing and pending events are done being processed, or after a specified delay”. Are bound SQL queries not included in this?
Our office server is running Ubuntu 10.04 64-bit. The customer’s server is running Windows 2008 server. Both machines are running Ignition 7.2.7.