Share this page

# Example: sapgui_table_is_row_selected

The following example uses sapgui_table_is_row_selected to confirm success of a select operation.

    //Click on record tab to select the 6th row of the table

    sapgui_table_set_row_selected("usr/tblRSDEMO02TC_SPFLI",

        "5",

        "True",

        BEGIN_OPTIONAL,

            "WhyDoThis=To get to the other side",

        END_OPTIONAL);

    // Check if select succeeded. Output is "Row selected"

    if (sapgui_table_is_row_selected(

            "usr/tblRSDEMO02TC_SPFLI", // Table ID

            "5",        // Sixth row

            BEGIN_OPTIONAL,

                "WhyDoThis=To check if we're there",

            END_OPTIONAL)

        )

            lr_output_message("Row selected");

        else

            lr_output_message("Row not selected");

    //Click on record tab to unselect the row

    sapgui_table_set_row_selected("usr/tblRSDEMO02TC_SPFLI",

        "5",

        "False", LAST );

    // Check if unset succeeded. Output is "Row not selected"

    if (sapgui_table_is_row_selected(

            "usr/tblRSDEMO02TC_SPFLI",

            "5", LAST)

        )

            lr_output_message("Row selected");

        else

            lr_output_message("Row not selected");

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