Ask before changing boolean value

Smashed_PumpkinSmashed_Pumpkin Member Posts: 47
edited 2005-09-05 in Navision Attain
Hi all,

We have a boolean field on the BOM header table called 'BOM incomplete'. What I would like to happen is if a user clicks to change the field, the system prompts them with an 'are you sure' question. If the user says 'yes', the field is changed. If 'no', the field stays as it is.

Is this possible?

Comments

  • Michael_SchumacherMichael_Schumacher Member Posts: 81
    Is this possible?

    I think so, I would try it like this in the on_Validate_Trigger of this field:
    if "BOM incomplete" <> xrec."BOM incomplete" then
      if not confirm(Confirmtext,false) then
        "BOM incomplete":=xrec."BOM incomplete";
    

    where confirmtext is the multilanguage text constant "Are you sure?".
    regards,
    Michael Schumacher

    oh, what day is it? Backup day. OK, let's dump all data to /dev/nul ;-)
  • Smashed_PumpkinSmashed_Pumpkin Member Posts: 47
    That works great! Thanks, Schumi :D
Sign In or Register to comment.