Hello every body:
Someone can help me please with this problem:
I have a dataport which I use for import data to navision but Lately this objet has given me problems when I run it, because it does not allows me to import data. I have revised the properties' dataport and only I can see one property which I think is the problem. In the field dataport called "Shortcut Dimension 2 Code" there is a property called "CallFieldValidate" when the setup is "YES" the dataport does not allows me import data, when the setup is "NO" the dataport import data, but in the batch does not accept the field "Shortcut Dimension 2 Code" because the format is not validate, however whe the setup is "<NO>" the batch accept all data, I do not have tested the setup "<YES>"
Someone can to Explain me please what is the difference betwen those two kinds of setups (with <> and without <>) in this property and why sometimes I can import data and some times does not.
Thanks very much.
0
Answers
and why you have problems: because if you enable this property, the OnValidate trigger is called when the value is entered, but because there is some code behind this trigger, the code can lead to problems. May be because when entering Dimensions, the record must already exist in the db, for NAV to be able to create correct entry into related Dimension table. Sometime it is better to import the values into some global variables and assign them into the record through code. You need to be sure that all related tables are populated with correct values. In many cases you need to first fill the PK fields, insert the record, validate rest of the fields and modify the record to have all correct...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
You cannot enter in the <No> as it validates the string... simply delete the contents of the field and navigate away
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
RIS Plus, LLC
Thanks very much again and I send to you a big greeting from Mexico.
=D> =D> =D>
Glad to help - don't forget to add [Solved] to to subject line ( in the first post )
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html