on 05-16-2011 11:09 AM
Hi Experts,
I use portal absolute navigate and how could I get the parameter in the recevier dynpro program? Is there any example code? Many thanks.
Hi Experts,
I found if the parameters under name DynamicParameter, it could be get in in window handledefault method. The url looks like below.
My original url was generated by UWL. Is there any way to read it? Many thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Baskaran,
My URL is like below.
This URL is generated by sap portal universal worklist(UWL). I set the action of typical work item to lanuch a iview. The uwl lunch the iview successfully but I don't know how to read the the wi_id parameter in the corresponding dynpro program of the ivew. Do you have any suggestion? Many thanks.
Hi, Lao Mei
It's nice to find you at SCN. I'm looking for the solution for transferring parameters during iviews with OBN, it's a coincidence to find your earlier post.
I'm Zhang Jiajun@CSVW MSS project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Darcy,
There could be parameters defined at window level, one could define parameters for an inbound plug of startup type.
when the window is linked to webdynpro application, portal could be sending those obligatory/optional parameters.
Regards
Anurag Chopra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Darcy,
Please check this sample code.. it might helps..
DATA lr_port_manager TYPE REF TO if_wd_portal_integration.
DATA lr_componentcontroller TYPE REF TO ig_componentcontroller .
DATA l_api_componentcontroller TYPE REF TO if_wd_component.
DATA:lt_para type table of WDY_KEY_VALUE,
ls_para type WDY_KEY_VALUE.
lr_componentcontroller = wd_this->;get_componentcontroller_ctr( ).
l_api_componentcontroller = lr_componentcontroller->;wd_get_api( ).
lr_port_manager = l_api_componentcontroller->get_portal_manager( ).
target = 'ROLES://portal_content/com.test/test'.
ls_para-key = 'ZTEST'.
ls_para-value = ls_wbs-wbselement.
APPEND ls_para to lt_para.
CALL METHOD lr_port_manager->navigate_absolute
EXPORTING
navigation_target = target
navigation_mode = navigation_data-navigation_mode
window_features = navigation_data-window_features
window_name = navigation_data-window_name
history_mode = navigation_data-history_mode
target_title = navigation_data-target_title
context_url = navigation_data-context_url
post_parameters = 'X'
use_sap_launcher = abap_true
business_parameters = lt_para
launcher_parameters = launcher_parameter_list.
Also Check this..
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e4/f86f4132f15c58e10000000a1550b0/content.htm
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
You can write the code in the recieving dynpro applications method.
and it will give you the parameters recieved.
write this code in the handledefault method of the web dynpro application.
data lt_params TYPE tihttpnvp.
data ls_params type IHTTPNVP.
wdevent->get_data( EXPORTING name = '_ALL_URL_PARAMETERS'
IMPORTING value = lt_params ).
data name type string.
data val type string.
"read the table lt_params now to get the value of all the parameters
loop at lt_params into ls_params.
" name of the parameter ls_params-name.
"value of the parameter ls_params-value.
endloop.
thanks
sarbjeet singh
Hi sarbjeet,
>
> Thanks for your reply. You method works for normal url parameter. But for portal navigation, the parameter table is empty.
if you know the portal event's parameter name then you can get it by using the Get_String( ) method of WD_event
go to this link
http://help.sap.com/saphelp_nw70/helpdata/en/f6/7d6f4151dc5758e10000000a1550b0/frameset.htm
adn there you can see the code
method ONACTIONRECIEVE_CUSTOMER_ID .
data: EVT_NAME type STRING,
CUST_ID type SCUSTOM-ID.
EVT_NAME = WDEVENT->GET_STRING( NAME = 'PORTAL_EVENT_NAME' ).
if EVT_NAME = 'showCustomer'.
CUST_ID = WDEVENT->GET_STRING( NAME = 'PORTAL_EVENT_PARAMETER' ).
WD_COMP_CONTROLLER->SHOWCUSTOMER( CUSTOMER_ID = CUST_ID ).
endif.
endmethod.
here we are geting the value of portal event parameter in the variable CUST_ID.
have you tried this
thanks
sarbjeet singh
Hi sarbjeet,
Thanks a lot for your quick reply. But I just use portal absolute navigate, not portal event.
The url looks like below:
I Debug in window handledefault method, but there is no data for ALLURL_PARAMETERS.
Do you have any suggestion? Many thanks.
Edited by: Darcy Mei on May 18, 2011 4:40 AM
Hi Kris,
Thanks a lot for your reply. But I just use portal absolute navigate, not portal event.
The url looks like below:
I Debug in window handledefault method, but there is no data for ALLURL_PARAMETERS.
Do you have any suggestion? Many thanks.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.