Display message to user

alien251alien251 Member Posts: 80
Hello,

I just need to display a message to the user based on the outcome of a role check, how can I do this?

Thanks,

Dan

Answers

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    IF USERID = 'SOMEUSERID' THEN
      MESSAGE('Is only visible to that user');
    
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • matttraxmatttrax Member Posts: 2,309
    Search the forum for how to check a role if you're unsure. It involves the Windows Access Control table (assuming you're using Windows Authentication).

    As for a message just use the MESSAGE command. You can learn how to add variables to the message through the help in the NAV client. You should also make your message text a TextConstant so that it can be used with the multilanguage functionality should that need ever arise for your business.
  • alien251alien251 Member Posts: 80
    Thank you!

    Dan
Sign In or Register to comment.