Sometimes I come across screens that have a rather sizable amount of code in the Initialize event of an iFix picture.
In one case, the the author was setting a digital register.
In another, the author was creating objects, setting them to a database tag, and reading the value, and manipulating pull down boxes or text displays based on the read value (this also involved TagGroups)
In the former case, the script would sometimes fail to update the database DR tag.
In the latter, sometimes the picture cannot evaluate the tag and fails to load properly.
Generally I've found that the Initialize event can't be relied upon to do intensive tasks. My hypothesis is that the Initalize event is happening too quick for things to register with the iFix database, but I could be wrong...
Has anyone else come across issues like these?
In one case, the the author was setting a digital register.
In another, the author was creating objects, setting them to a database tag, and reading the value, and manipulating pull down boxes or text displays based on the read value (this also involved TagGroups)
In the former case, the script would sometimes fail to update the database DR tag.
In the latter, sometimes the picture cannot evaluate the tag and fails to load properly.
Generally I've found that the Initialize event can't be relied upon to do intensive tasks. My hypothesis is that the Initalize event is happening too quick for things to register with the iFix database, but I could be wrong...
Has anyone else come across issues like these?