cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

How can I know the widget calling a service

dbologna1
1-Visitor

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 3
dmoon
12-Amethyst
(To:dbologna1)

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

dbologna1
1-Visitor
(To:dmoon)

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

dmoon
12-Amethyst
(To:dbologna1)

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

Announcements
Top Tags