Hi Tobias,

Thanks for the info & samples. It really helped a lot.

>>Last but not least, I would not recommend adding numbers as prefixes to 
fields just to have them sorted in the editor.
>>There needs to be a better way. One would be to use a custom editor for 
you to edit client data.

Coincidentally that was the next issue I wanted solve. I'm trying to build 
a simple system to allow basic data entry of contacts and events with the 
contacts.
Ideally a custom screen triggered by a button on an existing tiddler that 
allows the creation of a new tiddler based on a template and populates the 
various custom fields I require.

I haven't managed to find any examples of a "custom editor". Can you 
provide any examples or links?

Also out of curiosity why do you recommend against the number prefixing 
other than the ugliness?

Thanks

Tim

On Thursday, 26 November 2015 18:23:30 UTC+11, Tobias Beer wrote:
>
> Hi Tim,
>
> First things first: I have made a little demo here for you to poke around:
>
> http://doublesort.tiddlyspot.com 
>
>> I tried your suggestion but seem to be having an issue with the list 
>> operator.
>>
> Be sure to use the right terms, when you say "operator", we mostly think 
> you refer to a filter operator <http://tiddlywiki.com/#Filter%20Operators>
> .
> It appears you meant to say "list widget <http://tiddlywiki.com/#Widgets>", 
> or ListWidget <http://tiddlywiki.com/#ListWidget>.
>
> As for:
>
>> Using the following, I get no results:
>> <$list filter="[tag[client]each[2_surname]sort[2_surname]]" 
>> variable=Surnames>
>> <$list filter="[tag[client]2_surname<Surnames>sort[1_givenname]]">
>> </$list>
>> </$list>
>>
> You use an opening and a closing tag for the *$list* widget.
> This makes the list widget assume that its contents are to be the item 
> template.
> Since you have nothing specified, it never actually outputs anything.
>
> This won't work:
>
>> If I change the syntax to the following I do get results, but the first 
>> tiddler is duplicated:
>> <$list filter="[tag[client]each[2_surname]sort[2_surname]]" 
>> variable=Surnames />
>> <$list filter="[tag[client]2_surname<Surnames>sort[1_givenname]]" />
>>
> ...because the two lists are not nested.
>
> What you may think will work is:
>
> <$list filter='[tag[client]each[2_surname]sort[2_surname]]' 
> variable=Surname>
>
> <$list filter='[tag[client]2_surname<Surname>sort[1_givenname]]'/>
>
> </$list>
>
> However, Jed forgot a tiny detail in the first filter.
> We need to actually *get* the surname:
>
> <$list filter='[tag[client]each[2_surname]get[2_surname]sort[]]' 
> variable=Surname>
>
> <$list filter='[tag[client]2_surname<Surname>sort[1_givenname]]'/>
>
> </$list>
>
> Last but not least, I would not recommend adding numbers as prefixes to 
> fields just to have them sorted in the editor.
> There needs to be a better way. One would be to use a custom editor for 
> you to edit client data.
>
> Best wishes,
>
> — tb
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b4a23a6f-bc75-4d96-92de-d0b1d37191f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to