Select Elements/Components From ID instead of Hierarchical

Dear Gurus,

I see in perspective I can set a DOMID to any components, so I wonder if instead of

self.parent.getChild("FlexContainer").getChild("tblList").props.data

can I do something like

document.getElementByID("MyId").props.data ?

This would honestly be a game-changer for me since I am a newbie to Ignition and I change design frequently.

also, I would like to know the right place to post feature requests if this feature doesn't exist, please.

Best Regards.

EDIT :: Feature Request upvote link for those who think would help to have this feature Select Components From ID | Voters | Inductive Automation

No, at least not currently. Scripts are all running on the backend, where there is no DOM, only the explicit parent child links we set up. We could implement something like this (or you could create a project library script to do it yourself) but it's not going to be any kind of efficient.

I would suggest leaning heavily on component messaging to accomplish the goal of decoupling, instead.

3 Likes