Hi SCN Team,
I've come across dozens of examples and trying to experiment. can you please suggest solution to this problem I encountered?
case statement doesn't recognize case event->id, debug not being triggered... see my code below:
LAYOUT TAB:
<htmlb:content design="design2003">
<htmlb:page title = "Main screen ">
<body BGCOLOR="#B5E1D2" >
<h2> <CENTER> SELF SERVICE PASSWORD TOOL </h2>
<!-- Start Call Class to invoke get/post method-->
<!-- Use line below or the one in Event Handler page, both works the same -->
<!-- <form method="post"> -->
<!-- End Call Class to invoke get/post method-->
<P> <CENTER>
<input type=submit name="onInputProcessing(changepassword)" value="Change Password">
<P> <CENTER>
<input type=submit name="onInputProcessing(resetpassword)" value="Reset Password">
<P> <CENTER>
<input type=submit name="onInputProcessing(registersecret)" value="Register Security Question">
</htmlb:page>
</htmlb:content>
EventHandler OnInputProcessing:
* event handler for checking and processing user input and
* for defining navigation
*<!-- Start Call Class to invoke get/post method-->
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
DATA:
w_event TYPE REF TO cl_htmlb_event.
CALL METHOD cl_htmlb_manager=>get_event
EXPORTING
request = runtime->server->request
* fast_exit_event_id =
* fast_exit_event_class =
RECEIVING
event = w_event.
*NOTE:
* Same as: w_event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
*<!-- End Call Class to invoke get/post method-->
*CASE event_id. "Use this when using layout's form method=post
CASE w_event->id.
WHEN 'changepassword'. " HERE I CANT TRIGGER THIS...
navigation->goto_page('changepassword.htm').
WHEN 'resetpassword'.
WHEN 'registersecret'.
WHEN OTHERS.
ENDCASE.
Furthermore, I would like to know the difference between using form method=post inside layout tab (using this allows me to use case event_id)
compare to using the class CALL METHOD cl_htmlb_manager=>get_event to get event and use w_event->id as seen in my other version of code above... thank you.
Jeff