Eric - is it somehow possible to make the script work on a lineseperated list produced by a fET? This would give infinite possibilites for producing tables with data fetched from tiddlers - and sorted by the fET..
I know how to make a single multicolumned table in a fET already - but it would add the ability to make "overflow" on *long* tables from very simple fETs - If a fET could actually "write" a real textlist - then this script could format the list to a table.. Am I dreaming? YS Måns Mårtensson On 9 Sep., 01:59, Måns <[email protected]> wrote: > Ok - Thanks for explaining... > I've got it working now - and I am happy to say that it works on a > simple lineseperated list as well as on a hr-seperated list. > That's great - thanks a lot! > > YS Måns Mårtensson > > On 9 Sep., 01:21, Eric Shulman <[email protected]> wrote: > > > > > > I tried to implement these line in the first script like this: > > > <script> > > > var out=""; > > > var txt=store.getTiddlerText("$1",""); > > > var items=txt.split("\n----\n"); { > > > if (!items[1]) items=txt.split("\n"); // start a new row > > > out += "|"+items[i]; // add item to row > > > > } > > > out += "|\n"; // end last row > > > return out; > > > </script> > > > Well, it would help if you hadn't *removed* the part of the code that > > actually *loops* over the entire list of items. Go back to my first > > post in this thread that contained the complete script. You should > > just replace the original line that fetches the 'items' array with the > > 3 lines that fetches it using either format, and leave the for (...) > > loop statement as-is, so that each retrieved item can be processed and > > added to the output. > > > -e --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

