Skip to main content
1-Visitor
April 18, 2017
Solved

How to implement delegate type of functionality for button click

  • April 18, 2017
  • 4 replies
  • 3225 views

Hi Team,

I have two buttons in a mashup and want to have only one service associated with both of them. So based on the button click, the context ID can be passed to that service as parameter and based on the service can perform different operations. But in mashup i tried to assign two button's context ID to single service. While assigning second button context ID it is asking to replace binding done for the first button? So please let me know if it is possible to achieve with a single service.

You can even think of a calculator use case passing different two numbers and based on the button click , corresponding operations can be performed inside the service.

Best answer by CarlesColl

On TW 7.4 there's an event router to accomplish this, on previous versions you would have to use two services.

4 replies

1-Visitor
April 18, 2017

On TW 7.4 there's an event router to accomplish this, on previous versions you would have to use two services.

1-Visitor
April 18, 2017

Thanks Carles.

15-Moonstone
October 13, 2017

Hello Krishnan,

Were u able to achieve the calculator function using buttons and event router..?

Thanks

Sunay