I'm sure you could fix this if you edited the file. One edit-the-field strategies that I've employed: insert a new row at the top of the spreadsheet, and generate a set of useable field names. leave the cell containing the title field blank in this row; when setting up xlsx import, make sure the checkbox "skip if blank" is ticked. I realize this creates an step requiring edit of the xlsx file, which as you noted is not something you want to do. But you must need to open it to get the column names, no?
If you copy/paste-special-transpose the column names into column1 of another sheet in the workbook, you could read in the column names as values in tiddlers (you might set the title of the tiddlers to be =row(), which would give you a # as a hook. You could then transclude these values to the import spec tiddlers ..... but this gets messy quickly. Jeremy, is there any way to get access to the column number, or is everything in the plugin running on column names (i.e. the text in row1 of the column)? I've long wanted the xlsx import plugin to be modified so that there was an option to name the fields Column1, Column2, etc to avoid these issues. Similarly, set the title of imported tiddlers as Row1, Row2, etc. An additional feature might create tiddlers for each Column, and populate the caption field for these tiddlers with the contents of Row 1. And populate the caption field of the row tiddlers with the contents of a specified column. This would save much of the tedium of building xlsx imports, especially for large spreadsheets. //steve. On Tuesday, March 6, 2018 at 4:32:44 AM UTC-5, Jeremy Ruston wrote: > > Hi Mike > > Trying to import excel spreadsheet report repetitively to create database > of tiddlers. > In the primary row of the excel sheet, where the column titles are that > specify the pointers for the field import specification, I have a couple > columns with line breaks (ALT-Enter in Excel)...Not my choice > > How do i specify the line break character in the "column" field of the > plugin control so that the plugin finds the correct column and > corresponding data to put in the field upon import? > > Seeing if I have an option here besides manipulating the excel data. I'd > rather just import the existing report as-is that is e-mailed to me. > > > Interesting problem! As you’ll have discovered, attempts to copy the line > break character from Excel and paste it into the editor of the XSLX plugin > don’t work. The reason is that those single line text fields don’t allow > control characters. > > A possible workaround is to identify the tiddler field(s) that need to > have these control characters pasted, and to edit those fields in a scrap > tiddler via a textarea: > > <$edit-text tiddler="$:/_importspec/Presidents and > Justices/States/Main/title" field="import-field-column" tag="textarea"/> > > Then you should be able to paste the required line breaks into the fields. > > The problem you’ll then likely run into is that control characters are > removed from tiddler fields when you save and reload as a standalone HTML > file. A quick and dirty workaround would be to save the wiki in JSON format > (via the export button). > > Best wishes > > Jeremy > > > Thanks! > > -Mike > > > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/tiddlywiki. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/376094f7-e825-469f-90ec-7d3bf83b7d27%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/376094f7-e825-469f-90ec-7d3bf83b7d27%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0dfc12be-ccbc-4670-9264-800aa5fc877b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

