Hey Jerry
In the example below I have built some table types. The first "Table" sets our each row with a <tr> tag and all the collums sit within. The second is our simple grid which lays out objects in order from left to right till the collum limit is hit then lays out the next item on the next line. These are mainly for layout and display though.
The one i suspect your more interested in is the parameter table. This combines 3 parameters to display them as a table. So you will see I have created left middle and right as params and have combined them in order i wanted the columns in a separate param.
When this is applied to the canvas with the table constraint applied it displays as a table. This now has lots of options and wonderful things you can do with it and your params. I've added an option to reorder the rows on the table for you to play with. Manipulating the parameters allows you to change the table. I cant find a clean example right now but I will try and post one here later. But hopefully that gets you started.
J
<abs contexttype="opengear" id="_top" keepalive="false">
<label header="true" height="82" left="207" name="Param Table" style="txt-align:west" top="484" width="333"/>
<label header="true" height="87" left="835" name="Simple Grid Tool" style="txt-align:west;" top="30" width="534"/>
<label header="true" height="75" left="196" name="Table Tool" style="txt-align:west;" top="32" width="359"/>
<meta>
<params>
<param access="1" maxlength="0" name="Left Column" oid="Left" precision="0" type="STRING_ARRAY" widget="default">
<value>Left Top</value>
<value>Left Middle</value>
<value>Left Bottom</value>
</param>
<param access="1" maxlength="0" name="Right Column" oid="Right" precision="0" type="STRING_ARRAY" widget="default">
<value>Right Top</value>
<value>Right Middle</value>
<value>Right Bottom</value>
</param>
<param access="1" maxlength="0" name="Middle Column" oid="Middle" precision="0" type="STRING_ARRAY" widget="default">
<value>Middle Top</value>
<value>Middle Middle</value>
<value>Middle Bottom</value>
</param>
<param access="1" constrainttype="STRING_CHOICE" name="Table" oid="0x2" precision="0" type="INT16" value="1" widget="table">
<constraint>Left</constraint>
<constraint>Middle</constraint>
<constraint>Right</constraint>
</param>
</params>
</meta>
<table height="419" left="122" top="97" width="638">
<tr>
<label colspan="1" fill="both" name="Top Left" rowspan="1" style="txt-align:west" weightx="1.0" weighty="1.0"/>
<label colspan="1" fill="both" name="Top Middle" rowspan="1" style="txt-align:west" weightx="1.0" weighty="1.0"/>
<label colspan="1" fill="both" name="Top Right" rowspan="1" style="txt-align:west" weightx="1.0" weighty="1.0"/>
</tr>
<tr>
<label colspan="1" fill="both" name="Middle Left" rowspan="1" style="txt-align:west" weightx="1.0" weighty="1.0"/>
<label colspan="1" fill="both" name="Middle Middle" rowspan="1" style="txt-align:west" weightx="1.0" weighty="1.0"/>
<label colspan="1" fill="both" name="Middle RIght" rowspan="1" style="txt-align:west" weightx="1.0" weighty="1.0"/>
</tr>
<tr>
<label colspan="1" fill="both" name="Bottom Left " rowspan="1" style="txt-align:west;" weightx="1.0" weighty="1.0"/>
<label colspan="1" fill="both" name="Bottom Middle " rowspan="1" style="txt-align:west" weightx="1.0" weighty="1.0"/>
<label colspan="1" fill="both" name="Bottom Right" rowspan="1" style="txt-align:west" weightx="1.0" weighty="1.0"/>
</tr>
</table>
<simplegrid cols="3" height="421" left="851" rows="3" top="100" width="639">
<label name="Top Left" style="txt-align:west"/>
<label name="Top Middle" style="txt-align:west"/>
<label name="Top Right" style="txt-align:west"/>
<label name="Middle Left" style="txt-align:west"/>
<label name="Middle Middle" style="txt-align:west"/>
<label name="Middle Right" style="txt-align:west"/>
<label name="Bottom Left" style="txt-align:west"/>
<label name="Bottom Middle" style="txt-align:west;"/>
<label name="Bottom Right" style="txt-align:west"/>
</simplegrid>
<param expand="true" height="105" left="93" oid="0x2" showlabel="false" top="587" width="564">
<config key="w.reorder">true</config>
</param>
</abs>
------------------------------
Jack Horry
Product Manager
DashBoard, Interstellar, PowerPlay, Lightning
Ross Video | Living Live
------------------------------
Original Message:
Sent: 03-22-2022 17:44
From: Jerry Burianyk
Subject: Simple Data Entry to a table or grid
Hi
Are there any examples, code snippets, etc. showing:
-Creating a table of n columns where I can manually enter table content (I know - what is this type info in stuff?)
-Being able to add and/or delete rows
-pick a row and selectively store individual column data to a variable
Any direction, comments(helpful) on the above would be greatly helpful to an extreme non-programmer (but a decent monkey-see / monkey-do person)
------------------------------
JerryB
------------------------------