Hello,
I have an String key/value constraint , and i want to add new values to it. So, i need to read all existing key/value pairs, and add to the new one. But i lost in how to read the values - i only have succeed with names (using getChoices), and i can read the selected value - but not all values..
How to achieve that?
Thank you!
<abs contexttype="opengear" gridsize="20" id="_top" keepalive="false">
<meta>
<params>
<param access="1" constraintstrict="false" constrainttype="STRING_STRING_CHOICE" maxlength="0" name="IP" oid="IP" type="STRING" value="192.168.2.45" widget="radio-toggle">
<constraint key="192.168.2.43">Camera-1</constraint>
<constraint key="192.168.2.45">Camera-2</constraint>
</param>
<param access="1" maxlength="0" name="newIp" oid="newIp" type="STRING" value="" widget="default"/>
<param access="1" maxlength="0" name="newName" oid="newName" type="STRING" value="" widget="default"/>
</params>
</meta>
<param expand="true" height="40" left="60" oid="IP" style="t:style:navigationButton;f:style:navigationButton;" top="40" width="920">
<task tasktype="ogscript">ogscript.debug(this.getValue());</task>
</param>
<abs height="60" left="60" top="100" width="360">
<label height="20" left="0" name="Add/Delete to parameter constrain:" style="txt-align:center;size:Big;" top="0" width="320"/>
<param expand="true" height="20" left="220" oid="newIp" top="40" width="120"/>
<param expand="true" height="20" left="40" oid="newName" top="40" width="140"/>
<label height="20" left="0" name="Name" style="txt-align:west" top="40" width="40"/>
<label height="20" left="200" name="IP:" style="txt-align:west;" top="40" width="20"/>
</abs>
<button buttontype="push" height="20" left="420" name="add" top="140" width="60"/>
</abs>