Asela
(Asela Neligama)
1
Hi all,
I have 2 questions about Tables.
-
Is there a way to
set data to a specific cell
in a Table ? (rather than feeding an Object which sets data to the whole row)
-
Is there a way to
get data of a specific cell
in a table ?
Thanks in advance.
Cheers,
Asela.
Lawal
(Lawal Olufowobi)
2
Sure you can .
Item item = table.getItem(itemId);
item.getItemProperty(DESIRED_PROPERTY).setValue( newValue);
OR
item.getItemProperty(DESIRED_PROPERTY).getValue();
in the second case.
Dilpreet
(Dilpreet Singh)
3
Hi Ranjit
Desired_Property is the Column header of the table you want to update.
-D.
Dilpreet
(Dilpreet Singh)
4
Hi Ranjit,
yes , you can manipulate the column values specifing the column header.
D.