Use c8y DatapointSelectorService modal and give an asset as context

I would like to use the data point selector as a modal and give it the context of a specific device when it opens.
Is this possible?
When I use the modal um I have to call the following service:
http://resources.cumulocity.com/documentation/websdk/1015.0.1/ngx-components/injectables/DatapointSelectorService.html

There is no contextAsset. The component: Web SDK documentation allows to give a contextAsset.

Regards Christof

You can just pass contextAsset to the selectDataPoints method of DatapointSelectorService:

this.selectDataPoints({ contextAsset: { id: '123' } });

This works. Many thanks.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.