I’m experiencing an issue with the power chart:
When I add a tagBrowserStartPath to the config property of the power chart, then open the project in a browser, the power chart lists all the available databases, I need to either reload the tags directly from the power chart, or refresh the page, before it actually shows only what I set tagBrowserStartPath to.
Then it works fine, until I close the page, or navigate to another one, then come back to it
Same here. I managed to fix this using the trusted insanity trick. Add a script on the PowerChart ‘onStartup’ Event. Set the tagBrowserStartPath property there. Even if you have a binding on the tagBrowserStartPath…set it again with the ‘onStartup’ script. Hence the insanity trick.
Didn’t see that solution when it was posted, and ended up figuring out the same solution, only waaaay later. Would have make things easier if I had not missed it.
I’ll mark it as solution, as it seems this is still a problem and people might find this helpful.
I still have the issue after the fix. If the tagBrowserStartPath binding is to a hardcoded string then it works. But my tagBrowserStartPath is dynamically created as a script in config binding of tagBrowserStartPath and also in the start up event (getting databasename, tagProvider and tagPath then setting the tagBrowserStartPath). In this dynamic creation mode soemtimes it shows fine but sometimes (sporadically) it shows database names on the power chart tagbrowser and then I have to navigate inside the database name to reach the tagBrowserPath destination. When I refresh the tagBrowser inside the power chart then it works.
Using system.navigate.openPopup, I am passing a parameter into the view that holds the PowerChart. The tagBrowserStartPath property is bound to this parameter. I have the popup ID set to match the parameter being passed and can see the string coming in there as well as labels.
Occasionally this will work (about 1/3 of the time), but the only way I can consistently see the filtered path is by clicking the reload button in the tag browser of the power chart. My system is using a remote tag provider, so I'm not sure if that is causing this or maybe some lag when trying to find the existing databases which are remote as well.
I'm currently on version 8.1.44 which is pretty close to the latest.
When I originally set this up, it was on an AdHocTrending screen made in Ignition Exchange (I think) with some extra functions but even setting it up on a brand new PowerChart from the Perspective Components didn't work consistently. The setup isn't anything elaborate, but I think there may be some latency causing this. I plan to get some logging in place to see if I can track anything down.