I tested this, nothing to do with select
;Numbers
<$list filter="[get[num]]">
</$list>
Sum: <$list filter="[get[num]sum[]]">
</$list>
It is fine with duplicate values in the "num" field.
These filters can also be placed in {{{ [get[num]sum[]] }}} or "set filter="
Perhaps for maths we should have
{{{ [get[num]sum[]] ~[[0]] }}} for the nul case
Regards
Tony
On Wednesday, May 22, 2019 at 1:42:06 PM UTC+10, Mark S. wrote:
>
> I guess it's a clue that it should be possible?
>
>
> On Tuesday, May 21, 2019 at 8:33:28 PM UTC-7, TonyM wrote:
>>
>> Yes, Curious, thanks
>>
>> [each[tiddler-type]get[tiddler-type]sort[]]
>> worked
>>
>> Is this a clue to making it happen for maths operators without loosing
>> duplicates?
>>
>> Regards
>> Tony
>>
>>
>> On Wednesday, May 22, 2019 at 1:22:17 PM UTC+10, TonyM wrote:
>>>
>>> Folks,
>>>
>>> Perhaps I am making a basic mistake, but I thought the get[fieldname]
>>> operator returns the values found in all fields named fieldname, and
>>> *deduplicates
>>> them*?
>>>
>>> However in this example the select dropdown is returning multiples of
>>> each tiddler-type field found, presumably one for every tiddler that has
>>> the tiddler-type field
>>>
>>> <$select tiddler="$:/temp/gototype/type"> default='task'>
>>> <$list filter='[get[tiddler-type]sort[]]'>
>>> <option value=<<currentTiddler>>><$view field='title'/></option>
>>> </$list>
>>> </$select>
>>>
>>> Why is it not removing duplicates?
>>>
>>> Tw 5.1.19
>>>
>>>
>>> Thanks in advance
>>> Tony
>>>
>>
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/7b1fffb6-29e1-48dc-a95d-3ab558da3aff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.