*A final issue to bulk create new tiddlers from CSV*

*This works however it has the unpleasant need to open every tiddler for 
edit, and demand I save each.*

In the above solution rather than display the key value pairs, I have added 
a action-sendmessage to create my new tiddlers

<$action-sendmessage $message="tm-new-tiddler" 
$param="$:/PSaT/WRRef/templates/objects/person" 
title=<<person-tiddler>> 
first-name=<<first-name>>
surname=<<surname>> 
person-role=<<person-role>>
email-address=<<email-address>>
import-region=<<import-region>> 
tags="batch"
/>
I am using tm-new-tiddler because unlike 
ActionCreateTiddlerWidget
it permits the use of a template 
GitHub Issue raised here 
<https://github.com/Jermolene/TiddlyWiki5/issues/4022>

Then I invoke my each row for all csv rows by wrapping the invocation in a 
button

<$button>
<$list filter="[{StaffListTest.csv}split[<eol>]removesuffix[,]]" 
variable=input-row>
  <$macrocall $name=each-row row=<<input-row>>/>
</$list>
Create tiddlers from Staff List
</$button>

Any idea how to;

   - Use template tiddlers with  ActionCreateTiddlerWidget
   - Create but not open new tiddlers with <$action-sendmessage 
   $message="tm-new-tiddler"

Regards
Tony



-- 
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/98d467d4-e934-4f05-8933-93222b49a34b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to