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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How can I know the widget calling a service

dbologna1
1-Newbie

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
5-Regular Member
(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

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
5-Regular Member
(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

Top Tags