on 09-01-2008 3:31 PM
We have a hierarchical application in which we communicate
through the Windows components.
For the extension of the project we have created a new component
(ZCRM_TELEFONIA), which call from the central component
(ZGIIM_TMP4) or father, communication between the components perform
through plugs, to communicate between two components.
In this case we have the components to communicate ZCRM_TELEFONIA
with any component, we do so as follows, from
outplungplug launched a sight to communicate with the window
same component, which receives a inboundplug. This communication
if done properly run of form ZCRM_TELEFONIA
independent. But if we run from it and ZGIIM_TMP4 call
ZCRM_TELEFONIA this communication does not work, so we can not
communicate with other components.
Does anyone have any idea?
thanks in advance
hi,
I think you have created application for ZCRM_TELEFONIA component. if so just remove that application and activate the component. Then use ZCRM_TELEFONIA as used component in ZGIIM_TMP4(parent component).
It will work fine.If you think i have not clearly understood your problem please inform me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
To which component you have created Application.
for ZCRM_TELEFONIA
or
ZGIIM_TMP4
if you created application for both components independently , then keep only one application and remove the other.Exceute the component through that application so that you can navigate from parent component to child component. If the child component is also having application , it doesn't navigate from parent to child component.
Edited by: Ramanan Panchabakesan on Sep 2, 2008 11:13 AM
You have two components and you want to call from one view of one component to the other view of other component.
then use exit plug of first component window.
write the code to fireplug when ever you want to call the second component.
check this code.
1.Create a exit plug for window.
window->outboundplugs->give plug type(exit)
2.write this code to fire the plug
Data Declarations
DATA:
lr_ref TYPE REF TO ig_ztest,
str TYPE string.
**Get the URL of the Application
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = ztest_app2
IMPORTING
out_absolute_url = str.
**Reference of Window
lr_ref = wd_this->get_ztest_ctr( ).
Fire Exit Plug
lr_ref->fire_go_exit_plg(
url = str
).
This will solve your problem.
also check this WIki
The main component is ZGIIM_TMP4, ZGIIM_TMP4 calls ZCRM_TELEFONIA.
METHOD onactionabrir_llamada_salien .
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
IF lo_window IS INITIAL.
lo_window = lo_window_manager->create_window_for_cmp_usage(
interface_view_name = 'ZCRM_TELEFONIA'
component_usage_name = 'TELEFONIA'
title = 'Nueva llamada saliente'
* close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
).
ENDIF.
lo_window->open( ).
ENDMETHOD.
Hi,
Thanks to all at the end he opted to implement it with events.
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can u explain clearly what to you want to do.. Do u want to communicate between two independant component windows through the plugs ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is that I have a component that call from A to B component as follows,
method ONACTIONABRIR_LLAMADA_SALIEN .
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window_for_cmp_usage(
interface_view_name = 'WINDOW_NAME'
component_usage_name = 'A'
title = 'Nueva llamada saliente'
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
).
lo_window->open( ).
endmethod.
And after making the call, once open component A, does not work that I have created a plug from a view of this component in the same window.
Thanks in advance
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.