Page 1 of 1

How to open a HTML file in WinCC OA

Posted: Fri Mar 13, 2020 11:18 am
by jjang@gtd.eu
Hi,

I'm using WinCC OA 3.17 P002. I have create a Legacy Project and I'm trying to open a HTML using WebView.ewo(EWO) with the command "loadSnippet".

However, it can not open the corresponding file.

I put the next code in the script:

Code: Select all

WebViewEWO.loadSnippet("/data/html/HTMLTEST.html"); 
Also I tried to copy the example of HELP DOCUMENTATION but it does not work neither....

WinCC OA 3.17 Help Documentation: Example addres -> qthelp://wincc_oa/doc/Native_GEDI/ewo_webview_js_examples.htm
What is wrong? :cry:

Best Regards,

Junho

Re: How to open a HTML file in WinCC OA

Posted: Mon Mar 16, 2020 1:15 pm
by gschijndel
The 'loadSnippet' function is for the JavaScript interface. Use the 'load' function to show a html site.

Code: Select all

WebViewEWO.load("file:///" + getPath(DATA_REL_PATH, "html/HTMLTEST.html"));