Quantcast
Channel: Microsoft Dynamics AX
Viewing all articles
Browse latest Browse all 125409

Forum Post: RE: Should the developer call validateWrite/validateDelete?

$
0
0

Hi,

yes there are a lot of places where there isn't a call to validateWrite (e.g. MarkupTrans, JournalCheckPost, but I haven't checked if there is a need in that special case).

In general it sounds necessary to validate the records before inserting them, but I don't like the idea auf always having the "if validate then insert" lines in the code. I think this should be done by the insert method itself. Nevertheless it's not a decission of mine so I have to deal with it.

So that means that we now should always use validateWrite and maybe validateDelete if necessary...!

(By the way: And what's with modifiedField? Plenty of changes to other fields are done in modifiedField but in the code it never gets called (only in UI)).

Kind regards

Andi


Viewing all articles
Browse latest Browse all 125409

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>