Finds a single row and returns the row number (-1 if not found).

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
integer datatable.findone(datatable dataTable, string expression)

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
integer page.<id>.datatable.findone(datatable dataTable, string expression)

Parameters

Name Data Type Description
dataTable DataTable The data table.
expression String The expression.

Return Value

Data Type Description
Integer The row number.

Expand image Remarks

Expand image Example

SXML