---
title: "Export Data v3.0.1"
canonical: "https://servicedesk.maxgeo.com/space/DS/1272184893/Export%20Data%20v3.0.1"
format: markdown
---
> Macro (toc)

The Export Data menu option allows the user to extract and download data from the database. Users can choose from the download types ‘Table’, ‘Layout’, and ‘Scheme’, the option selected then defines the other selections available.

Data can be downloaded in the following formats:

- Microsoft Access
- Microsoft Excel
- Comma Separated Values (CSV)
- Micromine
- Fixed Width text

Note that not all of these options are available for all download selections. Some formats may be incompatible with or inappropriate for the selected item or items to be downloaded. Only formats supported for the current download selection will be shown in the ‘File Format’ selector. 

![image](media://af150327-3462-48ba-901e-3acf46daed99)


A **Settings** option is available, that will allow downloading quoted and non-quoted files for a comma-delimited format.

![image](media://fb56289d-b325-495d-b90b-8d277e532486)

## > Macro (anchor)

Table Option:

If the ‘**Table’** download option is selected, the user can then select the desired file format for the download, and then select the table (or view) from which data will be extracted. When the ‘Download’ button is pressed the content of that table or view will then be downloaded to the user’s computer.  The ‘Download’ button is hidden until a valid option has been selected in all of the required fields. On option for ‘All Columns’ will display for Download Type Table.  When unselected the data downloaded will contain the columns selected and the columns order by the user in the Display option for the grid.  When selected all columns for the table will download.


![image](media://b742e8c1-9734-43b8-a614-7e4d29606b13)


## > Macro (anchor)

Layouts:

The ‘**Layout’** download option presents the same file format options as the ‘Table’ selection, with the addition of a Micromine and fixed Width file format. The user selects the data source as before, which is a table or view in the database. DataShed5 then shows a list of the layouts available for the selected data source. Creating a layout will be covered in the following section. 

If Validate option is selected, application will validate the selected layout and if there is no error or warning you can see Validate status as “**Validation Pass**” or else **Details**. Details link to display details of the error or warnings. And file will be downloaded.

If you don’t select Validate option status will show “<span style="color: #333333">No Validation Checked”.</span> 

Once a layout is selected for the source, the ‘download’ button is available to begin the extract/download of the data.

![image](media://c4eb84ce-b510-4ebd-837d-72c4c5f618a1)


### > Macro (anchor)

> Macro (anchor)

> Macro (anchor)

Creating a layout:

> Macro (anchor)

When creating a new layout, first you need to select layout type, File format and Data Source. Once these are selected a ‘New..’ options is presented under the ‘Layout/Scheme’ drop down. 

![image](media://d5e12b6f-26a8-463e-8b1f-0241c111a4a5)


When the user clicks “**New…**”, it displays the popup window to enter a layout name to be created for selected table. If no name is entered, a warning will appear as per below screen shot.

![image](media://bca6cecc-595a-4d49-a2e7-eb1ad44023b0)

If there is no validation error, the system creates a new layout, and then opens the Export Layout Editor in the pop-up. The Export Layout Editor fields table is empty for the newly created layout.

![image](media://8151b3e4-8bd1-4d46-b555-bcb2d2c61f96)


The system allows the user to add fields individually by clicking + icon on the left corner. When adding a new field, the user can select the field from a dropdown list, and some values such as Name, Data Type, Width, Seq No will be populated by default. The has the ability to change these values.

![image](media://70c0d6bb-62ed-42ee-b2fb-59e62597339b)

Once the field records are added, click the “Save” button to save the layout to the database. Please Note: clicking the “Close” button before “Save”, will lose the data added or changes made to the layout.

![image](media://eed79a25-04b5-4787-bc93-c98fe1a9639c)

By clicking the “Select All” button, the system adds all fields from the selected table to the layout. Once again, click “Save” to save selected records to the database. 

**Please Note:** clicking the “Close” button before “Save”, will lose the data added or changes made to the layout.

![image](media://5ab21af6-fd3a-431f-809a-485facee2983)


By clicking the “Select None” button, the system removes all selected fields for the layout. Once again, click “Save” to save your changes to the database. 

**Please Note:** clicking the “Close” button before “Save” will lose the data added or changes made to the layout.

![image](media://d25bff1d-1b59-4cff-9a1a-9e032097fa42)


To Remove individual fields or multiple fields use the “Delete” bin icon.

The “Delete” bin icon button is disabled when no row is selected. The button will be enabled when the user selects one or more rows.

The user can select one or more rows (by clicking the checkbox) and then click “Delete” bin icon button. 

Once again, click “Save” to save your changes to the database. 

**Please Note:** clicking the “Close” button before “Save” will lose the data added or changes made to the layout.


![image](media://1f3b6c71-f22f-4bfd-a5d7-81b9755d6cae)

Once the user saves the layout successfully a green successful message will appear as per below. You are now able to close the Export Layout Editor without losing any of the changes you have made. 

![image](media://d0689c4d-ff95-48e5-b755-c00ff22c30b9)

### > Macro (anchor)

Copying a layout:

When copying a layout, first you need to select layout type, File format, Data Source and layout. Once these are selected a ‘Action’ drop down appears with options to Copy, Modify, Rename or Delete. Select the ‘Copy’ Action.

![image](media://2dcb06a1-2274-4487-8991-66bb9b61812a)


A popup will be displayed to enter a name for copied layout. 



![image](media://d4b8dff9-ebfa-498d-bd5f-76fbc109c034)

Once the copied layout has been saved the Export Layout Editor will be displayed with the same functionality as creating a layout detail above. The user can customise the layout as required before saving and closing the Export Layout Editor. 

### > Macro (anchor)

Renaming a layout:

When renaming a layout, first you need to select layout type, File format, Data Source and layout. Once these are selected a ‘Action’ drop down appears with options to Copy, Modify, Rename or Delete. Select the ‘Rename’ Action.

![image](media://b5c118fd-7ab1-4df2-800c-42ca655f6d0e)

A popup will be displayed to enter a name for the layout. Once the layout name has been saved, a green successful message is displayed. 

![image](media://4487e79b-118e-4f0e-ab08-f073d5b0f899)

### > Macro (anchor)

Deleting a layout:

When deleting a layout, first you need to select layout type, File format, Data Source and layout. Once these are selected a ‘Action’ drop down appears with options to Copy, Modify, Rename or Delete. Select the ‘Delete’ Action.

Upon selecting the “Delete” option from the action list, the confirm dialog window will be displayed to ask the user for confirmation. 

![image](media://b4a5d2c8-5290-435a-9a16-3999dee57209)

If the user selects “Yes”, the system deletes the selected layout (**RenameTestDHCollar** – as per the above screenshot) and clears it from the Layout/Scheme dropdown. A successful deletion message will be displayed after the process.

![image](media://88d4c964-092c-4c90-b851-61fdd4489052)

if the user clicks “No”, the system will close the confirm dialog and go back to the main screen.

## > Macro (anchor)

Schemes:

The ‘**Scheme’** download option shows a list of pre-defined download schemes that are available. Schemes are created in DataShed, and typically consist of a collection of Layouts for various tables. Schemes can be selected for extraction in either Access or Excel format. 

If the “**Validate”** option is selected, application will validate the selected scheme and if there is no error or warning you can see Validate status as “**Validation Pass**” or else **Details**. Details link to display details of the error or warnings. And file will be downloaded.

If you don’t select Validate option status will show “<span style="color: #333333">No Validation Checked”.</span> 


### > Macro (anchor)

Creating a Scheme:

When creating a new Scheme, first you need to select Scheme Download Type and selecte the ‘New..’ option under the ‘Layout/Scheme’ drop down. 

![image](media://979327b6-85c4-4e71-89ef-314b1972f608)


When the user clicks “**New…**”, it displays the popup window to enter a Scheme name. If no name is entered, a warning will appear as per below screen shot.

![image](media://dc5a011b-f29b-4d71-bc81-278f778ac6b0)

If there is no validation error, the system creates a new Scheme, and then opens the Export Scheme Editor in the pop-up. The Export Scheme Editor fields table is empty for the newly created Scheme.

![image](media://13352ae4-f39e-479f-aade-678add9ebd48)

Users can conveniently select an Export Type and add layouts individually by clicking on the '+' icon located in the left corner. When incorporating a new layout, users have the flexibility to choose from a dropdown list of existing layouts and modify values of the Seq No and Destination Table name. The Seq number is the order by which the Layouts are exported in and the Destination Table Name is the name of the tab or table which will be exported.

![image](media://4fff444b-b0ac-42c0-b222-0cd2a8665156)

Once the field records are added, click the “Save” button to save the Scheme to the database. Please Note: clicking the “Close” button before “Save”, will lose the data added or changes made to the Scheme.

![image](media://854d68ee-573e-4fd2-93aa-14a5c308178c)

By clicking the “Edit” button next to the layout name, the system takes you to the Export Layout Editor which will allow you to edit the Layout while building your scheme. Please refer to the Layout Editor Guide above to learn how to edit this section. Click “Save” to save selected records to the Layout and click ‘Close’ to return to the Export Scheme Editor.

**Please Note:** clicking the “Close” button before “Save”, will lose the data added or changes made to the layout.

![image](media://2072bd9c-fac9-4364-b136-9b222ce47809)


To Remove individual Layouts or multiple Layouts use the “Delete” bin icon.

The “Delete” bin icon button is disabled when no row is selected. The button will be enabled when the user selects one or more rows.

The user can select one or more rows (by clicking the checkbox) and then click “Delete” bin icon button. 

Once again, click “Save” to save your changes to the database. 

**Please Note:** clicking the “Close” button before “Save” will lose the data added or changes made to the layout.

![image](media://581760a6-e2ca-4e65-9771-1dba102bb410)

Once the user saves the Scheme successfully a green successful message will appear as per below. You are now able to close the Export Scheme Editor without losing any of the changes you have made. 

![image](media://123fc627-56c7-4303-9d92-e2743f79d279)

### > Macro (anchor)

Copying a Scheme:

When copying a Scheme, first you need to select Scheme type as well as the Scheme you would like to copy. Once these are selected a ‘Action’ drop down appears with options to Copy, Modify, Rename or Delete. Select the ‘Copy’ Action.


![image](media://3bc0b7fc-6e37-4a28-93db-bab5681700cd)

A popup will be displayed to enter a name for copied layout. 

![image](media://ee885e80-5066-4269-925e-bcb50fae9490)

Once the copied layout has been saved the Export Scheme Editor will be displayed with the same functionality as creating a layout detail above. The user can customise the layout as required before saving and closing the Export Layout Editor. 

### > Macro (anchor)

Renaming a Scheme:

When renaming a Scheme, first you need to select Scheme type as well as the Scheme you would like to rename. Once these are selected a ‘Action’ drop down appears with options to Copy, Modify, Rename or Delete. Select the ‘Rename’ Action.

![image](media://3873872c-56ea-436a-85b3-f6ef142a8704)

A popup will be displayed to enter a name for the layout. Once the layout name has been saved, a green successful message is displayed. 

![image](media://d7c59332-0b42-405f-b4c1-95ee818811be)

### > Macro (anchor)

Deleting a Scheme:

When deleting a Scheme, first you need to select the Scheme type as well as the Scheme you would like to delete. Once these are selected a ‘Action’ drop down appears with options to Copy, Modify, Rename or Delete. Select the ‘Delete’ Action.

Upon selecting the “Delete” option from the action list, the confirm dialog window will be displayed to ask the user for confirmation. 

![image](media://af2af6b2-3fb0-4cab-84bb-5aae0293bf25)

If the user selects “Yes”, the system deletes the selected Scheme and clears it from the Layout/Scheme dropdown. A successful deletion message will be displayed after the process.

![image](media://68d35e78-6826-46ff-9a48-c735ffd895c2)

if the user clicks “No”, the system will close the confirm dialog and go back to the main screen.


### > Macro (anchor)

Sharing a Layout or Scheme:


<span style="color: #333333">If you would like to share a Layout or Scheme with other users, you can check the ‘Share Scheme or Layout’ option when creating your Scheme or Layout. As per the below screen grab. </span>


![image](media://c1deea5d-91a1-486d-8ec7-a73b507f3e46)


<span style="color: #333333">Once The Scheme or Layout has been edited as successfully saved the Scheme or Layout will have a # Infront of their name to display that they are a shared Scheme or Layout.</span>


![image](media://8db6af52-a5ca-4806-9d88-3a9a10d021bc)

## > Macro (anchor)

Downloading a Scheme, Layout or Table:

After a Scheme, Layout or table has been selected, the ‘Download’ link becomes available to begin the download.

![image](media://a5798015-a132-4d97-87a2-ab9df8b01ec9)

On selecting Download, a download table will display as above showing the status of the download. Once the download is complete, the Status will display ‘Downloaded’ when successful or Error when an error occurs. If an error occurs, the user will be able to select the Error link to display details of the error.

Downloads can be queued allowing for multiple downloads to be selected. Each download will be displayed in the table that has been requested and a status will display.  A ‘Cancel’ option will be available for the download that is currently in progress. Selecting the cancel option will cancel the current download and progress to the next download if one has been queued. Selecting the ‘Remove’ button will remove the download from the display list.


![image](media://6df9b2d3-74d1-42fc-9ec8-97faade4a8c5)



**Validation Check Rules:**

- <span style="color: #000000">Check export layout data source exists in MDS.</span>
- <span style="color: #000000">Check exported fields are mapped to the correct datatype.</span>
- <span style="color: #000000">Check export layout fields exist in MDS data source.</span>
- <span style="color: #000000">Check export fields configured with a SQL output type, checks for valid SQL.</span>
- <span style="color: #000000">Check predefined export fields have correct format.</span>
- <span style="color: #000000">When downloading a scheme, check if the user has access privileges to each layout in the scheme.  A warning will display if the user has no access privileges to a layout in a scheme and will not download data.</span>


![image](media://08f59cb7-e944-43df-ac06-300a7f98423e)

There is “Copy Validation to Notepad” option, by clicking this button all the validation check results will be copied to notepad on client side.


When downloading a date field for a layout or scheme the format of an export layout date field configuration, where Data Type = C-Character, will export a date format consistent with the current browser language settings and  Data Type =D- Date, will export a date with format dd-MMM-yyyy HH:mm:ss.

Regardless of which download format is selected, only data that belongs in the currently active DataSet Selection AND also conforms to any active Cascade Filters will be extracted.