$occmod reset

Author: juerg.fross@teamspirit.ch (jfro)

Hello all I would like to reset $occmod in an Uniface form. 1) The user updates some values in a multiple occurence 2) I check if he is allowed concerning the data already in the database. Depending the result of my checks I restore the old value. 3) As $occmod is still set I'd like to reset it - but it doesn't work (no error - but no changing of $occmod) Any recommondations? Thanks all! Jürg

5 Comments

  1. Have you tried to discard the occurence and use retrieve/x (after a creocc and entering the PK values) to reset your occurence? Greetings from super-hot Frankfurt/Germany


    Author: ulrich-merkel (ulrichmerkel@web.de)
  2. Hello Uli Seems Uniface doesn't like when I do this in validate-trigger of the Entity. This provokes Uniface to die... Thanks! Jürg


    Author: jfro (juerg.fross@teamspirit.ch)
  3. Hi Jörg, the brand new "don't violate the fragile active path" desaster, isn't it? perhaps you can use the macro command to start the userkey trigger and try retrieve/x from there (after the "normal" triggers have been processed)


    Author: ulrich-merkel (ulrichmerkel@web.de)
  4. Hello Uli and all... Seems it works with reload/nolock. At least fist tests have been successful... Thanks a lot! Jürg


    Author: jfro (juerg.fross@teamspirit.ch)
  5. Just curious - rather than coding all of this AFTER the event - why not just prevent the user from changing anything in the 1st place (if the user hasn't got the right access code)...


    Author: Knut (knut.dybendahl@gmail.com)