on 10-24-2007 7:45 AM
Hello.
Component 1 should call another component 2 as popup.
I used the code wizard for calling the popup. But there is no possibility to pass parameters to the called window. How can I fill the inbound plug in parameters of the called window.??
lo_window = lo_window_manager->create_window_for_cmp_usage(
interface_view_name = 'CREATE'
component_usage_name = 'POLDEF'
* title =
* close_in_any_case = abap_true
message_display_mode =
if_wd_window=>co_msg_display_mode_selected
).
lo_window->open( ).
Further question is how to close the window afterwards ?
Thanks for any help.
Carola
hi carola......
consider comp 2 is going to call comp1.
create another window in comp2.
have a uielement container in it.
emebed the view form comp1 which has to be popped up into it.
now in the main window of comp2 call the window2 of the same comp2.
so you can have a popup of comp2.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
u can use the method DO_DYNAMIC_NAVIGATION like this..for passing the parameter to the plug....
data data_ref type REF TO data.
data : lt_para type wdr_event_parameter_list ,
ls_para type wdr_event_parameter,
lt_para1 type TABLE OF wdr_event_parameter,
FIELD-SYMBOLS : <data> type any.
data l_api_main type ref to if_wd_view_controller .
ls_para-name = 'TRN_TYP'.
create data data_ref type char1 .
assign data_ref->* to <data>.
<data> = 'U'.
ls_para-value = data_ref.
append ls_para to lt_para1.
lt_para[] = lt_para1[].
l_api_main = wd_this->wd_get_api( ).
l_api_main->do_dynamic_navigation(
source_window_name = 'ZYASH02_MAIN'
source_vusage_name = 'VIEW_USAGE_1'
source_plug_name = 'TO_BAPI1'
target_component_name = 'ZYASH02_BAPI'
target_component_usage = 'BAPI_USAGE'
target_view_name = 'ZYASH02_BAPI'
plug_parameters = lt_para
target_plug_name = 'DEFAULT'
target_embedding_position = 'VIEW/CONTAINER').
.
Regards
Yash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
okay, but how can I fill the inbound plug parameters when calling the popup ?
kind regards.
Carola
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi carola.......
in that case, you can access the component controller of comp1 from comp2. you can map the nodes of comp1 and the nodes available in the main window of comp2, so when the button for the popup is clicked, you can set some values for the attributes of the component controller which will automatically be replicated there.
---regards,
alex b justin
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.