Skip to main content

Validation with Universal Functions switch my form mode to UPDATE...

Comments

2 comments

  • Geoff Booth
    • The validation is simply a "trigger" to start the UF so doesn't change anything.
    • You have two "Set" statements which populates the value in the fields on the form and changes the form mode to Update.
    • Then you need to click the Update button to actually save the new value to the database.
  • Marie Carrier

    That is weird because I have the same for another Validation/UF and I do not get the UPDATE mode.

    And if I set it directly to :

     Set($[$154.0.0]|SQL(SELECT SUBSTRING([U_CardNumber],5,4) FROM  [dbo].[@BOY_E0_CREDITCAEX] WHERE [U_CardCode] = $[$5.0.0]);

    there is nothgin that appears in my cell...
    I wanted to remplace my old "magnifying glass" used with a Formated Search.

    The Error Message is : 
    Macro error in UF-041: System.Exception: Error setting value SQL(SELECT SUBSTRING([U_CardNumber],5,4) FROM  [dbo].[@BOY_E0_CREDITCAEX] WHERE [U_CardCode] = C2365USD on item 154: Form - Bad Value
     [Macro Command: Set($[$154.0.0]|SQL(SELECT SUBSTRING([U_CardNumber],5,4) FROM  [...

Please sign in to leave a comment.