User guide
eWON 500-2001-4001-4002 User Guide - User defined Web site
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 188
10.4.1.1 Examples
• Single Tag update
This example shows how to update one Tag called “Pressure”. There is one hidden form field for the Tag name and its value is "Pressure" which
is the name of the Tag to update.
There is another form field called TagValue, it is a text edit field where the user can enter the new value of the Tag. When the form is shown, the
initial value of the TagValue field is empty.
• Single Tag update with initial value
The only difference between this example and the previous one is the initial value of the TagValue form field. In this case a TagSSI as been
placed in the "value" attribute of the text field. The eWON will replace this placeholder with the current value of the pressure field when the page
is displayed.
• Single Tag update with no-default result page
Again, this is the same example as the first one, here an additional field has be inserted to define which page to show when the FORM update
has been executed correctly. The additional field is hidden, its name is
ResultPageOk and its value is the page to display in case of update success.
• Multiple Tags update
This example shows the syntax for updating more than one Tag at the time. For each TagNameX there must be a corresponding TagValueX. The
first field must have index 1, then the next must follow with an increment of 1.
<form method="POST" action="/rcgi.binrcgi.bin/UpdateTagForm">
<input type="hidden" name="TagName" value="Pressure">
<p>Pressure:
<input type="text" name="TagValue" size="20" value="">
</p>
</form>
<form method="POST" action="/rcgi.bin/UpdateTagForm">
<input type="hidden" name="TagName" value="Pressure">
<p>Pressure:
<input type="text" name="TagValue" size="20" value="<%#TagSSI,Pressure%>">
</p>
</form>
<form method="POST" action="/rcgi.bin/UpdateTagForm">
<input type="hidden" name="TagName" value="Pressure">>
<p>Pressure:
<input type="text" name="TagValue" size="20" value="">
</p>
<input type="hidden" name="ResultPageOk" value="/usr/x.shtm">
</form>
<form method="POST" action="/rcgi.bin/UpdateTagForm">
<input type="hidden" name="TagName1" value="Pressure">
<p>Pressure:
<input type="text" name="TagValue1" size="20" value="">
</p>
<input type="hidden" name="TagName2" value="Speed">
<p>Pressure:
<input type="text" name="TagValue2" size="20" value="">
</p>
</form>