Update cookies preferences
Promotic

SetCellEditable - method of the PmgWTable object

Description:
Enable/disable the possibility to edit the cell (eventually the whole columns and rows).
Syntax:
Empty SetCellEditable(Long Row, Long Col, Boolean Value)
Parameters:
Row(Long) If the value is greater or equal 0 then it is a row index (zero-based index, counted including the fixed part).
Value -2 means the last row.
Value -3 sets the value in all rows (counted including the fixed part).
Col(Long) If the value is greater or equal 0 then it is a column index (zero-based index, counted including the fixed part).
Value -2 means the last column.
Value -3 sets the value in all columns (counted including the fixed part).
Value(Boolean) Enable/disable editing.
true - Enable editing
false - Disable editing
Note:
This method is functional only if Interaction property is set to 3.

Cells editing is disabled by default.

It is not possible to set the value -3 in both parameters Row and Col; if the value is set in one parameter, then cannot be used in the other.

This method is also functional in Web panels.
See also:
Example:
Setting the possibility to edit cells in the 8th column (counted including the fixed part)
JavaScriptVBScriptSelect and copy to clipboard

var oTable = pMe.Items("/Table");
oTable.Interaction = 3;
oTable.SetCellEditable(-1, 7, true);

History:
Pm8.02.00: Property CellEditable is replaced by methods GetCellEditable and SetCellEditable.
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.