Share this page

# sapgui_grid_selection_changed

Grid Functions

Checks if the data in the selection has changed.

    int sapgui_grid_selection_changed( const char *description, const char *gridID, [args,] LAST );

description | User entered text to aid in understanding script
gridID | Object ID Strings
args | Optional Arguments
LAST | A marker indicating the end of the argument list. Not required if Optional Arguments are used.

The sapgui_grid_selection_changed verification function returns whether the selection has changed.

## Return Values

This function returns True (-1) or False (0).

## Parameterization

You can parameterize all string (char type) arguments.

## Example

In this example, sapgui_grid_selection_changed outputs a message confirming that the selection was changed. In this example, the selection did not change.

Copy code

    sapgui_grid_press_F4("'Overview', F4",
            "usr/cntlBCALVC_TOOLBAR_D100_C1/shellcont/shell",
            BEGIN_OPTIONAL,
                "AdditionalInfo=sapgui1047",
            END_OPTIONAL);

        lr_message("Selection Changed %d",
            sapgui_grid_selection_changed("Changed",
                "usr/cntlBCALVC_TOOLBAR_D100_C1/shellcont/shell",
                LAST)
            );

    Example: Output: Selection Changed 0

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: