03-24-2008 12:31 AM
Hi all,
i have problems with the CL_GUI_HTML_CONTROL, especially with the method: DISPATCH
I use the method to trigger the SAPEVENT, but i get the exception "CNTL_ERROR" (mesage CNDP 006); the trigger is part
of an PAI function.
CALL METHOD cs_scr0010-html_viewer->dispatch
EXPORTING
cargo = ''
eventid = cl_gui_html_viewer=>m_id_sapevent
is_shellevent = co_false
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
I need the event to get the value of an input box which is embedded in the html document.
What is necessary to use this method; other methods to initialize the control?
Regard,
Andreas
06-28-2008 5:52 PM
Solved the problem by my own...
(1) create your own CL_GUI_HTML_CONTROL class
(2) create a new method which calls the private function to execute a javascript function in the html template
(3) add an javascript function to the html template which executes "submit();"
(4) call the javascript function via the control method
(5) call the dispatch method of the html control
Regards
Andreas
Edited by: Andreas Sertl on Jun 28, 2008 6:53 PM