Hi Alan,
> work around the limitations of not being able to assign tags directly
> into a data tiddler without editing it (FormTiddler allows creating
> and editing tiddlers from 'view').

Maybe I'm not understanding exactly what you want, but it's possible
to assign tags
from 'view' if you put the tagger macro (http://tw.lewcid.org//
#TaggerPlugin) into your form:
<span class='tagger' macro="tagger source:myTags"></span>
Then create the tiddler [[myTags]] and tag it with all the tags you
want to be able to select from.

An even simpler way to do it is with the ToggleTag2 macro that used to
be in MonkeyGTD, but I can't find a copy of that anymore.

To go back to your original question about
where 'tiddler.data("facts")=="Y"'
see if it helps to establish first that the data field exists:
where 'tiddler.data("facts")&&tiddler.data("facts")=="Y"'

To get multiple acceptable values you could use:
'tiddler.data("facts")&&(tiddler.data("facts")=="Y"||tiddler.data
("facts")=="N")'

cmari


On Nov 19, 6:10 am, Måns <humam...@gmail.com> wrote:
> Yet another one - this one evaluating a fieldvalue
>
> <<forEachTiddler where 'tiddler.tags.contains("X") && tiddler.fields
> ["y"]&& tiddler.fields["z"] && tiddler.fields["z"].contains(q)'
> sortBy 'tiddler.title'
> write
>  '(index < 200)? "|!"+(index+1)+" <<toggleTag R [["+tiddler.title+"]]
> - \>\>| <<tag "+tiddler.fields["y"]+" \>\> | <<tag "+tiddler.fields
> ["a"] +" \>\> |  [img(3em,auto)["+store.getValue(tiddler,"title")
> +"|"+store.getValue(tiddler,"image")+"]["+tiddler.title+"]] |
> [["+tiddler.title+"]]|\n" : ""'
>               begin '"|sortable|k\n"
> +"|<<tiddler B\>\>|>|>|>| !<<tag X [[C]] \>\> <<tag Z y \>\> |h\n"
> +"|[[D]]| <<tag Y-label Y \>\> | <<tag E-label E \>\> || |h\n"'
> end 'count+"Qs\n"' none '"No Qs\n"'>>
>
> Don't know if this helps at all - as Alex put it: "The easy way to
> resolve this though help from the group would be to post a 'minimal
> test case"..
> It's easier to help when you have an example...
>
> Regards Måns Mårtensson
>
> On 19 Nov., 12:56, Måns <humam...@gmail.com> wrote:
>
> > Here's another fET fetching datafields as well
>
> > <<forEachTiddler where 'tiddler.tags.contains("Books")'
> > sortBy 'tiddler.fields["title"]'
> > write
> >  '(index < 200)? "|"+(index+1)+"|[["+tiddler.title+"]] |
> > [["+tiddler.data("author")+"]] | [["+tiddler.data("primtopic")+"]] |
> > [img(3em+,)["+store.getValue(tiddler,"title")+" |"+store.getValue
> > (tiddler,"image")+"]["+tiddler.title+"]] | [["+tiddler.title+"-note]]
> > | [["+tiddler.data("wherekept")+"]] |\n" : ""'
> >               begin '"|sortable|k\n"
> > +"|>|>|>|>|>|>| !<<wikify [[%0]] ti...@here \>\> |h\n"
> > +"| # | Titel | [[Author|by author]] | [[Theme|by theme]] | Cover |
> > Note | <<tag Books \>\> |h\n"'
> > end 'count+" books\n"' none '"no books \n"'>>
>
> > I'm afraid I haven't got any fETs using criterias based upon
> > datavalues in the "where-call" - I will look a little further..
>
> > Regards Måns Mårtensson
>
> > On 19 Nov., 12:50, Måns <humam...@gmail.com> wrote:
>
> > > Hi Allan
>
> > > You probably know that you have to specify a tag to make fETs work...
> > > This is one of my fETs collecting emailaddresses from different
> > > tiddlers.
>
> > > I'm not sure if you are asking how to use "real fields" - as I do in
> > > this example - or if you want to fetch data-fields...
> > > I know I've got a fET (somewhere) fetching datafields as well...
>
> > > <<forEachTiddler where 'tiddler.tags.contains("entry") &&
> > > tiddler.fields["email"]'
> > > sortBy  'tiddler.title.toUpperCase()'
> > > write
> > >  '(index < 200)? "|!"+(index+1)+"|[["+tiddler.fields["name"]
> > > +"|"+tiddler.title +"]]| [["+tiddler.title +"]] |[["+tiddler.fields
> > > ["email"]+"|mailto:"+tiddler.fields["email"]+";]]  |\n" : ""'
> > >               begin '"|sortable|k\n"
> > > +"|>|>|>|>|>| !Send mails |h\n"
> > > +"|!| !Name | !ITiddlertitle | !Email |h\n"'
> > > end 'count+" e-mailadresses \n"' none '"no emailaddresses \n"'>>
>
> > > Regards Måns Mårtensson
>
>

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlyw...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=.


Reply via email to