[tw5] Re: How to transclude data tiddler entries as options
Ah, I did not know that currentTiddler is the actual field. Thank you so much for explaining, it is sometimes a little tough wrapping my head around this being used to generic programming languages. On Friday, July 20, 2018 at 7:30:44 PM UTC+2, Jed Carty wrote: > > The first list gets a list of the indexes (the labels 1, 2, etc.), the > second list gets the value of each index. You could also do it with a set > widget and get the same result. Or a view widget like this: > > <$select tiddler=<> field="pattern"> > <$list filter='[[$:/plugins/beehive/rating]indexes[]]' variable=IndexValue> > >><$view tiddler='$:/plugins/beehive/rating' > index=<>/> > > > > > > setting the value attribute of the option sets the value stored if you > want it to be different than the value displayed > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/84cd17a5-d757-48b5-baaf-f95a7d944b27%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How to transclude data tiddler entries as options
The first list gets a list of the indexes (the labels 1, 2, etc.), the second list gets the value of each index. You could also do it with a set widget and get the same result. Or a view widget like this: <$select tiddler=<> field="pattern"> <$list filter='[[$:/plugins/beehive/rating]indexes[]]' variable=IndexValue> >><$view tiddler='$:/plugins/beehive/rating' index=<>/> setting the value attribute of the option sets the value stored if you want it to be different than the value displayed -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/87cfdd13-987f-4800-bf16-ae35e939796a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How to transclude data tiddler entries as options
Oh and I saw that it passes "Good" etc. as the new value for my tempTiddler. I need it to assign the index value to that. So when I select "Good" it should assign "4" to tempTiddler. Sorry for not making that clear before. On Friday, July 20, 2018 at 6:59:11 PM UTC+2, Jed Carty wrote: > > This should work > > <$select tiddler=<> field="pattern"> > <$list filter='[[$:/plugins/beehive/rating]indexes[]]'> > <$list filter='[[$:/plugins/beehive/rating]getindex]'> > <> > > > > > > > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/38a2a48e-d4e7-473c-869e-40768b3aa853%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How to transclude data tiddler entries as options
Wow, that is impressive, thank you O.o However I do not quite understand why we need the second list widget. Would you mind explain to me what it does? As far as I understand the first "currentTiddler" references my ratings tiddler since it gets assigned by the first list widget. But what does the second list do? And why do I have to pass my ratings tiddler to getindex? Cheers, Tristan On Friday, July 20, 2018 at 6:59:11 PM UTC+2, Jed Carty wrote: > > This should work > > <$select tiddler=<> field="pattern"> > <$list filter='[[$:/plugins/beehive/rating]indexes[]]'> > <$list filter='[[$:/plugins/beehive/rating]getindex]'> > <> > > > > > > > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/85c9b062-ce2c-404d-b1f6-0acc12f438e0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How to transclude data tiddler entries as options
This should work <$select tiddler=<> field="pattern"> <$list filter='[[$:/plugins/beehive/rating]indexes[]]'> <$list filter='[[$:/plugins/beehive/rating]getindex]'> <> -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/75363dc9-ea82-4ccb-87cf-35e63fff780a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.