Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The use case is to overwrite a cell value in a graphical table such as Interactive Table (or Free Table*).

In this example we set values for the first three columns, which are a CheckBoxesColumn, RadioBoxesCoulmn and TextFieldsColumn --- it is important to note, that setting values is only possible for these user controllable types of columns!

image-20240910-131944.png

Also important to use the table model for setting the values and invalidate the Table Graph object at the end.

(It is not crucial but better activate the “Script configures user interface“ setting in the Script.)

InteractiveTableGraph itg = jC.getComponentByName("ITG:1"); //change "ITG:1" to 
InteractiveTableGraphModel model = itg.getModel();
model.getColumn(0).setModelValue(2, true);
model.getColumn(1).setModelValue(3, true);
model.getColumn(2).setModelValue(4, 3.14159);
itg.invalidateContent();

*if you have a Free Table Graph instead of an InteractiveTableGraph use FreeTableGraph & FreeTableGraphModel.

  • No labels