{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\
{table:id=|class=servoy sSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#COPY]
Constant for copy drag operation.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#MIME_TYPE_SERVOY]
Constant used as mime type for servoy objects.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#MIME_TYPE_SERVOY_RECORD]
Constant used as mime type for servoy record objects.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MOVE]
Constant for move drag operation.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#NONE]
Constant for no drag operation.{td}{tr}{tbody}{table}\\
{table:id=constant|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=COPY|class=node}{tr:id=name}{td}h6.COPY{td}{tr}{tr:id=des}{td}{sub-section:COPY_des|text=|trigger=button}{sub-section}{sub-section:COPY_des|trigger=none|class=sIndent}
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientservoy sSummary12%30%58%height: 30px;3Constants SummaryConstant for copy drag operation.Constant used as mime type for servoy objects.Constant used as mime type for servoy record objects.Constant for move drag operation.Constant for no drag operation.constantservoy sDetail2100%height:30px2Constants DetailsCOPYname
COPY
dessIndent
Constant for copy drag operation.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:COPY_snc|text=|trigger=button}{sub-section}{sub-section:COPY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:COPY_prs|text=|trigger=button}{sub-section}{sub-section:COPY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:COPY_ret|text=|trigger=button}{sub-section}{sub-section:COPY_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:COPY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:COPY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:COPY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:COPY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:COPY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:COPY_sam|trigger=none}{code:language=javascript}
function startDrag(event)
{
if(event.getElementName() == "copy")
return DRAGNDROP.COPY;
else if(event.getElementName() == "move")
return DRAGNDROP.MOVE
return DRAGNDROP.NONE;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MIME_TYPE_SERVOY|class=node}{tr:id=name}{td}h6.MIME_TYPE_SERVOY{td}{tr}{tr:id=des}{td}{sub-section:MIME_TYPE_SERVOY_des|text=|trigger=button}{sub-section}{sub-section:MIME_TYPE_SERVOY_des|trigger=none|class=sIndent}ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowMIME_TYPE_SERVOYname
MIME_TYPE_SERVOY
dessIndent
Constant used as mime type for servoy objects.
{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MIME_TYPE_SERVOY_snc|text=|trigger=button}{sub-section}{sub-section:MIME_TYPE_SERVOY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MIME_TYPE_SERVOY_prs|text=|trigger=button}{sub-section}{sub-section:MIME_TYPE_SERVOY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MIME_TYPE_SERVOY_ret|text=|trigger=button}{sub-section}{sub-section:MIME_TYPE_SERVOY_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MIME_TYPE_SERVOY_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MIME_TYPE_SERVOY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MIME_TYPE_SERVOY_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MIME_TYPE_SERVOY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MIME_TYPE_SERVOY_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:MIME_TYPE_SERVOY_sam|trigger=none}{code:language=javascript}
if (event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY || event.dataMimeType == DRAGNDROP.MIME_TYPE_SERVOY_RECORD) {
application.output("Dropping is allowed" );
return true;
} else {
application.output("Dropping is not allowed" );
return false;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ret