Bold BI Dashboard designer (Enterprise) supports connecting to datasources through Open Database Connectivity (ODBC).
Note: The ODBC Connector is available in On-Premises Deployment but not in the Syncfusion Managed Cloud Server.
The Dashboard Designer (Enterprise) supports connecting to ODBC data sources through the following two connection modes.
• Data Source Name (DSN).
• Drivers
Create a DSN using the 32-bit driver architecture and Bold BI will retrieve the 32-bit DSN architecture types from the windows registry.
• If Bold BI is installed in IIS, it will only show the system DSN because all applications hosted in IIS are considered to be running on the system user privilege.
By default, IIS (inetinfo.exe) is configured to run in the system account context. However, you can use the services console to change the identity of various services so that they can run in a user account rather than the system account. The system DSN will only work under the hosted application in IIS.
• If the Bold BI is installed in IIS Express, we will list out the system and user DSN from the installed machine. So that you can connect using both the system and user DSN.
ODBC data sources can also be connected through drivers. If Bold BI is installed in IIS Express, list the drivers from the installed machine so that you can connect using the driver.
To configure the ODBC data source, follow these steps:
Click on the Data Sources button in the configuration panel to add a new data connection.
Click CREATE NEW to launch a new connection from the connection panel.
Select the ODBC connection in the connection panel.
NOTE: You can also create a data source from the home page by clicking on the Data Sources menu on the left menu panel and selecting Create Data Source from the data sources page.
After clicking the data source, the NEW DATA SOURCE configuration panel opens. The following ODBC drivers are supported:
Follow the given steps to create an ODBC data source:
Enter a name and description (optional) for the data source.
A drop-down box for ODBC Connection Type.
Choose a DSN name from the drop-down list.
Enter a valid ODBC server username in the UserName text box.
Enter a valid ODBC server password in the Password text box.
Enter a valid ODBC server database name (optional) in the Database text box.
In future, you can edit the connection information using Edit Connection option.
Enter a name and description (optional) for the data source.
Enter a valid ODBC server or host name in the ServerName text box.
Enter the port in which the server is running in Port text box.
Enter a valid ODBC username in the UserName text box.
Enter a valid ODBC password in the Password text box.
Enter a valid ODBC database name in the Database text box.
The schema represents the collection list that is retrieved from the ODBC server. This dialog box displays the list of schemas in a tree view and their corresponding values.
Now, the data design view page with selected table schema opens. Drag the table.
You can use the Code View options for passing query to display data.
Click Save to save the data source with a relevant name.
We have added support for custom attributes and dashboard parameters in the data source connection. You can now connect to the data source using custom attributes or dashboard parameters.
Custom Attribute
Dashboard Parameter
Note: Refer to the Dashboard Parameter Documentation and Custom Attributes Documentation for more details.
If Bold BI is installed in IIS, we will list the system DSN values from the installed machine. By default, the application will be hosted in 32-bit mode in IIS. Therefore, we will only list the 32-bit System DSN values in the Bold BI ODBC connector.
Following steps to connect the 64-bit values:
Type while creating the data source needs to be ODBC.
NOTE: The ability to provide join support is available only during the creation of a new data source. Join in edit connection mode is not supported.
Parameters | Details |
---|---|
Driver optional | string
ODBC Driver Name. Required for Driver Mode |
DsnName required | string
ODBC DSN Name. Required for DSN Mode. |
Servername optional | string
Servername of the connection. Required for Driver Mode. |
Port optional | string
Port number of the connection. Required for Driver Mode.
|
Username required | string
A valid username for the connection |
Password required | string
A valid Password for the connection |
Database optional | string
database which needs to be connected. Required for Driver Mode. |
Schemaname required for table mode | string
Enter a valid Schemaname |
Tablename required for table mode | string
Enter a valid Tablename |
JoinType Required For Join Info | string
Enter a valid JoinType For Example (Inner,Outer) |
LeftTable Required For Join Info | string
Enter a valid Left Table name |
RightTable Required For Join Info | string
Enter a valid Right Table name |
LeftField Required For Join Info | string
Enter a valid Left Table Column Name |
RightField Required For Join Info | string
Enter a valid Right Table Column Name |
Condition Required For Join Info | string
Enter a valid Condition For Example (AND,OR) |
LeftField Required For Join Info | string
Enter a valid Left Table Column Name |
Operator Required For Join Info | string
Enter a Valid Operator For Example (=,>=) |
Value Optional For only Join Info | string
Specifically choose the column values. |
Query required for code view mode | string
Enter a valid Query |
AdvancedSettings optional | string
Additional optional connection parameters can be provided. By default, it is empty. |
CommandTimeout optional | string
Enter a valid Timeout for connection. By default, it is 300 |
Expressions optional | `Array of Objects` |
Parameters | Details |
---|---|
Driver optional | string
ODBC Driver Name. Required for Driver Mode |
DsnName required | string
ODBC DSN Name. Required for DSN Mode. |
ServerName required | string
Server name or Host name of the connection |
Port required | string
Port number used to connect to the postgresql
|
UserName required | string
A valid username for the connection |
Password required | string
A valid Password for the connection |
Database required | string
database which needs to be connected |
Schema required for table mode | string
Enter a valid Schemaname |
CommandTimeout optional | string
Enter a valid Timeout for connection. By default, it is 300 |
Parameters | Details |
---|---|
Name required | string
Name of the Expression
|
Expression required | string
Expression
|
NOTE: To edit a Data Source via API, all parameters are optional. Only the parameter that needs to be changed should be provided.
Parameters | Details |
---|---|
Name required | string
Name of the Expression
|
Expression required | string
Expression
|
Action optional | string
add/delete/edit
By default, it is add.
|
NewName optional | string
For renaming the expression. This is applicable only if the Action is edit
|
"Connection":
{
"Driver": "string",
"Servername": "string",
"Port": "string",
"Username": "string",
"Password": "string",
"Database": "string",
"Schemaname": "string",
"Tablename": "string",
"AdvancedSettings": "string",
"CommandTimeout": "string",
"Expressions" : [{
"Name": "Expression1",
"Expression" : "SUM(numeric expression)"
},
{
"Name": "Expression2",
"Expression" : "UPPER(string expression)"
}]
}
"Connection":
{
"DsnName": "string",
"Username": "string",
"Password": "string",
"Database": "string",
"Schemaname": "string",
"Tablename": "string",
"AdvancedSettings": "string",
"CommandTimeout": "string",
"Expressions" : [{
"Name": "Expression1",
"Expression" : "SUM(numeric expression)"
},
{
"Name": "Expression2",
"Expression" : "UPPER(string expression)"
}]
}
"Connection":
{
"DsnName": "string",
"Username": "string",
"Password": "string",
"Database": "string",
"Tables": [
{
"Tablename": "string",
"Schemaname": "string"
},
{
"Tablename": "string",
"Schemaname": "string"
}
],
"JoinInfo": [
{
"JoinType": "string",
"LeftTable": "string",
"RightTable": "string",
"JoinFieldInfos": [
{
"Condition": "string",
"LeftField": "string",
"Operator": "string",
"RightField": "string",
"Value": "string"
},
{
"Condition": "string",
"LeftField": "string",
"Operator": "string",
"RightField": "string",
"Value": "string"
}
]
}
],
"AdvancedSettings": "string",
"CommandTimeout": "string",
"Expressions" : [{
"Name": "Expression1",
"Expression" : "SUM(numeric expression)"
},
{
"Name": "Expression2",
"Expression" : "UPPER(string expression)"
}]
}
"Connection":
{
"Driver": "string",
"Servername": "string",
"Port": "string",
"Username": "string",
"Password": "string",
"Database": "string",
"Schemaname": "string",
"Tablename": "string",
"AdvancedSettings": "string",
"CommandTimeout": "string",
"Expressions" : [{
"Name": "Expression1",
"Expression" : "SUM(numeric expression)",
"NewName" : "Sum",
"Action": "edit"
},
{
"Name": "Expression2",
"Expression" : "UPPER(string expression)"
"Action": "delete"
}]
}
NOTE: Through the Rest API, the data source can be created or edited with only one table. If different table is provided in edit data source, the table will be replaced. The widgets will be retained only if the schema is same as the previous table.
"Connection":
{
"Driver": "string",
"Servername": "string",
"Port": "string",
"Username": "string",
"Password": "string",
"Database": "string",
"Query": "string",
"AdvancedSettings": "string",
"CommandTimeout": "string",
"Expressions" : [{
"Name": "Expression1",
"Expression" : "SUM(numeric expression)"
},
{
"Name": "Expression2",
"Expression" : "UPPER(string expression)"
}]
}
"Connection": {
"ServerName": "string",
"Database": "string",
"Port": "string",
"UserName": "string",
"PassWord": "string",
"DsnName": "string",
"odbctype": "string",
"Driver": "string",
"schema": "string",
"AdvancedSettings": "string",
"CommandTimeout": "string"
}