on 04-20-2008 2:08 PM
Hi,
i have an WD application which uses FPM. i have a parameter in my application.
i pass some value in the parameter from the url and i am catching the parameter in my HANDELDEFAULT method of the window. but the value of the parameter is null.
can you please tell me why?
how do i get the values of the parameter.
please reply soon.
Thanks & Regards,
Ritwik.
hi
if u r using FPM u can catch the parameters in the any one of the FPM standard methods based on ur requirement.
here is the code how u get the values
DATA: lo_fpm_parameter TYPE REF TO if_fpm_parameter.
data lo_idr type ref to if_fpm_idr.
data lo_fpm type ref to if_fpm.
data chk type string.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_idr ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_idr ).
wd_this->gl_fpm_parameter = wd_this->gl_fpm->mo_app_parameter.
CALL METHOD wd_this->gl_fpm_parameter->get_value
EXPORTING
iv_key = 'CHECK'
IMPORTING
ev_value = chk
er_value =
.
CHECK is the parameter iam passing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi chythanya,
I have used the code that u have suggested, but i am getting a null exception when in the following lines
1. lo_fpm = cl_fpm_factory=>get_instance( ).
lo_idr ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_idr ).
2. wd_this->gl_fpm_parameter = wd_this->gl_fpm->mo_app_parameter.
Do you have any solution for this?
Well,
in order to catch URL parameters, consider the following:
-URL parameter can only be caught in HANDLEDEFAULT of you default Window.
-URL parameters should be of type STRING
-name of variable must be identical to URL parameter name
-variable is inbound parameter of default plug.
-variable must be set ás
-default plug must be set as "startup" and "interface"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.