Dynamics User Group
Since 1995 - The Microsoft Dynamics Online User Community

Item Card Read only permissions

rated by 0 users
This post has 6 Replies | 2 Followers

Not Ranked
Posts 3
Points 75
Member since 10-16-2007
jim7jim Posted: 10-16-2007 19:48

 Hello,

 Using Dynamics NAV 5.0 and SQL 2005. I'm trying to make the Item Card (Object # 27) Read only for some users. I start with a new user with blank roles and permissions. I create a new role and add read only permission to Table Data id # 27 for the Item Card.

 I then add additional permissions for the items necessary to display the Item Card for this user. All permissions added are Read only. When I get done and this user brings up the Item Card, it is editable. I don't understand how this is possible when all permissions I set are read only.

Can anyone shed some light on my issue?

 TIA

 Note: The only role on this user is the one I create. I even removed the ALL role (thinking this was my problem) and added the individual permissions to allow user to access Menusuite, etc.

Top 10 Contributor
Male
Posts 3,440
Points 106,041
Member since 10-01-1995
DynamicsNAVMVP
Moderator
SystemAdministrator

The card as such will be editable, unless you change the property EDITABLE to No on the form. This can be done either directly changing the form property or via the code. This way you can change the property based upon the users permission setup to the card.

If you have set up the right permissions to the item table, then the users would get an error upon modifying the item records.

Best regards,
Erik P. Ernst - webmaster at dynamicsuser.net

DynamicsUser.net Admin's Blog

Top 10 Contributor
Male
Posts 1,363
Points 17,805
Member since 01-23-2004
DynamicsNAVMVP

The field on the Item Card may be editable, but it should not allow you to actually modify a record

Not Ranked
Posts 3
Points 75
Member since 10-16-2007

Yes, that's my problem ... users can actually modify the Item Card. For example, they can modify the description field on the Item Card.

I was under the impression that users could not modify these fields if I set the Table Data to read only. That seems to be the way the other forms work. For some reason, I just have a problem with this form.

 So based on what Erik said, do I really need to set the control on the Form to Editable = No? Shouldn't the read only permissions take care of it?

 

TIA 

 

 

Top 10 Contributor
Male
Posts 3,440
Points 106,041
Member since 10-01-1995
DynamicsNAVMVP
Moderator
SystemAdministrator

The read only permissions only take care that the user is not allowed to actually update the table.

If you want the setup you're describing then you need to insert some code like this:

currForm.EDITABLE(WRITEPERMISSION);

The line should be inserted into the OnOpenForm trigger of the form.

Best regards,
Erik P. Ernst - webmaster at dynamicsuser.net

DynamicsUser.net Admin's Blog

Not Ranked
Posts 3
Points 75
Member since 10-16-2007

Erik,

Thanks so much. Your suggestion seems to provide the desired behavior.

Cheers! 

 

  • | Post Points: 20
Top 10 Contributor
Male
Posts 3,440
Points 106,041
Member since 10-01-1995
DynamicsNAVMVP
Moderator
SystemAdministrator

You're welcome, I'm happy to have been able to help you.

Best regards,
Erik P. Ernst - webmaster at dynamicsuser.net

DynamicsUser.net Admin's Blog

  • | Post Points: 5
Page 1 of 1 (7 items) | RSS


Copyright Dynamics User Group, 1995-2009, all rights reserved. The Dynamics User Group is not affiliated with Microsoft Corporation.