I want to provide a facility to operator to search/find components (i.e. PE001, Conv002 etc.) located on view. Operator will enter a PE or 001 in the text box and then click “find” button provided.
I have refereed below code and able to find the component name located on that view where the find button is located.
But I want to use find button provided on header, which is different view.
Hence, I am trying to pass a “page.props.primaryView” to the below script instead of self.view.
for child in self.view.rootContainer.getChildren() :
path = child.props.path
params = sql_query_stuff(path)
child.props.params = params # or whatever you intend on doing
# child had no "path" property/attribute, so do something else
Thanks in advance!