:::info
Aim:
To describe the relation meaning in ThingsBoard, and what's the different between Contains and Manages.
:::
Outbound & Inbound
image
Outbound relations: from
Vian Wu changed 4 months agoView mode Like Bookmark
Aim: Use custom JS script to open a dashboard state in ThingsBoard dialog component
There exists two ways to reach the goal:Use openDashboardStateInSeparateDialog method in actionsApi
Use elementClick method in actionsApi
Method 1 - openDashboardStateInSeparateDialog()
Custom widgets in ThingsBoard widgets library
<!-- in custom widget -->
<button class="btn" (click)="handleClick()">Open Dialog</button>
// in custom widget
Vian Wu changed 5 months agoView mode Like Bookmark
Role Feature
The role feature is only in the ThingsBoard Professional Edition (TB PE)
A Role contains a list of Resources and a list of allowed Operations for each of those resources. There are two Role types: Generic and Group
Generic Role
Setup how many menu items for the role can use
SelectionResource: menu items
Operation: change owner, CRUD, rpc call, assign to tenant, claim devices
Group Role
Vian Wu changed 5 months agoView mode Like Bookmark
Use attributeServiceself.ctx.attributeService
Check how many methods in attributeService
Create a latestValue-type widget
Use getEntityAttributes method to get the entity attributes
Use saveEntityAttributes method to update the entity attributes
self.onInit = function() {
const entityId = self.ctx.data[0].datasource.entity
Vian Wu changed 5 months agoView mode Like Bookmark
Create an API key
Create an account in Confluent Cloud
Create a key in Confluent Cloud for connection
Use Global access
There will show important credential
API key: ****************
API secret: ***************************************
Vian Wu changed 2 years agoView mode Like Bookmark