Hi twexpert !
I use tiddly wiki to deal with a set of scripts that allow me to reproduce
some results I need to be able to reproduce (go go science !).
Each of these scripts is contained in a tiddler that is tagged with the
name of the article it is related.
Each of these scripts have three main fields:
*summary, that is a description of what it is computed,
*todo, you know what it is,
*results, which is a list of path to files than are the e.g. files, tables
... generated by the script.
Then, these three fields are used to present a complete summary of
code/result and current issues of a given article.
But what I need for more convenience is a kind of interface to be able to
edit these 3 fields for a given script.
This is what I did:
1) List all tiddlers associated to a given article ($root$) and if the user
clicks on the ✎ it opens the generic tiddler "$:/_JM/project/MyEditField"
in a modal for the tiddler of interest
\define setList(root)
<$button message="tm-edit-tiddler" tooltip={{!!summary}} aria-label="tag"
class=<<tv-config-toolbar-class>>> <$view field="title"/> </$button></td>
<$list filter="[!has[draft.of]tag[$root$]field:status[ok]]">
<$button class=tc-btn-invisible>
<$action-sendmessage $message="tm-modal"
$param="$:/_JM/project/MyEditField" TidName={{!!title}} />
✎
</$button>
</$list>
\end
2) Then this is "$:/_JM/project/MyEditField"
\define listElt()
<$edit-text tiddler="$:/_JM/fooEditField" field="$(nameOut)$" default=
"$(nameOut)$" />
\end
!!<<TidName>>
* Summary:
<$edit tiddler=<<TidName>> field="summary"/>
* Todo:
<$edit tiddler=<<TidName>> field="todo"/>
* Outputs:
<$edit tiddler=<<TidName>> field="outputs"/>
<!-- The following is just because the field outputs contains a list of string
(separate by a newline) that I want to display more properly-->
<$set name="currentTiddler" value=<<TidName>>>
<$list filter="[list[!!outputs]]">
<$set name="nameOut" value=<<currentTiddler>>>
<$macrocall $name="listElt"/>
</$set>
</$list>
</$set>
Which essentially works fine.* But has the following strange behaviour:*
when the modal opens all widget edit-tiddler are empty (while the fields
are not empty) until I edit one of them (arbitrarly) . Once the first
character typed in the widget, all widgets are filled with the correct
value...
Moreover, it appears that I can only edit a widget that is empty (for the
first necessary edit) all others are "locked" until I manage to type a
character in a given widget (so if all fields are full I can do nothing).
I am a bit lost with this issue and any help would be appreciate !
Thanks for your expertise.
P.
--
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/4ad867fb-0321-4021-9c73-56faa4b673ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.