I'm Wondering or it's possible to have more than one web visualizations
So I can give different users a different hyper link to my project
so i can make different pages with different functionalities
yes it is possible just give the visualisations different names, however it will always start with the one you set in the options.
but you can make a switch to go to different screens even with a password.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
and changed in the new html file
I opened the html file with a text editor
and changed the java aplet parameter from <param name="STARTVISU" value="PLC_VISU"> to <param name="STARTVISU" value="TEST_VISU">
And that is all it takes
Thanks for your Help and pointing in the right direction
To move from one display page to another you must use a button in each page with the following settings :
In the page called "PLC_VISU" :
- Category Text : for example the name of the page you want to go, or one another text
- Category Input : Check the box "_ to vis. : and with the F2 Function Key, choose the name of the page you want to switch on "second_page"
In the page called "second_page" :
- Category Text : for example the name of the page you want to go, or one another text
- Category Input : Check the box "_ to vis. : and with the F2 Function Key, choose the name of the page you want to switch on "PLC_VISU"
Webvisu.htm is a file in your controler. But you do not need to change it to do what is explained in the previous lines.
Hope this helps you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm Wondering or it's possible to have more than one web visualizations
So I can give different users a different hyper link to my project
so i can make different pages with different functionalities
as example
hyperlink 1 http://myproject:8080/webvisu_1.htm
hyperlink 2 http://myproject:8080/webvisu_2.htm m
yes it is possible just give the visualisations different names, however it will always start with the one you set in the options.
but you can make a switch to go to different screens even with a password.
Thanks for jour reply
I have copied the file webvisu.htm and renamed it
and changed in the new html file
I opened the html file with a text editor
and changed the java aplet parameter from <param name="STARTVISU" value="PLC_VISU"> to <param name="STARTVISU" value="TEST_VISU">
And that is all it takes
Thanks for your Help and pointing in the right direction
Below the edited webvisu.htm
HTML>
<title>CoDeSys WebVisualization</title>
<style type="text/css"><br> /<strong><em>*</em></strong> basic tags <strong><em>*</em></strong>/<br> body<br> {<br> margin: 0;<br> padding: 0;<br> }<br> </style>
<script></p> <div class="codehilite"><pre><span></span> <span class="nv">function</span> <span class="nv">CookieHandling</span><span class="ss">()</span> { <span class="nv">applet</span> <span class="o">=</span> <span class="nv">document</span>.<span class="nv">getElementById</span><span class="ss">(</span><span class="s2">"</span><span class="s">webvisuapplet</span><span class="s2">"</span><span class="ss">)</span> <span class="nv">stTodo</span> <span class="o">=</span> <span class="nv">applet</span>.<span class="nv">databaseCookieInteraction</span><span class="ss">()</span><span class="c1">;</span> <span class="k">if</span> <span class="ss">(</span><span class="nv">stTodo</span><span class="o">==</span><span class="s2">"</span><span class="s">write</span><span class="s2">"</span><span class="ss">)</span> { <span class="nv">var</span> <span class="nv">expire</span> <span class="o">=</span> <span class="nv">new</span> <span class="nv">Date</span><span class="ss">()</span><span class="c1">;</span> <span class="nv">var</span> <span class="nv">oneyearLater</span> <span class="o">=</span> <span class="nv">expire</span>.<span class="k">getTime</span><span class="ss">()</span> <span class="o">+</span> <span class="mi">365</span> <span class="o">*</span> <span class="mi">24</span> <span class="o">*</span> <span class="mi">3600</span> <span class="o">*</span> <span class="mi">1000</span><span class="c1">;</span> <span class="nv">expire</span>.<span class="k">setTime</span><span class="ss">(</span><span class="nv">oneyearLater</span><span class="ss">)</span><span class="c1">;</span> <span class="nv">document</span>.<span class="nv">cookie</span><span class="o">=</span><span class="nv">applet</span>.<span class="nv">databaseCookieGetValue</span><span class="ss">()</span> <span class="o">+</span> <span class="s2">"</span><span class="s">;expires=</span><span class="s2">"</span> <span class="o">+</span> <span class="nv">expire</span>.<span class="nv">toGMTString</span><span class="ss">()</span><span class="c1">;</span> } <span class="k">else</span> <span class="k">if</span> <span class="ss">(</span><span class="nv">stTodo</span><span class="o">==</span><span class="s2">"</span><span class="s">read</span><span class="s2">"</span><span class="ss">)</span> { <span class="nv">applet</span>.<span class="nv">databaseCookieSetValue</span><span class="ss">(</span><span class="nv">document</span>.<span class="nv">cookie</span><span class="ss">)</span><span class="c1">; </span> } <span class="nv">setTimeout</span><span class="ss">(</span><span class="s2">"</span><span class="s">CookieHandling()</span><span class="s2">"</span>, <span class="mi">2000</span><span class="ss">)</span><span class="c1">;</span> } <span class="o"></</span><span class="nv">script</span><span class="o">></span> </pre></div> <p></HEAD><br> <BODY onload="CookieHandling()"><br> <APPLET CODEBASE=. CODE=webvisu/WebVisu.class name="WebVisu" width="99%" height="99%" id="webvisuapplet"><br> <param name="archive" value="webvisu.jar,minml.jar"><br> <param name="STARTVISU" value="TEST_VISU"><br> <param name="UPDATETIME" value="200"><br> <param name="USECURRENTVISU" value="FALSE"><br> <param name="USEFIXSOCKETCONNECTION" value="FALSE"><br> <param name="USEURLCONNECTION" value="TRUE"><br> <param name="COMPRESSEDFILES" value="TRUE"><br> </APPLET> <br> </BODY><br> </HTML></p></script>
Hi, I'm quite new on CoDeSys and I'm using it with a Wago 750 849 (I don't know if that's relevant ...)
My question on the multiple visualizations: how can I create a button to jump to different pages
eg I have a fist page: "PLC_VISU" and a second page "second_page"
and where can I find this webvisu.htm?
thanks!
To move from one display page to another you must use a button in each page with the following settings :
In the page called "PLC_VISU" :
- Category Text : for example the name of the page you want to go, or one another text
- Category Input : Check the box "_ to vis. : and with the F2 Function Key, choose the name of the page you want to switch on "second_page"
In the page called "second_page" :
- Category Text : for example the name of the page you want to go, or one another text
- Category Input : Check the box "_ to vis. : and with the F2 Function Key, choose the name of the page you want to switch on "PLC_VISU"
Webvisu.htm is a file in your controler. But you do not need to change it to do what is explained in the previous lines.
Hope this helps you
Hi Japib,
Thanks for the help!