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

lrvtc.rotateRow

Retrieves the first row and moves the values to the bottom.

Example Query Functions

Syntax

lrvtc.rotateRow ( sendflag );

Arguments

name Comments
sendflag Specify how the values are added back to bottom. One of:
  • lrvtc.VTSEND_SAME_ROW - Send all the data to the same row.
  • lrvtc.VTSEND_STACKED - The data is sent to available fields at the bottom of each column.
  • lrvtc.VTSEND_STACKED_UNIQUE - If the value of the first field already exists elsewhere in the column, the top field is retrieved and then discarded. Otherwise, data is sent to an available field at the bottom of the column.

lrvtc.rotateRow retrieves the data in the first row and stores them in parameters with the same name as the columns. The data is removed from the first row and moved to the bottom of the columns as specified by the sendFlag.

If there is no data in a cell, the output is NULL.

Return Values

Returns zero on success or one of the Error codes.

Parameterization

All string input arguments can be passed using standard parameterization.

Example

    lrvtc.rotateRow(lrvtc.VTSEND_STACKED);
    lr.logMessage(lr.evalString("Country={Country},City={City}"));