cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3.0 SP3 - Capture double click events in IW21 GuiTreeComponent

Former Member
0 Kudos

Dear Personas experts,

we want to execute a check on the "Structure List" tree used in a EAM / Maintenance Notification (alert user if a certain element type is chosen).

The choice is made by a mouse doubleclick on the entries, i.e. green / yellow elements below.

How can we capture this doubleclick and perform the check? So far we have found that several ways do not work:

- No event handlers like "onClick" can be attached to GuiTreeComponent

- The "OnBeforeRefresh" event is not triggered in this case (seems no backend interaction is needed to take the selection back to IW21)

Thank you for any ideas how to get this implemented.

Regards

Merten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Any suggestions anybody?

clemens_gantert
Active Participant
0 Kudos

Hello Merten,

we are currently looking into the possibility of offering events for GuiTree. However, any new events require ITS/kernel changes, so this nothing that will come overnight. Disclaimer: I am not making any promises .

Currently, you only way to implement your scenario (with restrictions) is to use a onAfterRefresh script that monitors GuiTree.selectedNode. You can compare the current selected node with the previously selected node that you stored in the session store (session.utils.put()/get()) or in the control store (GuiTree.setProperty("_oldSelection", ...) ). The restriction here is that - as you have already found out - not all interactions with the tree will cause an immediate roundtrip with the ABAP backend, so onAfterRefresh may not be called right away when you expect it.

Best Regards,

Clemens

SAP Screen Personas 

Former Member
0 Kudos

Thanks for the open feedback Clemens, we will see what we can do with the existing feature set.

Regards

Merten

Answers (0)