cancel
Showing results for 
Search instead for 
Did you mean: 

passing parameters in FQDN URL of WDA component

Former Member
0 Kudos

hai my dear WDAers,

how can

we pass the parameters from URL and how can we access that paremeter into another view.

regards,

rk

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member605343
Discoverer
0 Kudos

Hello,

reading parameters from an URL is part of IF_HTTP_SERVER (SE24).

Example: Read parameter dest drom URL.


DATA lv_para TYPE string.

* Read Parameter from URL
  lv_para = server->request->get_form_field( name = 'dest' ).

greetz Jens

Former Member
0 Kudos

I am not sure what you mean by passing parameters in FQDN URL.

Is this application called from Portal ? Then you can define parameters in the iView application Parameters.

If you call the application using navigation api then there is a importing parameter lt_business_parameter.

You can define also parameters in the application , open the application and right side pane you can define the parameters.

You can read the parameters in on default plug of the window and save it in component controller attribute, you can read them back from any view in your component.

data lt_all_url_param TYPE tihttpnvp.

wdevent->get_data( EXPORTING name = '_ALL_URL_PARAMETERS'

IMPORTING value = lt_all_url_param ).

wd_comp_controller->gt_all_url_param = lt_all_url_param.

Note: Please read the forum rules once, search the forum before starting your post.