Hello together,
I try to check a input into a table via a card...
e.g. I have a field on a card... when I change the value of the field
fom "8" to "4" I want to start a function that validate the input.
the function should compare the new value "4" with a value from a special
table. If the new value "4" is not valid than the function should show an error message.
The problem is, that I always get the old value "8" and not the new "4" for the comparison. I thought Navision saves a value after I pressed enter, but
in the table is still the old value "8"
I hope somebody understand my problem ... it was a long hard day today
redStripe
Comments
RIS Plus, LLC
MVP - Business Apps
are "8" and "4" values of the primary key of your special table?
if Yes:
define a table ralation between your input field and your special table.
hth
Josef Metz
Josef Metz
For me it seems that you want to add code into OnValidate trigger of the field or edit box (text box) and call function which compare the function. But you did not wrote in which trigger you entered the code. Pls, can you post your code which is not working? There must be some trivial mistake, because this is base functionality of Navision (validating values).
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.