Share this page

# Example: sapgui_htmlviewer_send_event

The following example shows the use of sapgui_htmlviewer_send_event.

    // Load the sample

    sapgui_set_ok_code("/ndwdm", LAST );
    sapgui_press_button("ENTER", "tbar[0]/btn[0]", LAST );
    sapgui_tree_select_item("Event processing, REPTITLE",
        "shellcont/shell",
        "000733",
        "REPTITLE", LAST );

    sapgui_tree_scroll_to_item("Event processing, REPTITLE",
        "shellcont/shell", "000733", "REPTITLE", LAST );

    sapgui_tree_double_click_item("Event processing, REPTITLE",
        "shellcont/shell", "000733", "REPTITLE", LAST );

    // Get Event

    sapgui_htmlviewer_send_event("usr/cntlHTML_CONTROL/shellcont/shell",
        "",
        "", "sapevent:SUBMIT_FORM_AS_GET_METHOD?FirstName=John&LastName=Smith",
        BEGIN_OPTIONAL,
            "AdditionalInfo=sapgui1029",
        END_OPTIONAL);

        // Post Event

    sapgui_htmlviewer_send_event("usr/cntlHTML_CONTROL/shellcont/shell",
        "",
        "FirstName=John&LastName=Smith",
        "sapevent:SUBMIT_FORM_AS_POST_METHOD",
        LAST );

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: