Skip to main content
May 18, 2017 8:13 AM UTC
Question

How can I know the widget calling a service

Hi all,

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

Many Thanks

BR

Dimitri

3 replies

May 29, 2017 5:36 AM UTC

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 9:02 PM UTC

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

May 30, 2017 12:32 AM UTC

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