$instancemod vs. $formmod
Author: gianni.sandigliano@unifacesolutions.com (gianni)
I am reporting here a question I got few days ago... A VAR is in the process to migrate an old Uniface customer to a new version of the same warehouse management application. This customer is used to an OLD Standard & Guidelines where the user was warned when exiting a form having changed something; this behaviour was managed in the <QUIT> trigger checking $formmod or $formdbmod functions. The new application version is Windows based and have a NEW Standard & Guidelines in place due to a wide use of non-modal forms. This new Standard & Guidelines version the application moved away from warning the user when exiting having changed something because the VAR claims it was NOT able to implement a similar functionality really working with Uniface9 in a non-modal environment. Basic reasons reported are: 1) the different way $formmod and $instancemod are implemented: - $formmod (and $formdbmod) are Uniface environment variables in its own - $instancemod (and $instancedbmod) are an OR calculation on $occmod and $occdbmod 2) while $formmod could be managed at program level with reset instruction after inizialing fields with code this opportunity is not available with $instancemod. When I received the question/issue I do not have an immediate answer in my pocket of experiences. Next week I will try to identify a solution but in mean time: does someone have suggestions? Thanks to all in advance. Gianni




