cancel
Showing results for 
Search instead for 
Did you mean: 

doubt in CL_HTMLB_EVENT class

Former Member
0 Kudos

iam new to BSP. iam using below code.

DATA: event TYPE REF TO CL_HTMLB_EVENT.

event = CL_HTMLB_MANAGER=>get_event

( runtime->server->request ).

IF event->name = 'button' AND event->event_type = 'click'.

DATA: button_e TYPE REF TO CL_HTMLB_EVENT_BUTTON.

button_e ?= event.

ENDIF.

i checked method get_event it contains importing paramter as "request".it assigned to interface IF_HTTP_REQUEST.in interface i checked for"runtime" variable but i did not find.Can anybody expain me coding event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).

Thanks in Advance,

Suresh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi suresh,

did u set the Onclick Property to layout code

Sri

Former Member
0 Kudos

Hi Sri,

Can you please explain me code

event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).

how runtime->server->request works.

Regards,

Suresh.

former_member188685
Active Contributor
0 Kudos

You can get the server side event information from the request using the get_event method .

Former Member
0 Kudos

using this u can get server side event from request through "get_event" method using class "cl_htmlb_manager"

Former Member
0 Kudos

Hi,

in Get_event method "Request" importing parameter assigned to interface IF_HTTP_REQUEST.

I checked IF_HTTP_REQUEST interface it doesnot contain

"runtime" parameter.

how will code ( runtime->server->request) works means how

interface contain these values.

Regards,

Chowdary.

former_member188685
Active Contributor
0 Kudos

you can even use ( request ) , with out using the

( runtime->server->request ) .

runtime is of type ref to IF_BSP_RUNTIME

server is of type ref to IF_HTTP_SERVER(it is an attribute of runtime)

request is of type ref to IF_HTTP_REQUEST(this is attribute of server )

some times request is not available directly in the event method. if the runtime object is available. then we can use the runtime object and get the request.

runtime->server->request will give the request object.

Former Member
0 Kudos

Hi Vijay,

Thanks for your reply.Where can i find "Runtime" attribute.

Thanks,

Suresh.

former_member188685
Active Contributor
0 Kudos

if it is Page with Flow logic then ...

then you can find that in all the Events, press the Signature Button. you can see the Runtime attribute.

if it is MVC then you can find the Runtime attribute in the Attributes section of the controller class.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Thanks vijay.

Regards,

Suresh