How to Set Fileld mandatory when entring the data in forms??

kishi_gkishi_g Member Posts: 162
Hi,
I had one doubt in Navision. In Item Card i want the description and item category codes are mandatory. In Item card form if i create new item with Default No.Series when i press next record or previous record without entering the data(description,Item category code) i want to show error. if i put the code in OnQueryClose Form...like TESTFIELD(DESCRIPTION)

iam in that particular record only i am getting error.

how to set specific fields Mandatory....



Thanks & Regards,
kishore.

Comments

  • Revolution1210Revolution1210 Member Posts: 161
    In general terms, it would be something which I would advise against.

    NAV does it's validation and checking during posting routines etc., leaving an uninterrupted flow for data entry.

    You should find that good quality end user training will negate the need for mandatory field checks.

    Sorry if it sound negative, but I have seen some truly horrendous implementations of so called mandatory fields. Find another way if you can :D
    Ian

    www.NextEqualZero.com
    A technical eye on Dynamics NAV
  • krikikriki Member, Moderator Posts: 9,110
    A way could be to make the item blocked when created and when trying to unblock, do some mandatory-field testing.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • bappaditya44bappaditya44 Member Posts: 14
    Why you are not using NotBlank property for those fields at table level.
  • kishi_gkishi_g Member Posts: 162
    if i dont touch the filed the Not Blank Property will not work...
  • SavatageSavatage Member Posts: 7,142
    as Kriki said - on insert
    Blocked = true

    on validate of the blocked field you test to see if both fields are filled else you cannot unblock it.

    might want to also test if the uom's are blank too
Sign In or Register to comment.