Required Parameters
- sheet: The sheet in the workbook from which to retrieve values.
Optional Parameters
-
version: The Excel version of the target workbook. The allowed values are
AUTO,95,97-2003,2007. The default isAUTO. -
file: The full path on disk, including the filename, of the Excel workbook. You must specify either the
fileorhandleparameter. -
handle: A readable handle reference to the Excel data created by excelOpen. If you specify the
fileparameter,handleis not required. -
map:*: A set of one or more inputs where the name of the mapped parameter precedes the colon (for example,
map:foo), and the value is the name or range of cells in the sheet. For example, the attributemap:foowith a value ofC1creates afooattribute on the specified output item of the operation, and its value is the value found in cell C1 of the target sheet. You can also specify a range of cells to retrieve values from all cells in the range. For example,C1:C10retrieves all values from cell C1 to C10. You can use the wildcard*character to get the cell values for the length of the column. For example,C1:C*retrieves all values from C1 until the end of the column.
Output Attributes
- *: Dependent on the content of the sheet and the query specified. If column headers are present, they are used to name the output attributes. In addition, if you set the
map:*parameter on the input item, the output item contains attributes with the same name(s). See the Examples for additional context.
Examples
For additional information and more examples, see the Excel to XML section of the Excel connector documentation.Get Values and Map to a New Item
This example uses the excelGet operation to get specific and ranged values from cells and columns in the specified sheet and map them to a new item. The new item can be used later in the template to populate specific XML elements of an XML output file as part of the Template Mode of the Excel connector. See arc:map for details on thearc:map keyword used in arc:call.