Thinlet table in Pocket PC app
Trying to determine what cell is clicked in a thinlet table. I'm aware that a cell is not selectable in the table. I tried using the setMethod to pass a thinlet cell java file that permits access to the XML file.
Here's a sample:
Code:
<CODE class="jive-code jive-java">cell = thinlet.create("cell");
thinlet.setString(cell, "name", String.valueOf(1) + String.valueOf(i));
thinlet.setString(cell, "text", "some data");
thinlet.add(row, cell);
thinlet.setMethod(table, "action", "getSelectedCell(cell)", row,thinlet);
</CODE>
However, object (cell) is null in getSelectedCell.
I'm able to use place the method call in the action attribute of the
XML file, i.e. action="getSelectedCell(item)", which of course returns
the row.
Actually, I would like to get the column if the cell can't be determine from a mouse click. Is this possible if the mouse click event is overriden?
any help is appreciated
Last edited by wrappingduke; 04-19-2008 at 01:57 AM..
|