Enable everyone in your organization to access their data in the cloud — no code required.
Learn More →Enable the Basecamp JDBC Driver in KNIME
Use standard data access components in KNIME to create charts and reports with Basecamp data.
One of the strengths of the CData JDBC Driver for Basecamp is its cross-platform support, enabling integration with major BI tools. Follow the procedure below to access Basecamp data in KNIME and to create a chart from Basecamp data using the report designer.
Define a New JDBC Connection to Basecamp Data
- Install the Report Designer extension: Click File -> Install KNIME Extensions, and filter on "Report".
- In a new workflow, click File -> Preferences and expand the KNIME -> Databases node to add cdata.jdbc.basecamp.jar. The driver JAR is located in the lib subfolder of the installation directory.
-
In the Node Repository view, expand the Database -> Read/Write node and drag a Database Reader onto the workflow editor.
-
Double-click the Database Reader and set the following properties:
- Database Driver: In the menu, select the driver name, cdata.jdbc.basecamp.BasecampDriver
Database URL: Enter the connection properties. The JDBC URL begins with jdbc:basecamp: and is followed by a semicolon-separated list of connection properties.
Basecamp uses basic or OAuth 2.0 authentication. To use basic authentication you will need the user and password that you use for logging in to Basecamp. To authenticate to Basecamp via OAuth 2.0, you will need to obtain the OAuthClientId, OAuthClientSecret, and CallbackURL connection properties by registering an app with Basecamp.
See the Getting Started section in the help documentation for a connection guide.
Additionally, you will need to specify the AccountId connection property. This can be copied from the URL after you log in.
Built-in Connection String Designer
For assistance in constructing the JDBC URL, use the connection string designer built into the Basecamp JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.basecamp.jar
Fill in the connection properties and copy the connection string to the clipboard.
When you configure the JDBC URL, you may also want to set the Max Rows connection property. This will limit the number of rows returned, which is especially helpful for improving performance when designing reports and visualizations.
A typical JDBC URL is below.
jdbc:basecamp:User=test@northwind.db;Password=test123;
- User Name: The username used to authenticate.
- Password: The password used to authenticate.
- SQL Statement: Enter an SQL query in the SQL Statement box or double-click a table. This article uses the query below to create a chart:
SELECT Name, DocumentsCount FROM Projects
-
Test the connection by clicking Fetch Metadata.
-
Connect the Database Reader to a Data to Report node to supply the dataset to a range of data visualization controls. Click Execute and then click Edit Report at the top of the workflow to open the report designer perspective.
-
You can now generate reports based on live data. To create a chart, drag the chart control from the palette to the report designer. In the resulting wizard, you can use the filtering and aggregation controls available in KNIME.
Troubleshooting
The following list shows how to resolve common errors:
- Encountered duplicate row Id "Row1": To resolve this error, add the following to the knime.ini file located in your KNIME installation directory:
-Dknime.database.fetchsize=0