TT,
At least with the data dictionary format key:value you can parse the data
tiddler and extract each row using [[datatiddler]get[text]spitregexp[\n]]
and retain the order. There is a similar method for JSON to parse and
extract titles only which I used to list the contents of the history
tiddler -
Here is a partial snipit of listing the contents of the history tiddler, a
json of tiddler titles, pasted in a tiddler tagged for the sidebar tabs you
could call this a session history tab.
\define title-string() "title": "
\define end-title() "
\define hasdrafts() {{{ [list[$:/StoryList]get[draft.of]] }}}
<$list
filter="[{$:/HistoryList}split<title-string>splitbefore<end-title>removesuffix<end-title>reverse[]is[tiddler]limit[20]]">
<$wikify name=hasdrafts text="""<<hasdrafts>>""">
<$list filter="[all[current]] -[subfilter<hasdrafts>]">
<<currentTiddler-buttons>> <!--<save-if-draft>--> <$link/>
<!--<close-if-open-button>--> <<close-if-open-button>><br>
</$list>
</$wikify>
</$list>
The buttons are not defined.
Regards
Tones
On Monday, 21 June 2021 at 20:37:53 UTC+10 TiddlyTweeter wrote:
> Small query; since this thread has *experts* involved :-)
>
> HOW do I NOT SORT a data dictionary?
>
> I use dictionaries a lot for some tasks. I'd like to render the following
> exactly in the order of the dictionary records.
> But it all goes alpha on default.
>
> Bank - Fideuram :
> https://www.fideuramonline.it/script/ServiceLogin/ib/login
> Bank - Deutsche : https://lamiabanca.db.com/apigw/wb/login
> Bank - NatWest : https://DUMMY.html
> Bank - PayPal : https://www.paypal.com/it
> Amazon - IT : https://www.amazon.it
> Amazon - UK : https://www.amazon.co.uk
> Amazon - USA : https://www.amazon.com
> Amazon - DE : https://www.amazon.de
> Amazon - FR : https://www.amazon.fr
>
> In render Amazon goes top, Bank after. That is NOT what I need!
>
> * Q: Is there any way to present dictionary entries ordered exactly
> as entered?*
>
> Just asking! Trying to understand this ...
> TT
> On Monday, 21 June 2021 at 12:13:18 UTC+2 [email protected] wrote:
>
>> *Thanks Eric, *
>> Worked like a charm.
>> What other tags (tag="textarea") can we use?
>> I will try using textbox/checkbox/date etc.
>> *AG*
>>
>> On Monday, June 21, 2021 at 2:36:54 PM UTC+5:30 Eric Shulman wrote:
>>
>>> On Monday, June 21, 2021 at 1:19:40 AM UTC-7 [email protected] wrote:
>>>>
>>>>> How can I make an html form in a tiddler, and save the values entered
>>>>> in the form, into a data tiddler?
>>>>>
>>>>
>>> My first reply was assuming that you wanted to save the input into a
>>> field in the *current* tiddler.
>>> However, upon re-reading your question, I see that you want to save the
>>> values "into a data tiddler"
>>>
>>> This is actually quite simple:
>>> <$edit-text tiddler="sometiddler" index="someindex" tag="textarea"
>>> class="tc-edit-texteditor"/>
>>>
>>> Notes:
>>> * The target tiddler "sometiddler" will be saved with
>>> type="application/json" and will contain
>>> * any newlines you enter will be automatically encoded as \n
>>> * any quotes you enter will be automatically encoded as \"
>>>
>>> enjoy,
>>> -e
>>>
>>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e7459573-a2a7-47a9-86e7-1bedc991fe98n%40googlegroups.com.