Hi,
I got a table which must not modified directly by a user, but through a
function on an other table. To that table the user has all permissions.
Now I thought I write the ObjectID(of the table which must not be directly modified) in the Permission-Property of the table
which can be executed by the user. I set read, write etc. on true.
But when I log in with the normal user account, Navision says that I have no
permission???
Did I forget something?
Can anybody help?
redStripe
0
Comments
If you want field level security, there are a lot of posts on this forum that explains in detail on how to do it.
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
I don't know if I get you right, but I don't want to protect a certain field in
a table. I want to execute code that writes in an object to which the user has
no direct access - only through the code. Do you know what I mean?
redStripe
In this case, you can give the user Indirect permission to the table. However, you'll need to create a codeunit or a separate function that writes into the table instead of writing directly to the table in your code.
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
The permission property on the object doesn't work :-(
* Create a codeunit that keeps the code that change your protected table and put on the permissions of that codeunit the protected table.
* Give the user Indirect permission by using the standard permissions of users (Tools->Security-> users or roles...)
* Execute the code of the codeunit you have build from anywhere you want.
Arhontis
https://forum.mibuso.com/search
This CU is called by an onPush event from a form.
The CU has permission on the table but the user not.
I add to the user-role the codeunit (indirect access) ... but it doesn't work.
I get "Permission denied"
?????
The message is about the cu? the destination table? is it about write/modify/delete?
Anyway. You must also synchronize the user, give the user permissions to be able to execute the new cu, have the number of the new objects within the allowed range of your license.
Arhontis
https://forum.mibuso.com/search
Try giving an indirect permission to the table which is used by the CU to manipulate the data
For any queries you can also visit my blog site: http://msnavarena.blogspot.com/