Share this page

# Example: sapgui_table_is_checkbox_selected

The following example uses sapgui_table_is_checkbox_selected to confirm success of the select action.

    /*Click on "Visible/Hidden" check box to select it */

    sapgui_table_set_checkbox("(0, 'Invisible')",

        "usr/tblRSDEMO02TC_COLS",

        "0",

        "15",

        "True", LAST );

    /* Now check the status. Output is "Checked" */

    if (sapgui_table_is_checkbox_selected("Is box Checked?",

        "usr/tblRSDEMO02TC_COLS", // Table ID

        "0", // First row

        "15", // Sixteenth column

        LAST)

    )

        lr_output_message("Checked");

    else

        lr_output_message("Not Checked");

    /*Click again on check box to clear it */

    sapgui_table_set_checkbox("(0, 'Invisible')",

        "usr/tblRSDEMO02TC_COLS",

        "0",

        "15",

        "False", LAST );

    /* Now check the status. Output is "Not Checked" */

    if (sapgui_table_is_checkbox_selected("Is box Checked?",

        "usr/tblRSDEMO02TC_COLS",

        "0",

        "15",

        LAST)

        )

            lr_output_message("Checked");

        else

            lr_output_message("Not Checked");

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: