Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

CL_GUI_HTML_CONTROL

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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