Hi Danielo

Apologies for the late reply. Try this:

<$list filter="[[MyData]indexes[]]" variable="currentIndex">

<$text text=<<currentIndex>>/>: <$view tiddler="MyData"
index=<<currentIndex>>/>

</$list>

Best wishes

Jeremy


On Sat, Jun 21, 2014 at 1:33 PM, Danielo Rodríguez <[email protected]>
wrote:

> Hello Jeremy,
>
> For me, the question is:
>
> If this [[MyData]indexes[]] works, how can I access individual values
> within the list widget?
>
> I mean, taking the first example, would this make sense? :
>
> <$list filter="[[MyData]indexes[]]">
>
> <<my-macro {{!!title#title}}>>
> </$list>
>
> I want to pass the macro not the name of the index but its value.
> Regards.
>
> El sábado, 21 de junio de 2014 10:43:56 UTC+2, Jeremy Ruston escribió:
>>
>> Hi Måns
>>
>> > How do I retrieve the values from a data library instead?
>>
>> A data dictionary tiddler is just an alternative representation for
>> (simple) JSON tiddlers. The example you gave corresponds to this JSON:
>>
>> {
>> "1":"Value for 1",
>> "2":"Value for 2"
>> }
>>
>> So, you'd use the tiddlertitle##index syntax to access individual values.
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Jun 20, 2014 at 11:08 PM, Måns <[email protected]> wrote:
>>
>>> Hi TwWizards
>>>
>>> I saw that I can retrieve the Index of a datatiddler like this:
>>>
>>> [[MyData]indexes[]]
>>>
>>> I tried something like this:
>>>
>>> <$list filter="[[MyData]indexes[]]">
>>>
>>> <<my-macro {{!!title}}>>
>>> </$list>
>>>
>>> To my astonishment it actually worked as (I) expected...
>>>
>>> How do I retrieve the values from a data library instead?
>>>
>>> You know:
>>>
>>> 1:Value for 1
>>> 2:Value for 2
>>>
>>> etc..
>>>
>>> Or should I use field value pairs instead for this kind of operations?
>>>
>>> Cheers Måns Mårtensson
>>>
>>> --
>>> 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.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Jeremy Ruston
>> mailto:[email protected]
>>
>


-- 
Jeremy Ruston
mailto:[email protected]

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to