EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-02-12 12:53 AM
Hey everyone,
I've been able to successfully use this FAQ to set up a SCADA script to generate a csv report file and push it through VVX as a browser download.
My question is whether it is possible to queue multiple file downloads using this method? I've tried calling Mimic.Navigate multiple times with different 'file:///' argument within a function and it just downloads the file specified in the last call and not any of the ones previous. Based off this, I assume it just sends out all the requests to the browser and doesn't wait for any feedback before proceeding?
Thanks in advance
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-02-12 08:44 PM
I haven't tried this (I don't use VVX), but potentially the Mimic.OpenInset might do what you're after.
I think an issue would be that it would possibly keep a 'dead' window around afterwards.
My suspicion is that what's happening in your situation is that the scripting engine is single threaded, and it's not until the end of the script that it's actually issuing the Mimic.Navigate, by which time the navigateTo value is only the last entry you wrote.
OpenInset 'should' be able to spawn up multiple windows. Although I can't recall if I've tried this, in which case it might be the same issue, and you only get to open one window per script invocation..
You might want to try throwing in a nice long sleep(10000) to give a 10 second delay between each of the Mimic.OpenInset / Mimic.Navigate method calls.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-02-12 08:44 PM
I haven't tried this (I don't use VVX), but potentially the Mimic.OpenInset might do what you're after.
I think an issue would be that it would possibly keep a 'dead' window around afterwards.
My suspicion is that what's happening in your situation is that the scripting engine is single threaded, and it's not until the end of the script that it's actually issuing the Mimic.Navigate, by which time the navigateTo value is only the last entry you wrote.
OpenInset 'should' be able to spawn up multiple windows. Although I can't recall if I've tried this, in which case it might be the same issue, and you only get to open one window per script invocation..
You might want to try throwing in a nice long sleep(10000) to give a 10 second delay between each of the Mimic.OpenInset / Mimic.Navigate method calls.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-02-12 09:54 PM
Hi Bevan,
Thank you, Mimic.OpenInset worked perfectly. I used a 1 second sleep delay and it worked reliably as I only wanted to queue two small files. No visible dead window came up although I am hoping there wasn't anything created in the backend that is still lingering around.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.