Name Format for nested objects

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
slamkwon
Posts:19
Joined: Wed Oct 10, 2018 2:20 am

Name Format for nested objects

Post by slamkwon »

https://imgur.com/LLED2d0

https://imgur.com/a/cFeIOzz

[I have attached 2 photos to illustrate the questions better:


SEE IMAGE 1
1. I am curious as to what the object name format is when trying to access the properties of RECT in Panel P1 in Module B with setValue or getValue

setValue example:

Code: Select all

setValue("ModuleNamePanel.RECT ???","visible","true);
2. I am curious how RECTANGLE in Panel P1 in Module B gets the naming format of the graphic object in getShapes or getShape

getShapes example:

Code: Select all

dyn_string shTemp;
shTemp = getShapes("ModuleName","PanelName","ShapeType","RECTANGLE");

SEE IMAGE 2
3. I am curious about the naming format of the graphic object when attempting to change the attributes of the RECT in PANEL A of Module C with setValue or getValue

setValue example:

Code: Select all

setValue("ModuleNamePanel.RECT ???","visible","true);
4. I am curious about how RECTANGLE in Module C's PANEL A gets the naming format of the graphic object in getShapes or getShape

getShapes example:

Code: Select all

dyn_string shTemp;
shTemp = getShapes("ModuleName","PanelName","ShapeType","RECTANGLE");
Last edited by slamkwon on Thu Feb 21, 2019 3:11 am, edited 1 time in total.

slamkwon
Posts:19
Joined: Wed Oct 10, 2018 2:20 am

Re: Name Format for nested objects

Post by slamkwon »

Please tell me how to upload photos.... or do i need to upload to an external site and link?

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

Re: Name Format for nested objects

Post by leoknipp »

If you want to access a shape in a different module the syntax is
setValue("ModuleName.PanelName:ObjectName", ....);

Best Regards
Leopold Knipp
Senior Support Specialist

slamkwon
Posts:19
Joined: Wed Oct 10, 2018 2:20 am

Re: Name Format for nested objects

Post by slamkwon »

IMAGE 1
https://imgur.com/LLED2d0

IMAGE 2
https://imgur.com/a/cFeIOzz

[I have attached 2 photos to illustrate the questions better:


SEE IMAGE 1
1. I am curious as to what the object name format is when trying to access the properties of RECT in Panel P1 in Module B with setValue or getValue

setValue example:
CODE: SELECT ALL

setValue("ModuleNamePanel.RECT ???","visible","true);
2. I am curious how RECTANGLE in Panel P1 in Module B gets the naming format of the graphic object in getShapes or getShape

getShapes example:
CODE: SELECT ALL

dyn_string shTemp;
shTemp = getShapes("ModuleName","PanelName","ShapeType","RECTANGLE");

SEE IMAGE 2
3. I am curious about the naming format of the graphic object when attempting to change the attributes of the RECT in PANEL A of Module C with setValue or getValue

setValue example:
CODE: SELECT ALL

setValue("ModuleNamePanel.RECT ???","visible","true);
4. I am curious about how RECTANGLE in Module C's PANEL A gets the naming format of the graphic object in getShapes or getShape

getShapes example:
CODE: SELECT ALL

dyn_string shTemp;
shTemp = getShapes("ModuleName","PanelName","ShapeType","RECTANGLE");

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

Re: Name Format for nested objects

Post by leoknipp »

As written in my answer the syntax is setValue("ModuleName.PanelName:ObjectName", ....);
A panel is only loaded in one specific module. Cascaded embedded modules must not be taken into account.

Best Regards
Leopold Knipp
Senior Support Specialist

5 posts • Page 1 of 1