NAV only support Error(Only a OK Button), Message (Only a OK Button), Confirm (Only a YES and NO Button) and a Dialog with cancel.
So if you really need OK and Cancel, u must create a separete form or u use the confirm statement (but not in a transaction!, then you block other users)
Ok, thanks for reply. Well, exactly, what I'd like to do is that, when you write in a field this ask if you really want change it or not, that was the reason because I asked for a Ok or cancel option. You know is there is any other way to do this?,
Thanks again.
I don't like that at all. If that field is validated as part of some process, your transaction will block everyone while the system is waiting for the user to click one of the buttons.
Me too...It is only way to locked database. As minimum add condition that CurrFieldNo must be same as th field No., to make this confirm only if the field is directly edited by the user.
Comments
So if you really need OK and Cancel, u must create a separete form or u use the confirm statement (but not in a transaction!, then you block other users)
Regards
Thanks again.
Field XXX OnValidate
IF not confirm('xxxxxxxx') then
error('Modification canceled');
Bye
Thanks again.
RIS Plus, LLC
MVP - Business Apps
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.