The Beauty of Data Dictionary Tiddlers

800 views
Skip to first unread message

@TiddlyTweeter

unread,
Aug 2, 2017, 12:29:07 PM8/2/17
to TiddlyWiki
Data Tiddlers are UNDERappreciated.

They are extremely good for holding vast amounts of info.

You could have a whole novel as one Data Tiddler record, for instance.

Their performance in TW is very good.

Best wishes
Josiah

Lost Admin

unread,
Aug 2, 2017, 12:55:57 PM8/2/17
to TiddlyWiki
Is there an easy way to update them in a user-friendly way? Do we have sort and search? I've not looked at Data Tiddlers very deeply, so my questions could be a bit trivial.

@TiddlyTweeter

unread,
Aug 2, 2017, 1:08:43 PM8/2/17
to tiddl...@googlegroups.com
Ciao Lost Admin

Its pretty easy to make an explorer to examine their contents.

To EDIT the contents is not so easy. This is partly because their potential has been neglected. The tools don't yet exist to just edit one record in context, as far as I know.

At the moment they are superb when you have ESTABLISHED clean DATA you want to present.

Their performance under Transclusion is extremely good on each record. Better than individual Tiddlers.

The Point about Data Tiddlers is they are NOT for sorting or tags. They are SUPERB for holding vast amounts of data that you want to present. They are, essentially, "flat-file" databases.

Josiah

Danielo Rodríguez

unread,
Aug 2, 2017, 1:51:17 PM8/2/17
to TiddlyWiki
Data tiddlers are very Handy. There are some tools to manage them: text references for the edit widget are one example . However the tools are in general lacking some features (for example, you can not edit an non existing property). There are some issues on GitHub about improving them, let's go there and give them a thumbs up
Message has been deleted

Mark S.

unread,
Aug 2, 2017, 4:18:35 PM8/2/17
to TiddlyWiki
It seems like this is more of a request for someone to make an interface for data tiddlers.

Here's a start:

\define value() {{Data##$(index)$}}

<$select tiddler="$:/index" default="item1">
<$list filter='[[Data]] +[indexes[]sort[]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</
$select>

Index:
<$edit-text tiddler="$:/index" tag="input"/>

''Contents:''<br/>
<$transclude tiddler="Data" index={{$:/index}}/>

<$set name="index" value={{$:/index}}>
<$wikify name="data" text=<<value>>>
<$button>Edit (below)
<$action-setfield $tiddler="$:/
WorkingData" $field="text"  $value=<<data>>/>
</$button>
<p/>

''Data:''<br>
<$edit-text tiddler="
$:/WorkingData" placeholder="Type text to put in dictionary"  />

</$wikify>
</
$set>

<$button>
<$action-setfield $tiddler="Data" $index={{$:/index}} $value={{$:/WorkingData}} />
Update values
</$button>

Create a data Tiddler called Data and populate it with a couple of items. The items will appear in the drop down, sorted by index. Click on an item and the text will appear below. If you want to edit the text, click on "Edit". Edit the text, and then Click on "Update".

This could probably be more automated. But when I tried to make the edit box automatically connect with the data dictionary, it kept losing focus. This is a known issue when addressing fields in the current tiddler, but the Data tiddler is not part of the current tiddler, so don't know what's happening there. It could also probably be made smoother if I knew what variables were available to the new "actions" clause as part of the select widget. Unfortunately, no examples are presented.

Have fun,
Mark


On Wednesday, August 2, 2017 at 12:31:30 PM UTC-7, @TiddlyTweeter wrote:
Danielo

I opened a new GitHub issue here: https://github.com/Jermolene/TiddlyWiki5/issues/2952

Of the existing threads, let me know.

Josiah

Danielo Rodríguez wrote:
... There are some issues on GitHub about improving them, let's go there and give them a thumbs up

codacoder...@outlook.com

unread,
Aug 2, 2017, 5:10:39 PM8/2/17
to TiddlyWiki


On Wednesday, August 2, 2017 at 3:18:35 PM UTC-5, Mark S. wrote:
It seems like this is more of a request for someone to make an interface for data tiddlers.
...

That's pretty sweet :)  Shame the select options are sorted (removing sort[] from the filter didn't help - which is weird).

BTW, you have a stray (broken) <p/> tag in there - oops.

Reply all
Reply to author
Forward
0 new messages