How to prevent copying and dragging items on a planner

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Hi everyone;

I want to hinder to carry and copy planner item on planner. I mean user shouldn't carry and copy of item on planner? How can I do that?

Download ekran1.png (141.53 KB)
Download ekran2.png (137.72 KB)
Edited: Mehmet Tuğrul SARIÇİÇEK - Nov 23, 2015 11:42 PM
 
#2
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

İmages had been added but it was deleted from site. I add again.

I want to user can't drag and drop item on planner and user shouldn't copy item via drag and drop.

Edited: Mehmet Tuğrul SARIÇİÇEK - Nov 23, 2015 08:34 AM
 
#3
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Thank you for attaching images, Mehmet Tuğrul SARIÇİÇEK.

To prevent users from dragging you can use following:
For Planner form item set the WarningOnEditRepresentation property to Show.
And add an event handlers for BeforeDelete and PlannerOnEditEnd events:

Code
&AtClient
Procedure PlannerOnEditEnd(Item, NewItem, CancelEdit)
      
   CancelEdit = True;
   
EndProcedure

&AtClient
Procedure PlannerBeforeDelete(Item, Cancel)
   
   Cancel = True;
   
EndProcedure

 
#4
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Thank you Timofey Bugaevsky,

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.