Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Tick Box

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a function on the User Setup Page called "Vendor Approve" and a tick box on the Vendor Card Called "Approved". I need to make it so If the Vendor Approve button is ticked on the user setup the box on the Vendor card will also be ticked. 

I know I need to write it on the On Action() function, just how would i write the syntax, thanks! 

*This post is locked for comments

  • Verified answer
    Rabin Profile Picture
    Rabin 2,976 on at
    RE: Tick Box

    Hi Lewishhh,

    You will have to specify that which vendor record you want to select for modification(Boolean True).

    What is the link between User Setup Page and Vendor Card. Since User setup table contains the List of Users while Vendor table contains Vendor list. How you want to link them...

    //*********

    From my Guessing, i think certain vendor will be assigned to the User so if more than one vendor is assigned to the user you have to run your code in a loop... But if you assign a single vendor to an User then the code will be like this...

    //Using your code...Coding in UserSetup Page on Action of Boolean "Vendor Approve"

    IF "Vendor Approve" = TRUE THEN

    BEGIN

    //Create a VendorRec -> Vendor

    //Create a Field(AssignedVendor)  in User Setup where you will assign Vendor

    VendorRec.setrange("No.",AssignedVendor);

    IF VendorRec.FINDFIRST THEN BEGIN

      VendorRec.Approved := TRUE;

      VendorRec.modify;

    END;

    END;

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Tick Box

    The variable for the User setup page is "recUserSetup" the variable for the vendor approve tick box is "Vendor Approve" and the variable for the box on the vendor card is "Approved" so as an example

    IF recUserSetup."Vendor Approve" = TRUE THEN

     Approved := TRUE;

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans