setValue object path structure ?

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
Kris Daniels
Posts:5
Joined: Wed Feb 04, 2015 1:21 pm

setValue object path structure ?

Post by Kris Daniels »

Hi Guys,

Could someone explain me how I access an object that's inside a embedded panel from an other embedded panel.
I know we can access this with the function setValue but how is the path structure ?

For example.

I have a panel (main.pnl) with 3 embedded modules (Header,Main,Footer) in the Footer module we load a Footer.pnl with 2 embedded modules (Footer_Top & Footer_Bot)
each module has also a panel (Footer_Top.pnl and Footer_Top.pnl). I want to access an object from the Footer_Top.pnl to Footer_Bot with the setValue function.

Main.pnl (panel)
---- Header (embedded module)
---- Main (embedded module)
---- Footer (embedded module)
-------- Footer.pnl (panel)
------------ Footer_Top (embedded module)
---------------- Footer_Top.pnl (panel)
-------------------- Btn_1 (object)
------------ Footer_Bot (embedded module)
---------------- Footer_Bot.pnl (panel)
-------------------- Object_1 (object)

for example :
setValue(Main_Footer_UINumber_Footer_Footer_Top:Object_1,"visible","true") ?

Kind regards,

Kris

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: setValue object path structure ?

Post by leoknipp »

Hello,

how to access shapes in other modules/panels is described in the WinCC OA help.
You will find the chapter "Access shapes in other panels and modules" when searching for the keyword "setValue".

The syntax for the path is "moduleName.panelName:shapeName".
The panelName is not the file name, it is the name given when opening the panel.

Best Regards
Leopold Knipp
Senior Support Specialist

Kris Daniels
Posts:5
Joined: Wed Feb 04, 2015 1:21 pm

Re: setValue object path structure ?

Post by Kris Daniels »

Thx Leopold,

That's what I was looking for.

Kind regards,

Kris

3 posts • Page 1 of 1