[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
Oh i did not think to that ! That's true, I was in old version 5.1.2. Now i have upgraded my tiddlywiki to 5.2.2 and your solution works like a charm! Thank you very much Eric Le mercredi 30 mars 2022 à 17:47:33 UTC+2, Eric Shulman a écrit : > Using doubled angle brackets (i.e., `<>`) within a filter is > definitely not valid syntax, so the filter is most likely just evaluating > to `[range[1]]`, which would produce just 1 row of table output (as you > observed). > What version of TiddlyWiki are you using? The `range[1],` filter > syntax was introduced in TW5.2.0. > On Wednesday, March 30, 2022 at 8:17:25 AM UTC-7 arm...@gmail.com wrote: > >> @Eric, >> >> I've modified <$list filter="[range[1], by <$list >> filter="[range[1],<>, and the first row appears correctly with Tid_A >> (tagged a) on the first column and Tid_B (tagged b) on the second column ! >> But no more row for the moment... >> >> Le mercredi 30 mars 2022 à 17:08:11 UTC+2, arm...@gmail.com a écrit : >> >>> @Eric, >>> >>> Variables contents seams to be good: >>> >>> LIST A=TidA TidC >>> LIST B=TidB TidD TidE >>> ROWS=3 >>> >>> But the table still empty >>> >>> Le mercredi 30 mars 2022 à 16:58:15 UTC+2, Eric Shulman a écrit : >>> On Wednesday, March 30, 2022 at 7:44:07 AM UTC-7 arm...@gmail.com wrote: > Thanks also for your code and notes for my understanding! > When I try it, I only see the table header "a | b" but no rows after > that. > Is there a way to debug what is in the "rows" variable ? > Just before the `` element, add: ``` LIST A=<> LIST B=<> ROWS=<> ``` -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/82da796b-7ad3-4bdb-8f18-3782f4fb1831n%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
Using doubled angle brackets (i.e., `<>`) within a filter is definitely not valid syntax, so the filter is most likely just evaluating to `[range[1]]`, which would produce just 1 row of table output (as you observed). What version of TiddlyWiki are you using? The `range[1],` filter syntax was introduced in TW5.2.0. On Wednesday, March 30, 2022 at 8:17:25 AM UTC-7 arm...@gmail.com wrote: > @Eric, > > I've modified <$list filter="[range[1], by <$list > filter="[range[1],<>, and the first row appears correctly with Tid_A > (tagged a) on the first column and Tid_B (tagged b) on the second column ! > But no more row for the moment... > > Le mercredi 30 mars 2022 à 17:08:11 UTC+2, arm...@gmail.com a écrit : > >> @Eric, >> >> Variables contents seams to be good: >> >> LIST A=TidA TidC >> LIST B=TidB TidD TidE >> ROWS=3 >> >> But the table still empty >> >> Le mercredi 30 mars 2022 à 16:58:15 UTC+2, Eric Shulman a écrit : >> >>> On Wednesday, March 30, 2022 at 7:44:07 AM UTC-7 arm...@gmail.com wrote: >>> Thanks also for your code and notes for my understanding! When I try it, I only see the table header "a | b" but no rows after that. Is there a way to debug what is in the "rows" variable ? >>> >>> Just before the `` element, add: >>> ``` >>> LIST A=<> >>> LIST B=<> >>> ROWS=<> >>> ``` >>> >>> >>> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/aad494ee-f19a-4b11-92d2-2aba59f7160fn%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
@Eric, I've modified <$list filter="[range[1], by <$list filter="[range[1],<>, and the first row appears correctly with Tid_A (tagged a) on the first column and Tid_B (tagged b) on the second column ! But no more row for the moment... Le mercredi 30 mars 2022 à 17:08:11 UTC+2, arm...@gmail.com a écrit : > @Eric, > > Variables contents seams to be good: > > LIST A=TidA TidC > LIST B=TidB TidD TidE > ROWS=3 > > But the table still empty > > Le mercredi 30 mars 2022 à 16:58:15 UTC+2, Eric Shulman a écrit : > >> On Wednesday, March 30, 2022 at 7:44:07 AM UTC-7 arm...@gmail.com wrote: >> >>> Thanks also for your code and notes for my understanding! >>> When I try it, I only see the table header "a | b" but no rows after >>> that. >>> Is there a way to debug what is in the "rows" variable ? >>> >> >> Just before the `` element, add: >> ``` >> LIST A=<> >> LIST B=<> >> ROWS=<> >> ``` >> >> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b6b5e3a9-150a-4ab0-aa50-ffd57a020e2dn%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
@Eric, Variables contents seams to be good: LIST A=TidA TidC LIST B=TidB TidD TidE ROWS=3 But the table still empty Le mercredi 30 mars 2022 à 16:58:15 UTC+2, Eric Shulman a écrit : > On Wednesday, March 30, 2022 at 7:44:07 AM UTC-7 arm...@gmail.com wrote: > >> Thanks also for your code and notes for my understanding! >> When I try it, I only see the table header "a | b" but no rows after that. >> Is there a way to debug what is in the "rows" variable ? >> > > Just before the `` element, add: > ``` > LIST A=<> > LIST B=<> > ROWS=<> > ``` > > > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fad74b0d-ce2a-4f4a-948a-4ae287f4af70n%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
On Wednesday, March 30, 2022 at 7:44:07 AM UTC-7 arm...@gmail.com wrote: > Thanks also for your code and notes for my understanding! > When I try it, I only see the table header "a | b" but no rows after that. > Is there a way to debug what is in the "rows" variable ? > Just before the `` element, add: ``` LIST A=<> LIST B=<> ROWS=<> ``` -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/880efa8e-de67-493c-afb7-72624c0f4adan%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
Arg! Premature send. I wanted to add about step forward: good stuff ! On Wednesday, March 30, 2022 at 11:53:46 AM UTC-3 Charlie Veniot wrote: > Add a after each > > On Wednesday, March 30, 2022 at 11:44:07 AM UTC-3 arm...@gmail.com wrote: > >> I've forgot to precise: >> In my use case, a tiddler is tagged with either "a" or "b", but not with >> both tags a + b. >> >> @cj.v: >> Thank you for your code, but i obtain only one row contains tiddlers >> tagged with "a" in the firt column and tiddler tagged with "b" on the >> second. >> However adding after each <$link>, I almost get the expected result : >> >> Tag_a Tag_b >> Tid1_a >> Tid2_b >> Tid3_a >> Tid4_a >> Tid5_b >> >> This is already a big step forward for me! >> >> >> @Eric, >> >> Thanks also for your code and notes for my understanding! >> When I try it, I only see the table header "a | b" but no rows after that. >> Is there a way to debug what is in the "rows" variable ? >> >> >> Le mercredi 30 mars 2022 à 16:00:04 UTC+2, Eric Shulman a écrit : >> >>> Give this a try: >>> ``` >>> <$set name="A" filter="[tag[a]!is[system]sort[title]]"> >>> <$set name="B" filter="[tag[b]!is[system]sort[title]] -[enlist]"> >>> <$vars rows={{{ [enlistcount[]] [enlistcount[]] +[maxall[]] }}}> >>> >>>ab >>><$list filter="[range[1],]" variable=row> >>> >>> <$link to={{{ [enlistnth] }}}/> >>> <$link to={{{ [enlistnth] }}}/> >>> >>> >>> >>> >>> >>> >>> ``` >>> Notes: >>> * The first two `<$set>` widgets get the two lists of tagged items. >>> Note how the second list (`B`) excludes any items that are already in list >>> `A`. >>> * The `<$vars>` widget finds the length of the longer list, which will >>> be the number of rows in the output table. >>> * The `<$list>` widget defines a loop that sets the row number, 1 to N >>> * Then, for each row, we output the nth item in each list >>> >>> enjoy, >>> -e >>> On Wednesday, March 30, 2022 at 3:00:55 AM UTC-7 arm...@gmail.com wrote: >>> Hi, I am stuck on a basic question and would like to know your point of view. What would be your approach to create an html table with two columns, the first to list all tiddlers labelled with "a" and the second to list all tiddlers labelled with "b", but that each tidler only appears once and is not duplicated? I started with this code but evidently it doesn't work as I would like. If i have two tiddlers tagged with "a" and a tidller tagged with "b", the tiddler tagged with "b" so appears on the first and on the second row. ``` Tag_aTag_b <$list filter="[!is[system]tag[a]sort[title]]" variable="taga"> <$list filter="[!is[system]tag[b]sort[title]]" variable="tagb"> <$link to=<<$link to= ``` Any help would be appreciated, thank you ! >>> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/76f48045-a995-4f13-8355-08f1bd119b60n%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
Add a after each On Wednesday, March 30, 2022 at 11:44:07 AM UTC-3 arm...@gmail.com wrote: > I've forgot to precise: > In my use case, a tiddler is tagged with either "a" or "b", but not with > both tags a + b. > > @cj.v: > Thank you for your code, but i obtain only one row contains tiddlers > tagged with "a" in the firt column and tiddler tagged with "b" on the > second. > However adding after each <$link>, I almost get the expected result : > > Tag_a Tag_b > Tid1_a > Tid2_b > Tid3_a > Tid4_a > Tid5_b > > This is already a big step forward for me! > > > @Eric, > > Thanks also for your code and notes for my understanding! > When I try it, I only see the table header "a | b" but no rows after that. > Is there a way to debug what is in the "rows" variable ? > > > Le mercredi 30 mars 2022 à 16:00:04 UTC+2, Eric Shulman a écrit : > >> Give this a try: >> ``` >> <$set name="A" filter="[tag[a]!is[system]sort[title]]"> >> <$set name="B" filter="[tag[b]!is[system]sort[title]] -[enlist]"> >> <$vars rows={{{ [enlistcount[]] [enlistcount[]] +[maxall[]] }}}> >> >>ab >><$list filter="[range[1],]" variable=row> >> >> <$link to={{{ [enlistnth] }}}/> >> <$link to={{{ [enlistnth] }}}/> >> >> >> >> >> >> >> ``` >> Notes: >> * The first two `<$set>` widgets get the two lists of tagged items. Note >> how the second list (`B`) excludes any items that are already in list `A`. >> * The `<$vars>` widget finds the length of the longer list, which will be >> the number of rows in the output table. >> * The `<$list>` widget defines a loop that sets the row number, 1 to N >> * Then, for each row, we output the nth item in each list >> >> enjoy, >> -e >> On Wednesday, March 30, 2022 at 3:00:55 AM UTC-7 arm...@gmail.com wrote: >> >>> Hi, >>> >>> I am stuck on a basic question and would like to know your point of view. >>> >>> What would be your approach to create an html table with two columns, >>> the first to list all tiddlers labelled with "a" and the second to list all >>> tiddlers labelled with "b", but that each tidler only appears once and is >>> not duplicated? >>> >>> I started with this code but evidently it doesn't work as I would like. >>> If i have two tiddlers tagged with "a" and a tidller tagged with "b", the >>> tiddler tagged with "b" so appears on the first and on the second row. >>> >>> ``` >>> >>> Tag_aTag_b >>> <$list filter="[!is[system]tag[a]sort[title]]" variable="taga"> >>> <$list filter="[!is[system]tag[b]sort[title]]" variable="tagb"> >>> >>> <$link to=<<$link to= >>> >>> >>> >>> >>> ``` >>> Any help would be appreciated, thank you ! >>> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d92c1fdf-1766-48e2-a796-b789fc206734n%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
I've forgot to precise: In my use case, a tiddler is tagged with either "a" or "b", but not with both tags a + b. @cj.v: Thank you for your code, but i obtain only one row contains tiddlers tagged with "a" in the firt column and tiddler tagged with "b" on the second. However adding after each <$link>, I almost get the expected result : Tag_a Tag_b Tid1_a Tid2_b Tid3_a Tid4_a Tid5_b This is already a big step forward for me! @Eric, Thanks also for your code and notes for my understanding! When I try it, I only see the table header "a | b" but no rows after that. Is there a way to debug what is in the "rows" variable ? Le mercredi 30 mars 2022 à 16:00:04 UTC+2, Eric Shulman a écrit : > Give this a try: > ``` > <$set name="A" filter="[tag[a]!is[system]sort[title]]"> > <$set name="B" filter="[tag[b]!is[system]sort[title]] -[enlist]"> > <$vars rows={{{ [enlistcount[]] [enlistcount[]] +[maxall[]] }}}> > >ab ><$list filter="[range[1],]" variable=row> > > <$link to={{{ [enlistnth] }}}/> > <$link to={{{ [enlistnth] }}}/> > > > > > > > ``` > Notes: > * The first two `<$set>` widgets get the two lists of tagged items. Note > how the second list (`B`) excludes any items that are already in list `A`. > * The `<$vars>` widget finds the length of the longer list, which will be > the number of rows in the output table. > * The `<$list>` widget defines a loop that sets the row number, 1 to N > * Then, for each row, we output the nth item in each list > > enjoy, > -e > On Wednesday, March 30, 2022 at 3:00:55 AM UTC-7 arm...@gmail.com wrote: > >> Hi, >> >> I am stuck on a basic question and would like to know your point of view. >> >> What would be your approach to create an html table with two columns, the >> first to list all tiddlers labelled with "a" and the second to list all >> tiddlers labelled with "b", but that each tidler only appears once and is >> not duplicated? >> >> I started with this code but evidently it doesn't work as I would like. >> If i have two tiddlers tagged with "a" and a tidller tagged with "b", the >> tiddler tagged with "b" so appears on the first and on the second row. >> >> ``` >> >> Tag_aTag_b >> <$list filter="[!is[system]tag[a]sort[title]]" variable="taga"> >> <$list filter="[!is[system]tag[b]sort[title]]" variable="tagb"> >> >> <$link to=<<$link to= >> >> >> >> >> ``` >> Any help would be appreciated, thank you ! >> > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/75754c96-2e98-4790-9d7d-3dabad647307n%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
Give this a try: ``` <$set name="A" filter="[tag[a]!is[system]sort[title]]"> <$set name="B" filter="[tag[b]!is[system]sort[title]] -[enlist]"> <$vars rows={{{ [enlistcount[]] [enlistcount[]] +[maxall[]] }}}> ab <$list filter="[range[1],]" variable=row> <$link to={{{ [enlistnth] }}}/> <$link to={{{ [enlistnth] }}}/> ``` Notes: * The first two `<$set>` widgets get the two lists of tagged items. Note how the second list (`B`) excludes any items that are already in list `A`. * The `<$vars>` widget finds the length of the longer list, which will be the number of rows in the output table. * The `<$list>` widget defines a loop that sets the row number, 1 to N * Then, for each row, we output the nth item in each list enjoy, -e On Wednesday, March 30, 2022 at 3:00:55 AM UTC-7 arm...@gmail.com wrote: > Hi, > > I am stuck on a basic question and would like to know your point of view. > > What would be your approach to create an html table with two columns, the > first to list all tiddlers labelled with "a" and the second to list all > tiddlers labelled with "b", but that each tidler only appears once and is > not duplicated? > > I started with this code but evidently it doesn't work as I would like. If > i have two tiddlers tagged with "a" and a tidller tagged with "b", the > tiddler tagged with "b" so appears on the first and on the second row. > > ``` > > Tag_aTag_b > <$list filter="[!is[system]tag[a]sort[title]]" variable="taga"> > <$list filter="[!is[system]tag[b]sort[title]]" variable="tagb"> > > <$link to=<<$link to= > > > > > ``` > Any help would be appreciated, thank you ! > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3f1ed121-fc84-4609-be76-e82084742c19n%40googlegroups.com.
[tw5] Re: [Question] Lists of tiddlers filtered on two columns into a table
If a tiddler is in column a and in column b, and that tiddler should only appear once, does it mean that tiddler does not appear at all , and if not then which column should show that tiddler ? That aside, <$list> are like loops in programming. For each item in the first loop, that one item will get processed for every item that is the second loop. Every tagb item is going to get processed once for every taga item. So you are going to get repeats of every tagb. Start with this and then we can work on what to do with items that are tagged both taga and tagb. Tag_aTag_b <$list filter="[!is[system]tag[a]sort[title]]" variable="taga"> <$link to=< <$list filter="[!is[system]tag[b]sort[title]]" variable="tagb"> <$link to=< On Wednesday, March 30, 2022 at 7:00:55 AM UTC-3 arm...@gmail.com wrote: > Hi, > > I am stuck on a basic question and would like to know your point of view. > > What would be your approach to create an html table with two columns, the > first to list all tiddlers labelled with "a" and the second to list all > tiddlers labelled with "b", but that each tidler only appears once and is > not duplicated? > > I started with this code but evidently it doesn't work as I would like. If > i have two tiddlers tagged with "a" and a tidller tagged with "b", the > tiddler tagged with "b" so appears on the first and on the second row. > > ``` > > Tag_aTag_b > <$list filter="[!is[system]tag[a]sort[title]]" variable="taga"> > <$list filter="[!is[system]tag[b]sort[title]]" variable="tagb"> > > <$link to=<<$link to= > > > > > ``` > Any help would be appreciated, thank you ! > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/884c62c1-b18e-4bf5-a5bf-3f32408b627bn%40googlegroups.com.
[tw5] [Question] Lists of tiddlers filtered on two columns into a table
Hi, I am stuck on a basic question and would like to know your point of view. What would be your approach to create an html table with two columns, the first to list all tiddlers labelled with "a" and the second to list all tiddlers labelled with "b", but that each tidler only appears once and is not duplicated? I started with this code but evidently it doesn't work as I would like. If i have two tiddlers tagged with "a" and a tidller tagged with "b", the tiddler tagged with "b" so appears on the first and on the second row. ``` Tag_aTag_b <$list filter="[!is[system]tag[a]sort[title]]" variable="taga"> <$list filter="[!is[system]tag[b]sort[title]]" variable="tagb"> <$link to=<<$link to= ``` Any help would be appreciated, thank you ! -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4274b51f-8be1-4119-953a-7b787724c2f4n%40googlegroups.com.