Skip to Content
Sep 21 at 08:13 PM

Property 'selectedTab' does not exist on type 'IGuiComponent' on GuiTabStrip

84 Views Last edit Sep 21 at 08:16 PM 2 rev

I am trying to hide the tab in a tabstrip dynamically using script in personas. But in script I am getting the below error.

"Property 'selectedTab' does not exist on type 'IGuiComponent'."

if (session.findById("wnd[0]/usr/subSUB_ALL:SAPLCOIH:*/ssubSUB_LEVEL:SAPLCOIH:*/tabsTS_1100/tabp+CUK/ssubSUB_AUFTRAG:SAPLCOIH:1180/ssubCUSTSCR1:SAPLXWOC:0900/tabsTC") === "wnd[0]/usr/subSUB_ALL:SAPLCOIH:*/ssubSUB_LEVEL:SAPLCOIH:*/tabsTS_1100/tabp+CUK/ssubSUB_AUFTRAG:SAPLCOIH:1180/ssubCUSTSCR1:SAPLXWOC:0900/tabsTC/tabpRAM"){

The same type of code is working on other tabs. The only difference is this is Tab inside Tab.

Could anyone please let me know what is the issue ?