delay update of list of editable fields?

56 views
Skip to first unread message

Dave

unread,
Oct 15, 2016, 11:36:28 PM10/15/16
to TiddlyWiki
Hi,

I'm trying to generate a list of tiddlers and fields that have yet to be inputted.

This list:

<table><$list filter=[tag[demographics]val[]]>
<tr><td><$link to={{!!title}}><$view field="title"/>
</$link>
</td>
<td><$edit-text tag="input" field="val" placeholder="(empty)" minHeight="20px" /></td>
</tr>
</$list>
</table>

generates a list of all the tiddlers tagged "demographics" that whose field "val" is empty.  The purpose is that in a new file it should list all the fields to input, but in an older file (some of who's values I've already inputted some fields) I only want to see what is yet unedited.

*** The problem is that as soon as I type the first character into the edit box for that field, the item disappears off the list.

Is there a way to tell the list to only render when the tiddler first "appears"?


Dave

Thomas Elmiger

unread,
Oct 16, 2016, 8:41:03 AM10/16/16
to TiddlyWiki
Hi Dave

I guess you could save the new value in a temp-tiddler while entering text and add a button to save the value to it’s final destination.

Good luck!
Thomas

Dave

unread,
Oct 16, 2016, 4:29:09 PM10/16/16
to TiddlyWiki
Thanks for the idea :)

Here's what I ended up doing that worked

<table><$list filter=[tag[demographics]val[]]>
<tr>
<td><$link to={{!!title}}><$view field="title"/></$link></td>
<td><$edit-text tag="input" field="val2" placeholder="(empty)" minHeight="20px" /></td>
<td><$button><$action-setfield val={{!!val2}} />go</$button></td>
</tr>
</$list>
</table>

Dave

Reply all
Reply to author
Forward
0 new messages