on 02-18-2010 3:06 PM
Hallo ABAP-Developers,
I need to get the URL calling-parameters for my WDC before the HANDLEDEFAULT-Method of the Main-Window is called.
I need it in the WDDOINIT-Method.
Following Code in my WDOINIT-Method to read the param 'IM_WDC_NAME':
METHOD wddoinit.
DATA:
lr_http_request TYPE REF TO cl_http_request,
l_comp TYPE string.
CREATE OBJECT lr_http_request.
l_comp = lr_http_request->if_http_request~get_uri_parameter( name = 'IM_WDC_NAME' ).
ENDMETHOD.
This is not working (var 'L_COMP' is empty).
Does anyone know a solution?
Thanks in advanced!
Regards,
V0id
If you are using FPM( Floor Plan Manager ) to create Application Configuration for your webdynpro component , then you can fetch URL parameters in DOINIT of component controller...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You should not create the object for method cl_http_request. We should get it from wdr_task class. But that is not rite solution. To get the values in the wddoinit method of the first view. Follow these steps.
1. Embed the empty view to the window.
2. Make the empty view as the default view.
3. Get the values of the URL Parameters in the window wddefaulthandle method to the attributes of the Comp controller.
4. Fire a outbound plug which has a connection to the inbound plug of the first view(not the empty view).
5. Values will be available in the wddoinit of the first view.
Ranganathan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>>Hi,
>>>
>>>You should not create the object for method cl_http_request. We should get it from wdr_task class. But that is not rite solution. To get the values in the wddoinit method of the first view. Follow these steps.
>>>
>>>1. Embed the empty view to the window.
>>>2. Make the empty view as the default view.
>>>3. Get the values of the URL Parameters in the window wddefaulthandle method to the attributes of the Comp controller.
>>>4. Fire a outbound plug which has a connection to the inbound plug of the first view(not the empty view).
>>>5. Values will be available in the wddoinit of the first view.
>>>
>>>Ranganathan.
Hello Ranganathan,
Both answers are not satisfying, but I will stick to your solution.
For my use-case it works fine.
Thanks, my question is anwered!
Regards, V0id.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.