Skip to Content
0
Mar 08, 2022 at 09:29 AM

How to know if Hierarchy is expanded

119 Views

Hi!

Just want to ask if there's any way we can able to identify if an Hierarchy is currently Expanded or collapsed,

This is what it looks like when collapsed

capture.jpg

This is when collapsed

capture1.jpg

Already know how to collapse and expand it, but how do i know if it's currently expanded or collapsed.

'Expand

sapSession.FindById("wnd[0]/usr/lbl[29," & icpRow & "]").SetFocus

sapSession.FindById("wnd[0]/usr/lbl[29," & icpRow & "]").caretPosition = 10

sapSession.FindById("wnd[0]").SendVKey 2

'Do something between

'Collapse

sapSession.FindById("wnd[0]/usr/lbl[29," & icpRow & "]").SetFocus

sapSession.FindById("wnd[0]/usr/lbl[29," & icpRow & "]").caretPosition = 10

sapSession.FindById("wnd[0]").SendVKey 2

thank you!

Attachments

capture.jpg (20.5 kB)
capture1.jpg (22.1 kB)