Hi,
I'm looking for option to add row to the table control of the dialog template. I created a dialog template and add the table control to it. After that I would like to add some rows to the table one by one and not to use the function setItems of the table control. And also If it is possible to make part of rows editable and part of it not at all.
Thanks.
Hi, in my mind,
you should use getItems then, add your new item in the returned list, then use setItems to rewrite the list in the table.
In order to define editable columns and not editable columns, use the 6th parameter when you define your table :
Table ( int X, int Y, int DX, int DY, String[] columnArray, int[] editorInfo, String[] columnInfo, String Field, int Options )
In the help :
editorInfo
: This one-dimensional array defines the representation or the editor for each column. The array must be of the same length as columnArray.,nl. This parameter can be null, in which case none of the columns in the table are editable. Possible values:
Constants.TABLECOLUMN_DEFAULT : Default behavior
Constants.TABLECOLUMN_SINGLELINE : One line representation of text
Constants.TABLECOLUMN_SINGLELINE_EDIT : One line representation of text, editable
Constants.TABLECOLUMN_MULTILINE : Multi-line representation of text
Constants.TABLECOLUMN_MULTILINE_EDIT : Multi-line representation of text, editable
Constants.TABLECOLUMN_BOOL : Representation as selection box
Constants.TABLECOLUMN_BOOL_EDIT : Representation as selection box, editable
Constants.TABLECOLUMN_FILE_EDIT : One line text display with "..." button for file selection dialog.
Best Regards.
Romain Tricarico