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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

The service knows information about the widget that has invoked it

dbologna1
1-Newbie

The service knows information about the widget that has invoked it

Hi All,

inside the code of the service is it possible to know information (like label, Display Name an other proerties) about the caller widget.

Many Thanks

BR

Dimitri

2 REPLIES 2
CRArko
17-Peridot
(To:dbologna1)

Hello, Dimitri.

In general, Services run independently of the mashup/widget that calls them. You could design the Service to take parameters you'd pass at runtime when it's invoked, it's unsure if that would do what you want here.

Can you describe the use case you have in mind with more detail?

Thanks,

-- Craig A.

No you don't.

On our case, on highly used services, we added a parameter ( let's call it debugId ) as string where you can set from the Mashup with the Mashup Name, and then log that parameter on the logger.info.

Best Regards,

Carles.

Top Tags