I have made an object.
Now i want that if the name of the user is say"XYZ" then only the object should run,irrespective of the roles ie. suppose the user name is ABC and he has all the permissions then the form should'nt run.Howz this possible?
1. Remove the 0-line on forms from the "ALL" role.
2. Add every form except that specific one for exection rights in the all role (this is quite easy with the "all objects" button).
3. Create a new role and put the execute permission on that specific form
4. Add that new role for that specific user.
You could also add a boolean field to the user setup table. You can put code in the OnInitForm trigger to look at this value and exit if it is not checked.
Comments
2. Add every form except that specific one for exection rights in the all role (this is quite easy with the "all objects" button).
3. Create a new role and put the execute permission on that specific form
4. Add that new role for that specific user.
... something like that ...
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
My Blog - nav.education
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
That's really "crude" indeed ... . [-X
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
RIS Plus, LLC