After reading through many threads over the past few weeks, I've decided to
focus on using slices for data input and javascript (via
InlineJavascriptPlugin) for gathering, sorting, analyzing, and presenting
data.  (I am aware of and have dabbled in the many other possibilities,
especially with the use of DataTiddlerPlugin, FormDataPlugin and
forEachTiddlerPlugin.)

I don't know much about javascript but have been learning through small
examples throughout the threads as well as Mike P's cigar and book databases
which have been a big help.

http://www.strm.us/tw/books
http://www.strm.us/tw/cigars

What I need help with is finding out why I get the following error for the
following script.

ERROR:  SyntaxError: missing ; before statement

SCRIPT:

<script>
   var out='';
   var fmt='|[[%0]]|%1|%2|%3|%4|\n';
   var tag= 'Project';
   var s1 = 'Sphere';
   var s2 = 'Status';
   var s3 = 'Priority';
   var s4 = 'Participants';
tids = store.getMatchingTiddlers(tag),'modified').reverse();
   out+= "|!" + tag + "|!" + s1 + "|!" + s2 + "|!" + s3 + "|!" + s4 + "|\n";
   for (var i=0; i<tids.length; i++) {
      var t=tids[i].title;
      var d1=store.getTiddlerSlice(t,s1);
      var d2=store.getTiddlerSlice(t,s2);
      var d3=store.getTiddlerSlice(t,s3);
      var d4=store.getTiddlerSlice(t,s4);
      out.push(fmt.format([t,d1,d2,d3,d4]));
}
return out.join('\n');
</script>

I have Tiddlers tagged "Project" with the following content:

|Spheres|?|
|Status|In Progress|
|Priority|2|
|Participants|FirstLast|


This basic table will be the basis for almost all of the tables I am trying
to track so if anyone can help me out with this, I would greatly appreciate
it.

Thanks.

-- 
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.

Reply via email to