How to open a HTML file in WinCC OA

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
2 posts • Page 1 of 1
jjang@gtd.eu
Posts: 30
Joined: Fri Aug 23, 2019 12:55 pm

How to open a HTML file in WinCC OA

Post 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

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: How to open a HTML file in WinCC OA

Post 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")); 

Post Reply
2 posts • Page 1 of 1