The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

Hello;

I have a couple of questions about rights (I'm using 1C 8.2.14)

1. What's the difference between Insert and InteractiveInsert? Why the "Add" button isn't displayed when I check only "Insert" right in a role?

2. How can I give user a right to Insert a record to a Catalog, but prevent him from changing it (and everything else) once Added to Database?

3. What's the difference between Update and Edit rights?

 
#2
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Joanna.
1. Insert means creating new object in general (think of it as object is created using script). While interactive insert means that the object can be created from the interface by a user.
2. Allow the interactive insert and disallow update.
3. Update is changing object from script and Edit is changing object from the form.

 
#3
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

Hello!

Thank you for response!

However I have a problem: when I want to uncheck "Update", Interactive Insert is also unchecked automatically, so I'm not sure how I should do it. Did I miss anything?

Edited: Joanna Torz - Feb 12, 2014 07:58 AM
 
#4
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

That is correct: if an object can not be created in general, it will not be allowed to be created from the interface, that is why Edit right is disabled together with Update right. But you still can allow only Update right and disallow Edit (i.e. interactive update).

 
#5
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

Hello again! :)

My main goal is to allow the user to add an entry through the interface (Interactive insert) but just after adding it, disallow any changes (edit/update). I understand that it cannot be done using standard role access settings?

By now I'm using a trick: The catalog has a boolean flag that is set to true just after adding it to the database, and the "Update" role setting has access restriction that disallows changes when this flag is set to true. However I think it's not an elegant way to solve this, rather a "dirty trick".

Is there any other, more elegant way to accomplish this task? I'm using 1C 8.2.14.528

 
#6
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Why did not you use what I suggested you in previous message?

 
#7
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

But I've already told you that when I want to uncheck "Edit" or "Update", then Interactive Insert is also unchecked automatically, which takes away the "Add" button and makes the user unable to add anything from the interface.

Edited: Joanna Torz - Feb 14, 2014 02:07 AM
 
#8
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

I got you. You can allow edit and update for entire the object and prohibit changing all attributes (including standard ones) and tabular sections. Please see attached configuration as an example.

Download 1Cv8.cf (7.29 KB)
 
#9
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

By the way, to check if the item that is written is a new one, please use metods described in How to find out that the new document form is opened topic.

 
#10
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

Thank you very much, I'm going to experiment with it right away :)

 
Subscribe
Users browsing this topic (guests: 3, registered: 0, hidden: 0)