1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 10:00:34 +00:00
TiddlyWiki5/plugins/tiddlywiki/xlsx-utils
2016-12-21 12:09:08 +00:00
..
docs Add first pass at XLSX Utilities plugin 2016-10-23 22:49:59 +01:00
files Add first pass at XLSX Utilities plugin 2016-10-23 22:49:59 +01:00
controls.tid Two improvements to xlsx-utils plugin 2016-11-14 15:23:15 +00:00
deserializer.js Two improvements to xlsx-utils plugin 2016-11-14 15:23:15 +00:00
help-excel-import.tid Add first pass at XLSX Utilities plugin 2016-10-23 22:49:59 +01:00
importer.js xlsx-utils: Automatically trim cell values 2016-12-21 12:09:08 +00:00
plugin.info Add first pass at XLSX Utilities plugin 2016-10-23 22:49:59 +01:00
readme.tid Add first pass at XLSX Utilities plugin 2016-10-23 22:49:59 +01:00
startup.js Fix xlsx-utils startup module name 2016-12-15 17:13:32 +00:00
styles.tid Missed off previous commit (54d0cb2021) 2016-10-23 23:27:35 +01:00
xlsx-import-command.js Two improvements to xlsx-utils plugin 2016-11-14 15:23:15 +00:00

title: $:/plugins/tiddlywiki/xlsx-utils/readme

This plugin provides a flexible way to import tiddlers from Excel files. It is based on the library [[js-xlsx|https://github.com/SheetJS/js-xlsx]].

The plugin uses //import specifications// to determine how incoming spreadsheets are processed. You can view, create and edit import specifications in the control panel "XLSX Utilities" tab, or directly in the [[plugin controls|$:/plugins/tiddlywiki/xlsx-utils]]. This is also where you select which import specification is selected for use during the next import operation.

Each sheet is expected to consist of a single header row followed by multiple content rows, each consisting of an independent record. The plugin automatically detects the extent of each sheet by looking for the bottom right cell that contains a value. This can lead to unexpected results if a cell is accidentally created with an invisible, blank value.

Import specifications describe how tiddlers are created from a particular row of a sheet; multiple tiddlers can be generated from a single row.

Each field of each tiddler can be assigned a constant value, or a value taken from a named column of the sheet, optionally with a prefix and/or suffix added. There is special support for handling list fields (like the tags field), with the ability to append new items to the list.

Internally, each import specifier is actually modelled as a hierarchy of connected tiddlers with the field ''import-spec-role'' indicating the following roles:

* ''workbook'': describes the sheets to be imported from the workbook
* ''sheet'': describes each sheet to be processed
* ''row'': describes the tiddlers to be imported from each row of each sheet
* ''field'': describes the fields to be assigned to each tiddler from each row of each sheet

The easiest way to understand the structure is to explore the example import specifications, and the corresponding spreadsheets they are designed to handle.

Note that there are many possible different ways of importing a particular spreadsheet, depending on whether the structures are modelled with fields, tags, prefixes or other mechanisms. The plugin is designed to support a wide range of applications.

This plugin also requires the JSZip plugin ([[$:/plugins/tiddlywiki/jszip]]) to be installed.