panel ref loaded on a tab in a tab widget - how to get tab widget name inside panel ref?

Find and share HowTos to various installations / configurations!
Search

Post Reply
3 posts • Page 1 of 1
tpjctrl
Posts: 141
Joined: Tue May 08, 2018 10:30 am

panel ref loaded on a tab in a tab widget - how to get tab widget name inside panel ref?

Post by tpjctrl »

I have a tab widget on which tabs are created automatically based on dps existing. When a tab is created, it is loaded with a panel ref using the "namedRegisterPanel" function. Is there a way to get the name of the tab widget from within the panel ref that is loaded in the tab? I can pass the name of the tab widget as a $param when using the "namedRegisterPanel", but it's a but clunky and I'd rather avoid it if possible.

User avatar
leoknipp
Posts: 2846
Joined: Tue Aug 24, 2010 7:28 pm

Re: panel ref loaded on a tab in a tab widget - how to get tab widget name inside panel ref?

Post by leoknipp »

I checked the documentation. It looks like there is no function available to get the name for the register from a panel loaded within a tab.

Best Regards
Leopold Knipp
Senior Support Specialist

gschijndel
Posts: 330
Joined: Tue Jan 15, 2019 3:12 pm

Re: panel ref loaded on a tab in a tab widget - how to get tab widget name inside panel ref?

Post by gschijndel »

In case there is only a single tab widget in the panel the getShapes function would return the name of the tab.
If it returns multiple names the result of panelAt can be compared to the self reference to get the right name.

Post Reply
3 posts • Page 1 of 1