Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Handle button event of popup created from component controller

Hi all,

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.

Sanket sethi

Former Member
Former Member replied

hi sanket...

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.

--regards,

alex b justin

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question