The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 6
Joined: Mar 20, 2012
Company: Abaco Soluciones S.A.

Hello. I want to put an icon into the document form, which represents current document status - posted, deleted and some else. Everything is OK with statuses "posted/not posted" - I can create status icon (as form attribute) when the event oncreateatserver occurred and i can upd ate it when document posted/unposted in afterwrite event. But with deletion mark it doesn't work - I cannot find and event which occurred when deletion mark is se t in the document form object. Is there any such event? Maybe there exists any other way to do this?

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

Joined:
Company:

You will have to disable standard commands for deletion mark setting/clearing and provide your own commands as a replacement, this will allow you to handle the deletion mark change event.

 
#3
People who like this: 1 Yes / 0 No
Active user
Rating: 6
Joined: Mar 20, 2012
Company: Abaco Soluciones S.A.

How can I disable standard command for deletion mark without rebuilding command bars in all document forms?
And another question - Can this behavior be considered as a platform bug?

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

Joined:
Company:

Yes, you need to rebuild the command bar for the document form. Not for list or choice form as you need only to catch a moment when the deletion mark is changed for the opened document form. Other cases of deletion mark change you will handle in the OnCreateAtServer handler.

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