[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Very very special feature request - Workplace spanning drag & drop  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

Hi Captain,

would it be possible to drag a item (e.g. fixgrid row) to t:rowworkplacefunctiontree node?

I know it's very special...

regards

Markus
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...if special or not (I assume you want to let the user dynamically bring items into the workplace): it's quite easy to implement.

We will let you define a "DROPRECEIVE" on Workplace-Function-Node-level and you can over-ride a function to accept the event on server side.

We will try to package it with the interim update tomorrow in the morning (the one fixing the ashaming OPEN-problem with file-download).

Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

great thanx, in my application I have entities and relations (between the entities) and certain entities are listed in the tree as nodes draging an item from a listUI should then create automatically a relation between these entities. This would be a enormous benefit for the end users!

Again a big thanx for your straightforward solutions!

Markus
[WWW]
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

ok, I'tried to implement, but I didn't get it work in my environement.
While trying around I realized that my problem will not be solved, because I need a to drag a row of a fixgrid on the functiontreenode, I saw no possibility to transmit e.g. the id of the entity in the row I drag to the node? Or is there a possibility to get this info out of the BaseActionEventDrop object?

regards
Markus
[WWW]
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

so drag & drop works now.
But I still have the problem to get the relevant information out of the TREENODEComponent which is the source of the BaseActionEventDrop object.
I need the id which is available in my FIXGRIDItem.

My approach would be to add a separate gridcol with a label containing my ID with attribute "rendered=false" and get this info from the transmitted TREENODEComponent object, is this possible?

regards
Markus
[WWW]
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

I found a way to get the ID but i'm not sure if this the perfect way?

In the function node I do the following:
Code:
 WorkpageContainer wc = (WorkpageContainer)getWorkpageContainer();
 EntityListUI entityUI =  (EntityListUI) wc.getCurrentWorkpage().getDispatcher().getDispatchedBean(EntityListUI.class);
 String id = entityUI.m_gridList.getSelectedItem().datum.getId();  
 


Markus
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team