The service knows information about the widget that has invoked it
Jan 19, 2018
03:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 19, 2018
03:52 AM
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
Labels:
- Labels:
-
Mashup-Widget
-
Troubleshooting
- Tags:
- widgets
2 REPLIES 2
Jan 26, 2018
11:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 26, 2018
11:48 AM
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.
Jan 27, 2018
04:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 27, 2018
04:03 AM
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.
