lrvtc.updateMessage

replaces the data in a field.

ExampleData Update Functions

Syntax

lrvtc.updateMessage ( columnName, rowIndex , value );

Arguments

nameComments
columnNameThe column to write to.
rowIndexThe number of the row. The first row has index 1.
valueThe value to set the field to.

lrvtc.updateMessage writes the value to the field specified with the column name and row index, overwriting the contents of the field.

Return Values

Returns zero on success or one of the Error Codes.

Parameterization

All string input arguments can be passed using standard parameterization.

Example

    var rc, row_number;
    ....
    // Write to the last row
    row_number = lrvtc.columnSize("C_ID");
    rc = lrvtc.updateMessage("C_info", row_number, "{p_cid}_info_updated");
    lr.logMessage("update_message rc="+ rc);