Getting & setting values of a Table cell...

Hi all,

I have 2 questions about Tables.

  1. 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)

  2. Is there a way to
    get data of a specific cell
    in a table ?

Thanks in advance.

Cheers,
Asela.

Sure you can .


Item item = table.getItem(itemId);
item.getItemProperty(DESIRED_PROPERTY).setValue( newValue);

OR


item.getItemProperty(DESIRED_PROPERTY).getValue();

in the second case.

Hi Ranjit
Desired_Property is the Column header of the table you want to update.
-D.

Hi Ranjit,
yes , you can manipulate the column values specifing the column header.
D.