cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle link click from portal in WDA

Former Member
0 Kudos

Hi,

Can anyone help me how can we know if a particular link is clicked in portal (The link in portal is a iVIEW for the WDA component)?

In the sense, is there any method to know if the link is clicked in Portal?

Thanks,

Prabhu

Accepted Solutions (0)

Answers (1)

Answers (1)

yesrajkumar
Active Participant
0 Kudos

Hi,

You can get the client environment whether its from portal or R/3 through the following code.

DATA: lr_application TYPE REF TO if_wd_application,

l_client_environment TYPE i.

lr_application = component->get_application( ).

l_client_environment = lr_application->get_client_environment( ) .

IF l_client_environment = '4' ."if_wd_application=>co_client_environment-nwbc.

*The action is from the portal

ENDIF.

Thanks,

Rajkumar.S

Former Member
0 Kudos

Rajkumar,

Thanks for your input. It is really useful.

In my case I have 4 applications for the same component.

Please help how to get the same in this case

Thanks,

Prabhu

yesrajkumar
Active Participant
0 Kudos

Hi,

I don know what is your exact requirement but there is a similar operation i have handled in my application.

I have a main component where it has, create request, create planning buttons.

If i click create request button then it calls the request component using the following,

DATA: MR_WINDOW_API TYPE IF_WD_WINDOW_CONTROLLER,

l_api_component TYPE REF TO if_wd_component,

lt_bo_params TYPE wdy_key_value_table,

ls_bo_param TYPE LINE OF wdy_key_value_table.

l_operation TYPE string.

l_operation = 'gotorequest'.

l_api_component = wd_this->wd_get_api( ).

CASE iv_operation.

WHEN 'REQUEST'.

ls_bo_param-key = cl_fitv_navigation=>gc_param_tripcmp..

ls_bo_param-value = cl_fitv_navigation=>gc_value_component_request.

INSERT ls_bo_param INTO TABLE lt_bo_params.

ENDCASE.

CALL METHOD cl_fitv_navigation=>navigate_to_object

EXPORTING

component = l_api_component

window_api = wd_this->mr_window_api

operation = l_operation

business_parameters = lt_bo_params

thanks,

Rajkumar.S