A custom attribute is a piece of code that functions as a parameter and can be replaced by users in a query. The attribute name is replaced by the code, which is saved for each user and used to render the dashboard.
Custom attributes can be defined at three levels:
The user level attribute takes precedence over the other levels. The group and site level attributes can be overridden at the user level. Additionally, the group level attribute can override the site level attribute.
This attribute can be set by the site admin for a user on the user management profile page. The user’s attribute listing will display the attributes inherited from the group and site levels.
This attribute can be set by the site admin for a group on the group profile page. The group’s attribute listing will display the attributes inherited from the site level.
This attribute can be set by the UMS admin for a site on the site details page.
Attributes are name-value pairs associated with users, groups, and sites (tenants).
Name – The name of the attribute.
Value – The value of the attribute
Description – An explanation of the purpose of this attribute.
Encrypt – Option to store the attribute as encrypted in the database, with the value displayed as dots in the grid.
Let’s consider the user James with the custom attribute value configured as Sectors IN (‘Industrial’, ‘Traffic’) and the attribute name as Sector.
For the user Christ, the custom attribute value is configured as Sectors IN (‘Residential’, ‘Commercial’) with the attribute name as Sector.
Custom attributes can be used in the following areas:
Custom attributes can be used in a custom query by manually providing the required custom attribute name in the code view using the syntax:
Syntax: ${{:AttributeName}}
Here, a simple dashboard is created for James, and the data is retrieved based on the condition for the column Sectors
as given in the custom attribute Sectors.
For Christ, the data is retrieved based on the condition for the column Sectors
as given in the custom attribute Sectors.
Note: Please refer to this Datasource connector page for instructions on creating a datasource using a custom attribute.
Custom attributes can be utilized within the Data Source Connection interface to set up the Dynamic Connection String interface for the External API.
Configure the following properties:
Configure the following properties:
IntelliSense support has been implemented for custom attributes, allowing users to type ’$’ within the All SQL data source properties or web data source properties to display the custom attributes.
Note Custom attribute support is not available for connections using SSH or SSL modes.
Configure the following properties:
IntelliSense support has been implemented for custom attributes, allowing users to type ’$’ within the web data source properties to display the custom attributes.
Note Custom attribute support has been incorporated for both internal and external site publishing of data sources. Additional features for downloading and uploading have also been enabled.
When uploading a dashboard to a different site with a custom attribute, ensure that you create the same custom attribute name and its corresponding value.
Use the following syntax for the custom attribute.
Syntax: ${{:AttributeName}}
When a simple dashboard is created, the data is retrieved based on the condition for the column id
as given in the custom attribute sectors.
We have provided custom attribute support for Expression. please refer Expression documentation.
Syntax: ${{:Custom Attribute Name}}
Note: Please refer to this Datasource connector page to create a datasource using a custom attribute.
Publish dashboards across different tenants with different servers. 5. Create a single dashboard template and use it for multiple tenants with different source credentials seamlessly. 6. Maintain unique values for each user using user-level attributes. 7. Maintain common values for specific user groups using group-level attributes. 8. Maintain common values for all users at a site using site-level attributes.
Note
Limitation
Do not allow the same custom attribute to be available in different groups if it is used in the data source.