on 09-08-2016 12:48 PM
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
Any suggestions anybody?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.