Is it possible to do a tag read or programatically create a binding from the /web (react) portion of your module using typescript?
My guess is that it would need to be done at the java gateway hook then passed to the perspective subProject, does anyone have any examples of how to accomplish this.
P.S I know the easiest way to technically do this just put a binding on one of the props that are passed to component, but I would like to seperate as much of the logic as possible to the module itself.
I am creating a “Universal Popup“ that takes a UDT and automaticaly lays out all the tags into ordered, blocks and subBlocks. All the config for laying out the tags exists in a document tag at the base of the UDT.
I would like the end module to just take a tagPath as an input, then the module reads the config tag, and browses through the structure extracting all the enabled tags and laying them out appropriately, then if the user drags blocks around, that new config should be written back to the tag.
Again, I know the typical way to do this is through the designer scripts/bindings (Which I already have working as a regular ignition view) but the idea with the module is to extract away all the complexity and simplify the component to only need a tagPath as input and all logic handled internally by the module.