I don't suppose you could point me in the right direction for this question ( I have tried for several hours, but no joy).
I have a very simple flow (below) where each time someone accesses a particular tab I want to run a python script that checks if there are any files in a particular folder and if so display them.
The flow almost works, but not quite. I thought I could use the ui control node to detect when a page/tab is loaded and then it would trigger the script (as below), but it doesn't work. Moreover it doesn't work in a confusing way
If I just use the inject node its works fine (even though the payload from each is the same).
Also it seems the ui control node does work in some way because the json objects at the end of the flow (that show/hide the group) are exactly the same, yet 1 works the other doesn't.
Your flow has no ui widgets, so can not see it working or not.
The ui-control will output on connect refresh change of tab etc, so it may be over loading the python script(just a guess). You may want to add a switch node to only pass if the tab name is correct.