[tw] [TW5] Populating a SelectWidget with the indexes/values of dataTiddler

2015-08-11 Thread Ghislain SILLAUME
Dear all, I'm discovering TiddlyWiki since a couple of weeks. It's a fantastic tool but I'm still not able to manage all the 'magic'... I would like to populate a select box by iterating on this dataTiddler (The indexes are the quarters of a year and the value the corresponding dates for the

Re: [tw] [TW5] Populating a SelectWidget with the indexes/values of dataTiddler

2015-08-11 Thread 'Andreas Hahn' via TiddlyWiki
Am 11.08.2015 um 16:39 schrieb Ghislain SILLAUME: Any ideas? Hi, try: |\define valueFromIndex() [[data]getindex[$(index_key)$]] \end $select field=start_date $list filter=[[data]indexes[]sort[title]] variable=index_key $list filter=valueFromIndex variable=index_value option

Re: [tw] [TW5] Populating a SelectWidget with the indexes/values of dataTiddler

2015-08-11 Thread 'Andreas Hahn' via TiddlyWiki
Oh, and don't forget to change data back to the name of the tiddler you want it to work on. Both in the macro and in the list filter. Am 11.08.2015 um 16:57 schrieb Andreas Hahn: Am 11.08.2015 um 16:39 schrieb Ghislain SILLAUME: Any ideas? Hi, try: |\define valueFromIndex()

Re: [tw] [TW5] Populating a SelectWidget with the indexes/values of dataTiddler

2015-08-11 Thread Ghislain SILLAUME
It works perfectly. Many thanks! Ghislain On Tuesday, 11 August 2015 16:59:15 UTC+2, Andreas Hahn wrote: Oh, and don't forget to change data back to the name of the tiddler you want it to work on. Both in the macro and in the list filter. Am 11.08.2015 um 16:57 schrieb Andreas Hahn: Am

Re: [tw] [TW5] Populating a SelectWidget with the indexes/values of dataTiddler

2015-08-11 Thread Eric Shulman
On Tuesday, August 11, 2015 at 8:26:06 AM UTC-7, Ghislain SILLAUME wrote: It works perfectly. Am 11.08.2015 um 16:57 schrieb Andreas Hahn: Here's a more compact implementation without any macros: $select field=start_date $list filter=[[quarters]indexes[]sort[title]] variable=key $set