cancel
Showing results for 
Search instead for 
Did you mean: 

WDDOINIT and URL Parameter

former_member214498
Contributor
0 Kudos

Hi Folks

How can I access the URL parameter in WDDO INIT method of the window. I am trying to use ALL_URL_PARAMETER but its giving me error.

I am using the following code:

data: lo_component type ref to if_wd_component.

lo_application type ref to if_wd_application.

lo_component = wd_comp_controller->wd_get_api( ).

lo_application = lo_component->get_application( ).

lo_application=>ALL_URL_PARAMETERS.

Regards

Waz

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Waz,

You can also do in this way.

You know variables which are attached to the URL right?. Then declare same varibles in HANDLEDEFAULT method of window.Thats all move the received values into some global variable.Which you can access through out the component.

uday_gubbala2
Active Contributor
0 Kudos

Hi Waz,

You would need to call this from within the inbound plug of your window. Something like:

wdevent->get_data( EXPORTING name = '_ALL_URL_PARAMETERS'
                             IMPORTING value  = lt_all_url_param ).

WDEVENT is a default parameter for the DEFAULT inbound plug.

Try go through this [thread |;for more details regarding the same. You can't directly use ALL_URL_PARAMETER in your WDDOINIT as you dont have the WDEVENT being passed to it.

Regards,

Uday

former_member214498
Contributor
0 Kudos

Hi Uday

I have used exactly the same code in HandleDefault method and its giving me correct value. But I have another requirement where I have to populate the screen components based on the current portal used id and that I can do in WDDOINIT method. So now URL parameters have to be captured in WDDOINIT method and for that I tried the code mentioned in my previous post.

Regards

Waz