Example: sapgui_is_checkbox_selected
The following example uses sapgui_is_checkbox_selected to confirm a successful change of checkbox state.
// Turn checkbox status off (False)
sapgui_set_checkbox("Movie", "False", "usr/chkWBTABLE-MOVIE", BEGIN_OPTIONAL, "AdditionalInfo=sapgui5022", END_OPTIONAL);
// Output is "Checkbox is not set"
if (sapgui_is_checkbox_selected("Confirm Checkbox State", "usr/chkWBTABLE-MOVIE", LAST)) lr_output_message("Checkbox is set"); else lr_output_message("Checkbox is not set");
// Turn checkbox status on (True)
sapgui_set_checkbox("Movie", "True", "usr/chkWBTABLE-MOVIE", BEGIN_OPTIONAL, "AdditionalInfo=sapgui5022", END_OPTIONAL);
// Output is "Checkbox is set"
if (sapgui_is_checkbox_selected("Confirm Checkbox State", "usr/chkWBTABLE-MOVIE", LAST)) lr_output_message("Checkbox is set"); else lr_output_message("Checkbox is not set");