Handle button event of popup created from component controller
I have created a method for created popup in the component controller with button kind 'yes-no'.Now i use it in the view.
Till here all is working fine.
Now i want to use the events which triggers on the popup (yes, no).Any idea how to trigger these buttons action.
The problem i am facing here is: When i use <b>subscribe_to_button_event</b> method it does not working.
Any ideas how to use this.
Points will be sured.
Alex Justin replied
just pass ypour view id to the component controller method.
consider you are having a method m1 in component controller.
this m1 has the codings to call the pop up.
in the view v1 when a button is clicked, this method would be called.
in the import parameters of the method m1 create a parameter to get the view id of type if_wd_view.
so when you call this method from v1 pass this view id and this view id must be given in the subscribe_to_button_event.
alex b justin