DROPTYPEALLOWED

 

 

Purpose

.DropTypeAllowed enables you to define the Data Type that is allowed to be dropped onto a Static Icon.  

Syntax

Setting:          ObjectReference.DropTypeAllowed = Value

Retrieving:       Variable = ObjectReference.DropTypeAllowed
 

Operation

ObjectReference is the Tag Name of the object
Value
is a character string with a maximum length of 250 bytes
Variable
is a numeric variable
 

Remarks

When you perform a drag, the data payload associated with the drag consists of a string with a maximum length of 250 bytes, and a Drag Type. This, in combination with the target object’s DropTypeAllowed property allows the Open Client to validate that matching data is being dropped (e.g. a person can only be dropped on person target, a machine part on a machine parts target, etc.)

The target Static Icon should have DropTypeAllowed property set to match the DragType value held in the payload for the drop to occur.

Example

To specify that the allowed data type of 'Employee' can be dropped onto a Static Icon with a Tag Name of StaticIconTag:

StaticIconTag.DropTypeAllowed = ‘Employee'

 

Note: This property applies to PROIV Open Client only.

 

Comment on this topic

Topic ID: 510170