Recref Fldref and table relation

absolutelyfreewebabsolutelyfreeweb Member Posts: 104
Hi,

I'm creating and updating records through recordref and fieldref, and it seems like fldref.validate() does not error out on table relation errors. It just doesn't update that field. (I'm running the code inside a if CU.RUN statement.)

The documentation says it should:
The VALIDATE function first checks any TableRelation Property, and then executes the OnValidate (Fields) Trigger of the field.

If you omit NewValue, the function validates the current value. 

This function is similar to the VALIDATE Function (Record).

I'm running classic 2009 R2 build 32146.
Anybody seen this or can confirm/deny the above ?

Comments

  • rmv_RUrmv_RU Member Posts: 119
    First, check TestTableRelation and ValidateTableRelation properties on a field.
    Looking for part-time work.
    Nav, T-SQL.
  • absolutelyfreewebabsolutelyfreeweb Member Posts: 104
    Oh, My Bad, I was modifying sales line "unit of measure" instead of "unit of measure code"

    THANK YOU
Sign In or Register to comment.