ColumnUpdateOp Property
The operation to apply to the current column.
Syntax
spsite.getColumnUpdateOp(index, [callback]) spsite.setColumnUpdateOp(index, columnUpdateOp, [callback])
Possible Values
0 (cmoAdd), 1 (cmoDelete), 2 (cmoUpdate)
Default Value
0
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getColumnUpdateOp([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setColumnUpdateOp([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
The operation to apply to the current column. This is only valid when updating the columns on the list or site.
Possible values include:
cmoAdd (0) | cmoAdd will add the column to the list or site. |
cmoDelete (1) | cmoDelete will delete the specified column from the list or site. |
cmoUpdate (2) | cmoUpdate will update the properties of the column on the list or site. |
The size of the array is controlled by the ColumnCount property.
This property is not available at design time.
Data Type
Integer