Author |
Message |
14/12/2011 10:33:40
|
hartmann
Power User
Joined: 20/08/2008 16:27:48
Messages: 73
Offline
|
Hi,
how can I drag a FunctionNode from workplace to a pane in my workplacewindow?
The functiontree is defined via xml '...eclntjsfserver\config\ccworkplace\functiontrees\..., not programatically. So, how can I define DRAGSEND to FunctionNodes defined that way?
|
|
|
14/12/2011 12:51:42
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5523
Offline
|
Hi,
FunctionNodes by themselves provide a dragsend-info, which is "workpage:...", containing all the parameters of the node. So, if you have a DROPRECEIVE-area with "workpage" then you should be able to drop them.
And: you can explicity call setDragSend() in the function node, to add own dragsend information, e.g. setDragSend("typea:valuexxx"). This only can be done via API, not via XML...
Regards,
Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
14/12/2011 13:47:28
|
hartmann
Power User
Joined: 20/08/2008 16:27:48
Messages: 73
Offline
|
ok,
thx, works fine.
|
|
|
14/12/2011 14:20:41
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5523
Offline
|
Hi,
I just saw: there is a method WorkpageUtil.decodeDroppedWorkpage().
If you call it WorkpageUtile.decodeDroppedWorkpage("workpage",<droppedString>) then you receive back a WorkpageStartInfo object.
So, parsing is a bit simpler...
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|