on 04-01-2009 9:37 AM
Hi All,
i created two WDA Applications.( like YWDA1,YWDA2 ) . i am using the component WDA2 in WDA 1.and displaying the one view of WDA2 as popup window in WDA1 on action of one of the input element in the view of WDA1 by using the method l_window_manager->create_window_for_cmp_usage
.
I have a button on the view of WDA2 which has appear in the popup window...how can i call the method which has binded to that button....and where should i code that...and i need to assign selected value in the popup window to input elemetn of view WDA1
Please help me to resolve this....
Regards,
Ravi
Hi,
Try with create_window instead of create_window_for_cmp_usage
if the button is in the layout of the view, write the code in the button handler
else if the button which you see is the default button of the popup, subscribe the button first, create an action for it and write the respective code for it in the action handler..
Thanks,
Shailaja Ainala.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can not directly call view's event handler from other component.
create a method in component controller of the second component and in the button click call the component controller method. ( also make the method as interface so that you can call it from other components )
Now, you can call the interfacecontroller's method
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO ZIWCI__VSTX_REBATE_REQ_WD .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_<comp usage name>( ).
l_ref_INTERFACECONTROLLER->Save_Rr(
STATUS = '01' " Zvstxrrstatus
).
save_rr is the method of second component controller
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Arjun,
i follwed the same as u mentioned above......just i map the Interface node to context of view WDA1 ...it is not throwing any error while activating....But While testing it is getting dump and stating that The lead selection has not been set. USE
What could be the problem...How can i resolve that...
Regards,
Ravi
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.