Skip to Content
0
Former Member
Nov 30, 2011 at 12:43 PM

HTMLB button actions

113 Views

Dear SDN,

We have htmlb button and it has an onClick event and it is calling an event in controller class DO_Finish_Input method

and now I want to change the htmlb button to a normal HTML button and I need some guidance on this pls.

htmlb Button :

<htmlb:button id      = "approve"
         text          = "Test"
         onClck       = "approve"
/>

when I run the application below is the genrated HTML code and I have got it from view -> source

onclck="if(!sapUrMapi_Button_checkClck('xxx_xxxx_approve',event)){return true;};htmlbEF('htmlbevent.returnValue=false;if (!confirm(\'Are you sure you want to approve these requests?\')) {htmlbevent.cancelSubmit=true;};');return htmlbEL(this,2,'xxx_xxxx_approve:approve');" onkypress="if(!sapUrMapi_Button_checkClck('xxx_xxxx_approve',event)){return true;};htmlbEF('htmlbevent.returnValue=false;if (!confirm(\'Are you sure you want to approve these requests?\')) {htmlbevent.cancelSubmit=true;};');return htmlbEL(this,2,'xxx_xxxx_approve:approve');"

can somebody pls advise how can I change the above to work on a normal html button. appreciate your help.