JavaScript Functions > Virtual Table Server Functions for Single Connection (lrvtc) > Alphabetical Listing of Virtual Table Server Functions (Single Server) > lrvtc.updateMessage

lrvtc.updateMessage

replaces the data in a field.

Example Data Update Functions

Syntax

lrvtc.updateMessage ( columnName, rowIndex , value );

Arguments

name Comments
columnName The column to write to.
rowIndex The number of the row. The first row has index 1.
value The 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);