Uniface User Forum

 View Only

trigger decrypt (UF9) vs. trigger formatFromDbms(UF10)

  • 1.  trigger decrypt (UF9) vs. trigger formatFromDbms(UF10)

    Posted 10-25-2024 04:45

    Hi Freaks

    When I was "playing around" with our application, I found a strange error. Or it is feature?

    In our old environment (UnifAce 9) we tried to use the "decrypt trigger"*) in some fields. 
    After we have done this, we comment out the content of this trigger, as it was of no use to us.
    All looks okay and the date-field was formted in the expected way 

    Now I run this component in UF10 and what happend: The field is not formated, the end user sees the raw data.
    I checked and found nothing special. 
    Then I saw the trigger "formatFromDbms" with a simple comment as content. Just out of curiosity I removed the whole trigger and voila, the field was formatted.

    Oops, whats going wrong here?
    Fires an empty**) trigger not longer the default behavior?

    From the documentation:
    "If formatFromDbms trigger contains ProcScript, it is activated for each field of an occurrence:"

    Does anyone else have a similar problem or is this really a new, undocumented feature?

    Ingo

      *) We are talking about the decryption trigger, not the format/deformat trigger, which makes the "feature" even stranger
    **) it makes no difference whether the trigger is filled wit comment or totaly empty



    ------------------------------
    Ingo Stiller
    Aareon Deutschland GmbH
    ------------------------------