Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Regarding Boolean type check box

Posted on by 20

Hello Experts

I have made a boolean type field in user setup table.Now my task id if it is checked then that particular user is able to make sales order otherwise is shows an error.

*This post is locked for comments

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: Regarding Boolean type check box

    Why customise it, you can look into the permissions set of that user, until you have given them super role.

  • manish.yadav Profile Picture
    manish.yadav 1,835 on at
    RE: Regarding Boolean type check box

    Write a code like in Sales Header table:

    No. - OnValidate()

    usersetup.SETRANGE("User ID", USERID);
    IF usersetup.FINDFIRST THEN BEGIN
        IF usersetup."task id"<>TRUE THEN BEGIN
        usersetup.TESTFIELD("task id",TRUE);
        ERROR('You do not have permission to make an Sales Order')
        END;
    END;

    Hope it will resolve your query.

    If my answer helps to resolve your issue, please verify it by clicking Yes 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans