Hi Mark
Thank you for answering.
I still cannot make a usefull table. I've got up to 4 different
dataentries in one string.
"<<forEachTiddler
where
'tiddler.tags.contains("HU") && tiddler.data("Gang")'
sortBy 'tiddler.data("Gang")'
write
'"|{{indent{//[["+tiddler.data("Navn")+"]]//}}}|{{indent
{[["+tiddler.data("K-gruppe")+"]].}}}|{{indent{[["+tiddler.data("Gang")
+"]].}}}|{{indent{[["+tiddler.data("Værelse")+"]].}}}|\n"'
>>"
Result: example 1:http://m%c3%a5ns.dk/Billeder/images/ex1.pngI've tried lewcids tablesortingplugin (http://tw.lewcid.org/ #TableSortingPlugin) "|sortable|k |Navn|K-gruppe |Gang |Værelse |h <<forEachTiddler where 'tiddler.tags.contains("HU") && tiddler.data("Gang")' write '"|[["+tiddler.data("Navn")+"]]|[["+tiddler.data("K-gruppe")+"]]| [["+tiddler.data("Gang")+"]]|[["+tiddler.data("Værelse")+"]]|\n"' >> <<snapshot print label:Udskrift prompt:Udskriv id:viewer>> " Here's the result: example2: http://m%c3%a5ns.dk/Billeder/images/ex2.png Its 2 tables not connected - so no luck this time either... If I only wanted lists - then the original would suffice: "<<forEachTiddler where 'tiddler.tags.contains("HU") && tiddler.data("Gang")' sortBy 'tiddler.data("Gang")' write '"#{{indent{//[["+tiddler.data("Navn")+"]]//}}}{{indent {[["+tiddler.data("K-gruppe")+"]].}}}{{indent{[["+tiddler.data("Gang") +"]].}}}{{indent{[["+tiddler.data("Værelse")+"]].}}}<br>\n"' >> " image here: Example 3: http://m%c3%a5ns.dk/Billeder/images/ex3.png YC Måns Mårtensson On 31 Jan., 19:14, "Mark S." <[email protected]> wrote: > Look athttp://tiddlywiki.abego-software.deunder tiddler: > > "List the first 10 tiddlers that have the tag 'basic' in a table with > a header" > > I think his example shows how to set up almost exactly the kind of > table you want. > > -- Mark > > On Jan 31, 9:47 am, Måns <[email protected]> wrote: > > > Sorry for the lack of context. > > I need the list to be numbered - it is not neccesary with titles for > > each column (which unfortunatelyis repeated for each line of data from > > tiddlers in the table, when I try* ) and I cannot find a solution in > > the tiddlywiki.org pages concerning tables that adresses this issue. > > > *When I write:<<forEachTiddler > > write '"|!col1|!col2|h\n|#cell1|cell2|\n"' > > >> > > *Then I get: |col1|col2| (headlinecolour) > > |cell1|cell2| > > |col1|coll2| (again!) > > |cell3|cell4| > > |coll1|coll2| - etc... > > My original code: > > <<forEachTiddler > > where > > 'tiddler.tags.contains("Data1") && tiddler.data("Data2")' > > sortBy 'tiddler.data("Data1")' > > write > > '"# "+tiddler.data("Data1")+" AND "+tiddler.data ("Data2")+"<br> > > \n"'>> > > When I put "|" in the line: > > '"|# "+tiddler.data("Data1")+" | "+tiddler.data ("Data2")+" | \n"'>> > > I loose the numbering. > > I dont know how to change that... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en -~----------~----~----~----~------~----~------~--~---

