Skip to main content
May 18, 2017
Question

How can I know the widget calling a service

  • May 18, 2017
  • 1 reply
  • 2268 views

Hi all,

i need to distinguish the activities on a service depending on the widget (id,DisplayName,...) that call it.

Many Thanks

BR

Dimitri

1 reply

5-Regular Member
May 29, 2017

Hi Dimitri,

I am not sure what you mean by that. Do you want to know when you call a service from a widget like "clicked" on a button?

Or do you want to track when services are called from widgets?

Thanks,

Daniel

May 29, 2017

Hi Daniel,

sorry for my delay.

The question is not when but who.

I'm using for a different button the same service. Is it possible, inside the service, know who called it (display name or label of the button)?

Many Thanks

BR

Dimitri

5-Regular Member
May 30, 2017

Hi Dimitri,

You can use contextID for a button widget. When you set the "ContextId" for buttons and pass it to services as a parameter, the service can know who called it.

Regards,

Daniel