Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAP HTML Tags

In SAP CRM Web UI, My requirement is to have a static length for buttons and trigger an event based on a mouseclick on the button. When using THTML tag buttons, i found it to be varying with the length of the text, so i have used HTML tag buttons. The issue here is, I am unable trigger an event using HTML tag buttons. I have defined the event handler and all the code exists to handle the event, but unfortunately only the events raised by THTML tags are getting triggered.Kindly provide an idea to way forward. Please see below for existing code.

.htm page code

------------------------

<input type="button" id="DISPATCHUNITS" value="Dispatch (Additional) Units"  style="height:23px; width:200px"> </input>

<em onclick="QUICKACTION"></em>

Method DO_HANDLE_EVENT

---------------------------------------------

method DO_HANDLE_EVENT.

* Eventhandler dispatching

     CASE htmlb_event_ex->event_server_name.

*     Added by wizard

       WHEN 'QUICKACTION'.                                   "#EC NOTEXT

         EH_ONQUICKACTION( htmlb_event    = htmlb_event

                     htmlb_event_ex = htmlb_event_ex ).

       WHEN OTHERS.

     ENDCASE.

   endmethod.

Not what you were looking for? View more on this topic or Ask a question