cancel
Showing results for 
Search instead for 
Did you mean: 

Event is getting captured in each view.

Former Member
0 Kudos

Hi,

I have a reuseable buttons view in my application. On click of any button I am firing a event with button name as aparameter.

Now I have a tabview. Each tab has a view container and hold a view. To capture button even each button has the handler method in it.

But When the button is clicked each handler in the view getting fired, but only visible view should get the call?

Please help.

What is the other alternative other than setting the view name in context?

Thans,

Prosun.

Accepted Solutions (0)

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

you can not stop this, however you can have a check in each event handler to make sure the view is active, this you can achieve by reading the selected tab.

Abhi

Former Member
0 Kudos

Yah , I know that.

But it will be not good for performance wise.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Object Instance Floorplan (OIF) looks to be ideal for this requirement.

FPM provides you all this functionality, you need to just implement Interfaces in your UI and the methods automatically gets called by the FPM

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452...

Abhi