TiddlerFields are name:value pairs that make up a tiddler
T J,In your question you use an alternative jargon to describe tiddlywiki,
then say "I've found that one dictionary can be set as the value of a key/attribute/field on another dictionary." Could you please spell this out a but more,
and as mark suggests explain your objectives better.
As a platform I do not believe there is any database model that can not be represented in tiddlywiki, although some such as one that demands"referential integrity" as Mark mentions would be a little convoluted.
Could you explain this further?,
but first let me try and answer the question.
Any Field can be use to store lists of tiddlers, just as the tags field already is doing, and there is a convention that uses the list field of a given tiddler to list the tiddlers tagged with that tiddler, allowing drag-able reordering, and the listops operators etc.. are there to manipulate such lists."Set[ing] one tiddler or a Title List of tiddlers as the value of a custom field on another tiddler." Is possible using the above mechanism, and set-field messages, list ops widget and more.
However I believe if we could see your objectives we may even be able to give more detailed or alternative options.RegradsTony
On Monday, June 25, 2018 at 6:38:54 AM UTC+10, TJ Walker wrote:TiddlerFields are name:value pairs that make up a tiddlerSo, tiddlers're more or less dictionaries/associative arrays/maps as db records, right? Within many contexts that offer such constructs, I've found that one dictionary can be set as the value of a key/attribute/field on another dictionary. I was hoping to be able to do this in TiddlyWiki; though, in poring over the docs, I wasn't able to determine how to set one tiddler or a Title List of tiddlers as the value of a custom field on another tiddler. Is this possible?
So, if the value of a tiddler's title field changes, all ref mechanisms break?
I see. Is there a reason behind this limitation; was it an intentional design decision? Why aren't refs a function of IDs that are permanent (in terms of the life of tiddler) allowing titles to change?
On Sunday, June 24, 2018 at 6:49:55 PM UTC-6, TonyM wrote:T J,In your question you use an alternative jargon to describe tiddlywiki,With the so-called "jargon", I was merely hoping to double check some of my understanding of TW by confirming perceived analogs between its vernacular and terms I happen to be familiar with and find more meaningful or less jargon-y.
then say "I've found that one dictionary can be set as the value of a key/attribute/field on another dictionary." Could you please spell this out a but more,Sure. Take, for example, JS:const wiki = {} // associative array as DB—given this structure is a collection of organized data— and DBMS—given mechanisms are offered for managing and retrieving its datawiki['Tiddler A Title'] = {text:'blah', ...other standard fields..., customField1:'meh'} // associative array as record, a tiddler
wiki['Tiddler B Title'] = {text:'stuff', ...} // another tiddler
wiki['Tiddler C Title'] = {...standard fields...,customFieldMyRefList: [wiki['Tiddler A Title'],wiki['Tiddler B Title']] // an array of refs to records as the value of a custom field on a record}and as mark suggests explain your objectives better.The abstract nature of my inquiry accurately reflects the abstract nature of my objective: to understand the structures and mechanisms of TW generally/abstractly, to learn what types of things are (im)possible with it —not to, at this point, realize any particular use or application of it.
As a platform I do not believe there is any database model that can not be represented in tiddlywiki, although some such as one that demands"referential integrity" as Mark mentions would be a little convoluted.So, if the value of a tiddler's title field changes, all ref mechanisms break?
Could you explain this further?,I'll revisit if I devise a more concrete use case that I need help with.
but first let me try and answer the question.Thanks.Any Field can be use to store lists of tiddlers, just as the tags field already is doing, and there is a convention that uses the list field of a given tiddler to list the tiddlers tagged with that tiddler, allowing drag-able reordering, and the listops operators etc.. are there to manipulate such lists."Set[ing] one tiddler or a Title List of tiddlers as the value of a custom field on another tiddler." Is possible using the above mechanism, and set-field messages, list ops widget and more.Some of the mentioned mechanisms (messages, listops, widgets, et cetera) have helped me find the relevant docs entries that I'd previously been unable to find. Thanks.