on 06-02-2009 9:52 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.