sapgui_grid_get_rows_count

Grid Functions

Retrieves the number of rows in the grid.

int sapgui_grid_get_rows_count( const char *description, const char *gridID, const char *outParamName, [args,] LAST );
description User entered text to aid in understanding script
gridIDObject ID Strings
outparamName Parameter for retrieved number of rows in the grid
argsOptional Arguments
LAST A marker indicating the end of the argument list. Not required if Optional Arguments are used.

The sapgui_grid_get_rows_count data retrieval function gets the number of rows in a grid.

Return Values

This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.

Parameterization

You can parameterize all string (char type) arguments.

Example

This example gets the number of rows in a grid.

char *gridID = "usr/cntlBCALVC_TOOLBAR_D100_C1/shellcont/shell";
sapgui_grid_get_rows_count("Column Count",
        gridID, 
        "paramRowCount", LAST );
Example: Output:
Action.c(45): Notify: Saving Parameter "paramRowCount = 20"
Action.c(45): Grid - The number of rows is 20