Excel for the web


Excel for the web


This page outlines the steps to install and configure the CData Connect Spreadsheets add-in for Excel for the web. After installation, Excel for the web is able to pull data from sources that you have connected to your CData Connect Spreadsheets account.

Note: Before you can configure and use Excel for the web with CData Connect Spreadsheets, you must first connect a data source to your CData Connect Spreadsheets account. See Set Up Connection for more information.

CData Connect Cloud customers only: You can also import Virtual Datasets and Derived Views. To create a virtual dataset, follow the instructions in Virtual Datasets. To create a derived view (administrators only), follow the instructions in Creating a Derived View.

Install the Add-In

You can install the Excel for the web add-in from the CData Connect Spreadsheets dashboard or from Excel for the web.

From the CData Connect Spreadsheets Dashboard

  1. Open the Client Tools page of the dashboard.

  2. Locate the Excel for the web tile or use the search bar.

  3. Click Get Started. The Excel for the web add-in page opens.

  4. Click Get it now. If you are prompted, sign into your Microsoft account.

  5. On the Launch page, click try using Office Online.

  6. Click Open in Excel Online.

  7. Authorize the add-in if you are prompted to do so.

  8. In Excel, click Add-ins on the Home tab of the navigation ribbon. The My Add-ins window opens.

  9. Continue to the steps in Connect to CData Connect Spreadsheets.

From Microsoft Excel for the web

  1. Open Microsoft Excel for the web to a new or existing workbook.

  2. Click the File tab on the navigation ribbon.

  3. Click Get Add-ins. In the list of add-ins that appear, click More Add-ins.

  4. Search for CData in the window. In the search results, click Add next to CData Connect Spreadsheets.

  5. Click Continue to agree to the license terms. An authorization dialog opens in your Excel workbook.

  6. Click Authorize.

  7. Enter your credentials and click Continue in the dialog.

  8. Continue to the steps in Connect to CData Connect Spreadsheets.

Connect to CData Connect Spreadsheets

After you install the Excel for the web add-in, follow these steps to connect to your CData Connect Spreadsheets account:

  1. Open the Data tab on the Excel for the web navigation ribbon and click CData Connect Spreadsheets.

    The CData add-in pane appears to the right of your Excel workbook.

Set Up Connection

If you do not yet have the data connection you need for CData Connect Spreadsheets, you need to set one up.

  1. In the add-in pane, click Setup Connection. Allow CData Connect Spreadsheets to display a new window.

    The new window displays the Add Connection screen for CData Connect Spreadsheets.

  2. Select the connector for the data you want to connect to Excel for the web.

  3. Enter your data connection settings. Save and test your connection.

    After you have a successful connection, you can Import Data.

Import Data

To import data from CData Connect Spreadsheets to Excel for the web, follow these steps:

  1. Click Import.

  2. Select an option from the drop down menu: Connections, Virtual Datasets, or Derived Views. Then follow the directions for the option you selected. Note: Only CData Connect Cloud customers can access virtual datasets and derived views.

Import Connections

  1. Select a connection from the drop-down list.

  2. Select either Query Builder to build the query in steps or Custom SQL to enter a query manually.

    • For Query Builder, select a schema (if there are multiple schemas), table, and columns. You can search by column name. If desired, you can also set filters, sorting options, and limits. View the generated query and adjust if necessary.

    • For Custom SQL, enter the SQL Statement in the provided field.

  3. Click Execute.

  4. When prompted, choose to output the data in either the current spreadsheet or a new one.

Import Virtual Datasets (CData Connect Cloud Customers Only)

  1. Select a workspace from the drop-down list.

  2. Select Query Builder to build the query in steps or select Custom SQL to enter a query manually.

    • For Query Builder, select a virtual dataset and the columns to display. You can search by column name. If desired, you can also set filters, sorting options, and limits. View the generated query and adjust if necessary.

    • For Custom SQL, enter the SQL Statement in the provided field.

  3. Click Execute.

  4. When prompted, choose to output the data in either the current spreadsheet or a new one.

Import Derived Views (CData Connect Cloud Customers Only)

  1. Select Query Builder to build the query in steps or select Custom SQL to enter a query manually.

    • For Query Builder, select a virtual dataset and the columns to display. You can search by column name. If desired, you can also set filters, sorting options, and limits. View the generated query and adjust if necessary.

    • For Custom SQL, enter the SQL Statement in the provided field.

  2. Click Execute.

  3. When prompted, choose to output the data in either the current spreadsheet or a new one.

Refresh Data

Once your data is imported, you can set it to periodically refresh automatically. You can also perform a manual refresh of your spreadsheet data. The automatic refresh overwrites any uncommitted data. If you are only reading data, the automatic update is not an issue. If you have enabled auto refresh and are writing data, commit your changes often with the Update button.

You must have the Excel workbook open in the browser in order for the automatic refresh to work properly. In addition, the automatic refresh will not execute if the workbook is idle for over 15 minutes.

  1. On the CData Connect Spreadsheets screen, select Refresh.

  2. Select the data sheet or sheets to refresh.

  3. To manually refresh, click Refresh Now. To set up automatic updates, click Auto Refresh.

Note that the refresh interval is set in hours, and one hour is the minimum interval between refreshes. If the auto-refresh fails, the Excel add-in will attempt the auto-refresh two more times. After the third fail, the next auto-refresh attempt will occur at the next user set interval.

You can also remove a query or queries from the refresh list by selecting the query and clicking Remove.

Update Data

You can push changes from the Excel spreadsheet to the originating data source. Note that in order to update a spreadsheet, the data must contain at least one primary key. You must also have the proper permissions to update the source data.

Be sure to update your data frequently if you are using the auto refresh feature, or your changes may be overwritten.

  1. Make your changes to the Excel spreadsheet.

  2. On the CData Connect Spreadsheets add-in pane, click Update. You can choose to update the entire spreadsheet or just the selected rows. Click Confirm.

Delete Data

You can delete selected records from the Excel spreadsheet, which then deletes the records from the originating data source. Note that in order to delete rows from a spreadsheet, the data must contain at least one primary key. You must also have the proper permissions to delete data from the source.

  1. Select the rows you want to delete and click Delete. You can select any cell(s) in the row and CData Connect Spreadsheets deletes the entire row. CData Connect Spreadsheets prompts if you are sure you want to delete the given number of rows.

    Note: You cannot undo the row deletion.

  2. Click Confirm to continue with the deletion. CData Connect Spreadsheets displays whether it deleted the rows successfully.

Logs

Click Logs to open a dialog that lists the most recent queries, including:

  • The time and date they occurred
  • Their results (success or failure)
  • The contents and parameters of the queries

Advanced Query Settings

When importing data, you can use Filters and Sorting to build your query. For SQL queries, you can use the advanced options Parameterized Queries and Searchable Spreadsheets.

Filters

To add a filter, click the + next to the Filters header. You can add more filters by clicking the + again, and you can delete a filter by clicking the trash can icon next to it.

Each filter has three fields to fill out:

  • Column—select the column from your table that you want to filter.
  • Operator—the operation the filter performs. Options are equals, does not equal, contains, does not contain, less than, less than or equal to, greater than, and greater than or equal to.
  • Value—the value for the filter operation.

For example, if you wanted to retrieve AccountValues above $100,000, you might set the Column to AccountValues, the Operator to greater than, and the Value to 100,000. Then, when you execute the query, only results matching this filter will be returned.

As you enter your filter parameters, the Generated Query at the bottom of the pane automatically updates.

Sorting

To add a sorting rule to your query results, click the + next to the Sort By header. You can add more sorting rules by clicking the + again, and you can delete a sorting rule by clicking the trash can icon next to it.

Each sorting rule requires a Column and a sorting Order (ascending or descending). If you add multiple sorting rules, the results are sorted in the order that the rules appear. The query gives highest sorting priority to the first rule, then the second rule, etc.

As you enter your sorting parameters, the Generated Query at the bottom of the pane automatically updates.

Write Parameterized Queries

You can create dynamic spreadsheets by referencing cells in your custom SQL statement. The Excel for the web add-in executes the statement as a parameterized query. As you change the values in the sheet, the Excel for the web add-in executes a new query.

Create Searchable Spreadsheets

Use a parameterized SELECT WHERE query to create a spreadsheet that dynamically filters the data as you edit cells. The following filter criteria references the @InputSheet!A2 parameter, which is cell A2 of the sheet InputSheet. The @ prefix indicates that Industry is a required parameter.

SELECT BillingState, Name FROM Account WHERE Industry = @InputSheet!A2