Hi All ,
Can anyone tell me why it is preffered to put last field from the field designer of current dataport on the OnBeforeImportRecord Trigger as blank andthen run the dataport .
Could you re-phrase your question? Where did you get the information?
Any particular dataport that you are referring to? or could you paste your code in the window?
Are you part of an NSC, or are you an end user?
If you want to know, why fields are cleared in OnBeforeImport trigger, it is because if the field is in file empty, old value is kept and this is wrong. Because it will "copy" values from previous imported record etc.
Comments
Could you re-phrase your question? Where did you get the information?
Any particular dataport that you are referring to? or could you paste your code in the window?
Are you part of an NSC, or are you an end user?
Regards,
gus
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Plus... I would use a rec.init instead of clearing the fields one by one.
If it was hard to write, it should be hard to understand."
IF field='' THAN
field := DefaultValue
If it was hard to write, it should be hard to understand."