Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

ODBC: Add documents for Refresh & Export as CSV files options in Microsoft Excel #571

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sql-odbc/docs/test/excel_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ There are multiple ways to load data from Elasticsearch in Microsoft Excel.
* [ODBC as Data Source](odbc_data_source_connection.md)
* [Microsoft Query](microsoft_query_connection.md)
* [Query Wizard](query_wizard_connection.md)


## Use Microsoft Excel with data loaded from Open distro for Elasticsearch

* [Refresh the data](refresh_data.md)
* [Exporting CSV files](exporting_csv_files.md)
22 changes: 22 additions & 0 deletions sql-odbc/docs/test/exporting_csv_files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Exporting CSV files in Microsoft Excel

* Load data from Open Distro For Elasticsearch by any using any [connection mode](excel_connection.md).

For this example, [ODBC](odbc_data_source_connection.md) connection with SQL statement `SELECT * FROM kibana_sample_data_flights LIMIT 50` in advanced options is used.

<img src="img/export_loaded_data.png">

* Click on **File** > **Save As**.
* Select Location to Save file.
* Type the file name into the **File name** field.
* Set **Save as type** as **CSV UTF-8(Comma delimited)(*.csv)**.

<img src="img/export_save_as_csv.png" width=600>

* Click **Save**.
* If you have multiple sheets in the workbook, you will get following message

<img src="img/export_multiple_sheets.png" width=600>

* Click on **OK**.
* Data should be exported to selected location in CSV format.
Binary file added sql-odbc/docs/test/img/export_loaded_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/test/img/export_multiple_sheets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/test/img/export_save_as_csv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/test/img/refresh_add_datarow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/test/img/refresh_data_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/test/img/refresh_load_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sql-odbc/docs/test/img/refresh_updated_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions sql-odbc/docs/test/refresh_data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Refresh the loaded data

* Load data from Open Distro For Elasticsearch by any using any [connection mode](excel_connection.md).

For this example, [ODBC](odbc_data_source_connection.md) connection is used with the table `sample_data_for_excel` which has 3 datarows as shown in picture.

<img src="img/refresh_data_preview.png">

<img src="img/refresh_load_data.png">

* Add a datarow in the table `sample_data_for_excel` using kibana.

<img src="img/refresh_add_datarow.png" width=450>

* Click on **Data** > **Refresh All** > **Refresh**.

<img src="img/refresh_updated_data.png">

* Verify the data is updated.