cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy current hierarchy selection to another table

SorroAndres
Employee
Employee

Hello everyone,

I'd like to know if the following requirement is possible via JavaScript:

I have a table (Table 1 - the left one) which in runtime has some nodes expanded and other collapsed. I'd like to copy the current expansion from the table 1 to the table 2 after an event is triggered (ideally after a node is expanded, but a clicked button would be acceptable):

On init:

After event:

Thanks in advance!

SorroAndres
Employee
Employee
0 Kudos

Anyone? 😞

Accepted Solutions (1)

Accepted Solutions (1)

N1kh1l
Active Contributor
0 Kudos

sorroandres

Unfortunately I do not think there is any API which can return the current drill state of a Table. The only API which I see is to set the hierrachy level.

Br.

Nikhil

Answers (1)

Answers (1)

dominik_zed
Participant

With API expandNode/collapseNode you should be able to expand certain nodes. Problem remains, as Nikhil wrote, you cannot read the current drill state of the first table. Unfortunately you cannot even find out on which node the user has recently clicked. If that was possible you could at least expand the node that was chosen in the most recent click. That was possible in Lumira but not in SAC -> Improvement Request Details - Customer Influence (sap.com).