Download IQEYE Reference Manual

Transcript
Overlay List
1
2
3
4
$LIST($O(1.2.9.2)) expands to 1;2;3;4 and the text between the second $LOOP command and the
closing parenthesis is repeated once for each element in the list (each overlay). The list elements are
substituted for $V(i) in each iteration.
Using OIDs with an Index Value
As mentioned in the previous section, some OIDs need an index value. Using the list/iterator function, you
could set the text for all overlays:
<form method=”Post”>
$LOOP(i,$LIST($O(1.2.9.2)),
Set text for overlay $V(i) to
$O(1.2.9.1.9.$V(i),T)
)
<input type=”Submit” value=”Send Settings”>
</form>
In this case, OID 1.2.9.2 generates a list of all of the overlays. For each overlay that is listed, an editable (note
the “T” in the $O operator) text field is shows the text of the overlay.
Explicitly Specifying an Index Value for a Page
Variables can be defined by adding a modifier to the URL of a page. The format of the modifier is:
?varname1=<value1>&varname2=<value2>...
So if you have a line in a page called overlay.html.dp that says:
This overlay number = $V(index)
And you link to it from another page with:
<a href=”overlay.html?index=1”>Configure Overlay 1</a>
The output of overlay.html.dp would be:
This overlay number = 1
Combining everything that has been explained so far about iteration and index numbers, the following code
lets the user configure any of the 4 possible overlays:
Page 166 of 190