[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
DragAndDrop FunctionTreeInfoNode to Pane  XML
Forum Index -> Development
Author Message
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?
CaptainCasa

Power User
[Avatar]

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
hartmann

Power User

Joined: 20/08/2008 16:27:48
Messages: 73
Offline

ok,

thx, works fine.
CaptainCasa

Power User
[Avatar]

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
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team