openUrl() is not defined when calling from WCCOACtrl

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
4 posts • Page 1 of 1
LIGO
Posts:27
Joined: Tue Aug 02, 2016 1:57 pm

openUrl() is not defined when calling from WCCOACtrl

Post by LIGO »

Hello.

I faced a strange problem, when I'm trying to open a browser window from separate Ctrl manager (via std_help). That error appears:
WCCOActrl (3), 2017.07.21 10:38:41.620, CTRL, SEVERE, 72, Function not defined, backResRep.ctl Library: C:\\Siemens\\Automation\\WinCC_OA\\3.14\\scripts\\libs\\std.ctl
Line: 250, openUrl
It looks like some library is not included in that manager, but I can't find which one is missing. May someone guide me where to find it, or is it even possible to use that function from Ctrl manager?

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: openUrl() is not defined when calling from WCCOACtrl

Post by mkoller »

openUrl() is only available in the UI manager

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: openUrl() is not defined when calling from WCCOACtrl

Post by kilianvp »

you can use

Code: Select all

system("start https://www.google.com/");
to open the url in your default browsers

LIGO
Posts:27
Joined: Tue Aug 02, 2016 1:57 pm

Re: openUrl() is not defined when calling from WCCOACtrl

Post by LIGO »

Thank you very much, Kilian.
That is just what i needed and it works perfectly.

4 posts • Page 1 of 1