Component/View Path Syntax

Continuing the discussion from Page path displayed in Perspective sessions:

Could someone go into a little more detail about the container syntax? It occasionally comes up on binding warnings and it would be nice to be able to track the components down as that's the only info provided by the warning.

I guess specifically, is the nesting from left to right or right to left? C$1:2:3 would be 1st child of 2nd child of 3rd child or the other way around?

I've tried searching for "component path in container" and "component path in view" but that seems to return discussions on the .children kind of path.

Okay, bear with me...

Given a stacktrace path of Experimentation/Repl@D$0:2:0:0/root/FlexContainer/Button:

You can discern there was an error raised by the Experimentation/Repl View, in the Designer.

There's no indication of which View this View is embedded wihtin, but from whichever View it is embedded within, the instance of the View is located along this path: 0:2:0:0.

Note that anytime there is still a number remaining in the path that you should be looking for a container.

Start at the View node level:
0: root node (the first value in this path might always be 0)
2: 2th child
0: 0th child
0: 0th child

If you look at the following screenshots, you can see the Embedded View which is rendering the Experimentation/Repl View exists as the 2th child of root, the 0th` child of Flex Container, the 0th child of Flex Container.

14:06:19.355 [AWT-EventQueue-0] ERROR com.inductiveautomation.ignition.client.util.gui.ErrorUtil - Error running action 'component.onActionPerformed' on Experimentation/Repl@D$0:2:0:0/root/FlexContainer/Button: Traceback (most recent call last):
  File "<function:runAction>", line 2, in runAction

Screenshot 2023-10-12 at 2.07.26 PM


Thank you! I appreciate the thorough explanation.

1 Like