[tw] Re: Working with ForEachTiddler Macro

2008-11-29 Thread FND

 forEachTiddler
  [...]
  end
 
 I got the following error . . .
 forEachTiddler ...: Extra parameter behind 'write'

You have an incomplete end argument there - either remove it, or 
complete it by adding a parameter:
 end '...'

Also, I remember that the order of the write, begin and end 
parameters matters - though I think this is the order they should appear 
in, it's worth rearranging in case the above doesn't work.


-- F.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---



[tw] Re: Working with ForEachTiddler Macro

2008-11-29 Thread pearl08

I cut and paste the tiddler content directly from Ken's 'Need TM' at
http://no-sin.com/wiki/WorkTracker.html . . .

Need TM Tiddler . . .

|These need to have the Trainer Materials sent.|
|Once you send it, un-mark it|


Columns are sortable
forEachTiddler
 where
 'tiddler.tags.contains(needTM)'
 sortBy
 'store.getValue(tiddler,traindate)'
 write
 '|+store.getValue(tiddler,traindate)+ |[[+ tiddler.title+]]
|+store.getValue(tiddler,programcode)+|+store.getValue
(tiddler,agreepackdate)+|+store.getValue
(tiddler,trainmaterialdate)+|+store.getValue
(tiddler,participantmaterialdate)+|\n'
 begin '|sortable|k\n|Date|Request|Code|Agree|TM|PM|h\n'
 end '!+count+ sets of Trainer Materials needed to be sent\n'
 none '!No Trainer Materials needed to be sent\n'


. . . and substituted only the data names that I use and still get the
Extra parameter behind 'write' error. There must be something special
in his plugin.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---



[tw] Re: Working with ForEachTiddler Macro

2008-11-29 Thread pearl08

I found out that I had ForEachTiddlerPlugin 1.0.5. I imported version
1.0.8 and now the error goes away. I am able to use the actionList
items of begin, end, and none. However, the table is still not
'sortable'. I reviewed the javascript function of sortable. I included
the javascript directly in my html, however, no luck yet on getting
the sortable functionality to work properly.

For you pros at this . . . does it make sense that I am able to see
the sortable functionality working in Ken's site using Firefox, but am
unable to get it to function properly in my html using the same
browser??


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---



[tw] Re: Working with ForEachTiddler Macro

2008-11-29 Thread cmari

One thing to check: Make sure that there are no hard returns inside
the write string (sorry if this only something that I'm seeing because
of google groups formatting).
cmari
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---



[tw] Re: Working with ForEachTiddler Macro

2008-11-29 Thread pearl08

Excellent . . . imported the plugin and all works well. Thank you very
much.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---



[tw] Re: Working with ForEachTiddler Macro

2008-11-28 Thread okido

Hi Pearl08,

There is an example to be found here:
http://groups.google.co.uk/group/TiddlyWiki/browse_thread/thread/bbded722a9613b72/53487c48e2b2c305?lnk=gstq=okido#53487c48e2b2c305

Basicly you have a function that puts all to be send as output into a
variable and the variable is passed on to the write function.


Have a nice day, Okido


28 Nov, 18:41, pearl08 [EMAIL PROTECTED] wrote:
 New to wiki's. Working with the ForEachTiddler Macro and trying to
 understand the capabilities of the 'write' - output of the macro. Am I
 limited to a certain subset of formats, or is there a way to output
 data in a 'table' format utilizing the | syntax?

 i.e.

 forEachTiddler
 where
 'tiddler.tags.contains(workorder)'
 sortBy
 'tiddler.title'
 write
  '|+tiddler.title+|+tiddler.data(requestor)
 +|+tiddler.projectowner+|br'



  . . . this doesn't work.

 Any direction would be appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---



[tw] Re: Working with ForEachTiddler Macro

2008-11-28 Thread FND

 Working with the ForEachTiddler Macro and trying to
 understand the capabilities of the 'write' - output of the macro.

The FET macro is very well documented - take a look at the Udo's website:
 http://tinyurl.com/6cs9e2 
(http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin%20ForEachTiddlerMacro%20ForEachTiddlerExamples)

 Am I limited to a certain subset of formats, or is there a way to output
 data in a 'table' format utilizing the | syntax?

You can generate the same markup you would enter manually.

 +|+tiddler.projectowner+|br'

Instead of br, which inserts a HTML line-break element, you probably 
want \n, which translates to a literal line break (i.e. the same as 
pressing ENTER when editing a tiddler manually).

  this doesn't work.

Do you get any errors? Some specifics (or even a simple demo for us to 
look at) would be helpful.


-- F.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---



[tw] Re: Working with ForEachTiddler Macro

2008-11-28 Thread Ken Girard

Take a look at:
http://no-sin.com/wiki/WorkTracker.html#[[Need%20TM]]

I used a lot of custom fields, and also have sortable columns.

Ken Girard

On Nov 28, 10:41 am, pearl08 [EMAIL PROTECTED] wrote:
 New to wiki's. Working with the ForEachTiddler Macro and trying to
 understand the capabilities of the 'write' - output of the macro. Am I
 limited to a certain subset of formats, or is there a way to output
 data in a 'table' format utilizing the | syntax?

 i.e.

 forEachTiddler
 where
 'tiddler.tags.contains(workorder)'
 sortBy
 'tiddler.title'
 write
  '|+tiddler.title+|+tiddler.data(requestor)
 +|+tiddler.projectowner+|br'



  . . . this doesn't work.

 Any direction would be appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---



[tw] Re: Working with ForEachTiddler Macro

2008-11-28 Thread pearl08



Sorry, I guess I should fiddle around a little more before
posting . . . I figured out how to sort on multiple 'fields'.

sortBy
'tiddler.data(date)  tiddler.data(itemnumber)'   .  .  . this
worked.


Ken - trying to use the example you have on sortable tables. For the
following content . . .

forEachTiddler
 where
 'tiddler.tags.contains(needTM)'
 sortBy
 'store.getValue(tiddler,date)'
 write '|+tiddler.data(date)+|+tiddler.data(requestor)
+|+tiddler.data(area)+|+tiddler.data(projectowner)
+|+tiddler.data(project)+|+tiddler.data(ieassigned)
+|+tiddler.data(iestart)+|+tiddler.data(ieend)+|+tiddler.data
(iestatus)+|+tiddler.data(constrstart)+|+tiddler.data
(constrend)+|+tiddler.data(constrstatus)+|[[here|+tiddler.title
+]]|\n'
 begin '|sortable|k\n|Date|Requestor|Area|Owner|Description|IE|IE
Start|IE End|IE Status|C Start|C End|C Status|Link|h\n'
 end


I got the following error . . .

forEachTiddler ...: Extra parameter behind 'write': begin |
sortable|k\n|Date|Requestor|Area|Owner|Description|IE|IE Start|IE End|
IE Status|C Start|C End|C Status|Link|h\n end

Am I missing a plugin??

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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
-~--~~~~--~~--~--~---