Document numberRevision
DOCU131121

<data-import> Element - Schema Reference


Definition

Parent element(s): <type>.

The Data Import functionality in Highstage enables users to update items and their associated data columns with contents from external Microsoft Excel documents.

Tip: You can create any number of Data Import profiles by creating additional <data-import> elements each with their own unique name.

 

Content model

The specification of what attributes, elements and data that are available and allowed within the <data-import> element.

 

Attributes

This section introduces you to the XML attributes and values that are available and can be included within the <data-import> element.

AttributeDescriptionExampleMandatory
nameUnique name of element.name="default"✔️
titleProfile title (displayed on button in the options section)title="Import Data"✔️
ignore-headersDefine a specific number of rows in the external Microsoft Excel document to be ignored when importing data.Ignores the first row in the external Microsoft Excel document:
ignore-headers="1".

Ignores the first three rows in the external Microsoft Excel document:
ignore-headers="3".
matchingDefine the column(s) in the external Microsoft Excel document that should be compared against Highstage data column(s) to identify matching item entries.

Any number of data columns can be used simultaneously to identify matching entries (separated by ,).
Matching (based on item ID) using header title row in the Excel document:
matching="{[item='fileitem']}".

Matching (based on item ID) using column number in the excel document:
matching="{[item=1]}".

Matching (based on item ID and usestatus) using a combination of header title row and column number in the excel document:
matching:="{[item='fileitem'],[usestatus=2]}"
✔️
creatingDefine which column(s) in the external Microsoft Excel document that should be inserted into specific Highstage data column(s) as data when creating new items from the list of unidentified items.When creating unidentified items, update the workspace data column in Highstage with contents from the column in the external excel document with a header title of workspace:
creating="{[workspace='fileworkspace']}".

When creating unidentified items, update the description data column in Highstage with contents from the column in the external excel document on the 5th column:
creating="{[description=5]}"
updatingDefine which column(s) in the external Microsoft Excel document that should be inserted into specific Highstage data column(s) as data when importing.Mapping columns from file against Highstage data columns using title headers:
updating="{[note='filenote'], [usestatus='fileusestatus'],[cost='filecost']}"

Mapping columns from file against Highstage data columns using numbered columns:
updating={[note=2],[usestatus=3],[cost=5]}
✔️
basetypeDefine the specific basetype of the items that is being updated with data.basetype="part"✔️
subtypesDefine which items of specific subtype(s) that must be updated with data from external Excel documents.

Items with other subtypes will not be considered not updated with data from the external Excel document.
Consider all subtypes: subtypes="*".

Specific subtype: subtypes="GD".

Multiple subtypes: subtypes="CMPN,ASM".
✔️
createControls whether users can create items directly from the list of unidentified items.

Items created from the list of unidentified items will be populated with data that is defined in the creating attribute.
Enabled (allows for creation of items from the list of unidentified items): create="1".

disable (disables the possibility of creating items directly from the list of unidentified items): create="0".
✔️
file-patternDefine the naming conventions of the External Microsoft Excel file to be used for importing data.Specific named file: file-pattern="data.xlsx".

First occurrence of file of specific type regardless of file name: file-pattern="*.xlsx".
✔️

 

Elements

There are no elements available to be placed within the data-import element.

 

Special elements

There are no special elements available to be placed within the data-import element.

 

Samples

Data import using column titles (title headers) for matching data

The following sample illustrates how data is imported from DataImport.xlsx by matching data from the external Microsoft Office Excel file, using title headers, against items in Highstage:

The contents of the .xlsx file must adhere to the structure of the configured profile:

image-20221128151231132

Resources: Click here to download a sample of the DataImport.xlsx file.

The configured profile does the following:

 

Data import using numbered columns for matching data

The following sample illustrates how data is imported from DataImport.xlsx by matching data from the external Microsoft Office Excel file, using numbered columns, against items in Highstage:

The contents of the .xlsx file must adhere to the structure of the configured profile:

image-20211213103648784

Resources: Click here to download a sample of the DataImport.xlsx file.

The configured profile does the following:

 

Relevant tools and utilities

Click here to get started importing data in Highstage using the Data Import feature.

 


highstage_footer