Tree View Column - SetValueAt Method

Set the value of a cell at the specified row

Member of Tree View Column (PRIM_TVCL)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)BooleanTrue if the value was applied
Row*InputIntegerRow in which to apply the value
Value*InputVariantValue to apply

Details

SetValueAt can be used to update a value in a list cell.
 
This allows a value to be set without needing to use LANSA list commands such as UPD_ENTRY, and without needing to know the fields being used as the source of a column.
 
The entry must exist in the list before it can updated. If it doesn't, SetValueAt will return a False.

Example

Using SetValueAt. If it fails the code inside the IF will be executed.
If (*Not #Column.SetValueAt( #Row #Value ))
 
   * Update of cell failed
 
Endif

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2