Tabular section items unique

The 1C:Enterprise developers forum

People who like this:0Yes/0No
Just came
Rating: 1
Joined: Mar 6, 2018

I have an order tabular section and i am adding goods from catalog. I want to stop that adding a good two times. I have unique codes for each products.

People who like this:0Yes/0No
Rating: 16
Joined: Dec 4, 2017

Dear eyup yilmaz,

For instance, you can use the event handler for the <TableName>OnEditEnd event. In the handler, check whether the picked item is already in the list. If yes, notify the user that the item is already in the list and set the True value to the handler's CancelEdit parameter (this cancels the editing action).

Best regards,
Vladimir Gurov

1C Company support team