Share this page

# Example: sapgui_table_set_checkbox

The following example uses sapgui_table_set_checkbox to select, then clear a checkbox.

    /*Click on "Visible/Hidden" checkbox to select it */

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

        "usr/tblRSDEMO02TC_COLS",

        "0",

        "15",

        "True",

        BEGIN_OPTIONAL,

            "OriginalState=False",

            "AdditionalInfo=sapgui1048",

        END_OPTIONAL);

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

    if (sapgui_table_is_checkbox_selected("Is box Selected?",

        "usr/tblRSDEMO02TC_COLS", // Table ID

        "0", // First row

        "15", // Sixteenth column

        LAST)

    )

        lr_output_message("Selected");

    else

        lr_output_message("Not Selected");

    /*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

    Selected" */

    if (sapgui_table_is_checkbox_selected("Is box Selected?",

        "usr/tblRSDEMO02TC_COLS",

        "0",

        "15",

        LAST)

    )

        lr_output_message("Selected");

    else

        lr_output_message("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: