All right, here is the use : mechanical engineering...

My TW is mainly a tree like this :

     Assembly1
          Attachment01 (tagged with : Attachment , Assembly1)
          Attachment02 (tagged with : Attachment , Assembly1)
          ...
          Part1 (tagged with : Assembly1)
               Attachment11 (tagged with : Attachment , Part1)
               Attachment12 (tagged with : Attachment , Part1)
               Attachment13 (tagged with : Attachment , Part1)
               ...
          Part2 (tagged with : Assembly1)
               Attachment11 (tagged with : Attachment , Part2)
               Attachment12 (tagged with : Attachment , Part2)
               Attachment13 (tagged with : Attachment , Part2)
               ...
          ...


In Part# tiddlers I have a section !Files that lists the related
attachments :

        !Files
        <<forEachTiddler
                where
                        'tiddler.tags.contains("attachment") &&
tiddler.tags.contains(context.inTiddler.title)'
                write
                        '"[["+tiddler.title+"|"+tiddler.title+"]]
("+tiddler.created.formatString("YYYY-0MM-0DD")+")\n"'
        >>


In Assembly# tiddler I am trying generate a table from Part# 's !File
section using GridPlugin like this :

        <<tiddler [[FileGridTemplate]] with:{{tiddler.title}}
        >>


with FileGridTemplate like this :

        <<grid filter:[[$1 AND NOT attachment]]
                columns:[[!File]] inline wikify
        >>

But my Table desperatly ends up with

     | Part1 | Attachment01 , Attachment02 |
     | Part2 | Attachment01 , Attachment02 |


Instead of

     | Part1 | Attachment11 , Attachment12 |
     | Part2 | Attachment21 , Attachment22 |

Thanks for interest



On 24 déc 2009, 16:09, cmari <cema...@gmail.com> wrote:
> Just to clarify: some fET results display perfectly well when using
> GridPlugin, just not an fET that uses context.viewerTiddler.title.
> Again, maybe if you could specify a bit more about exactly what you
> want to accomplish, others might be able to propose a different
> approach.
> cmari
>
> On Dec 24, 3:36 am, julien23 <ju.bouc...@gmail.com> wrote:
>
> > Ok for "viewerTiddler" instead of "viewTiddler" it fixes the error
> > message in fET.
>
> > But it doesn't help with displaying the result in another tiddler with
> > GidPlugin.
>
> > I am still digging on it, I really need it to work...
>
> > Thanks
>
> > On 22 déc, 15:02, cmari <cema...@gmail.com> wrote:
>
> > > Never mind, I see now that you were asking two separate questions: one
> > > about whether GridPlugin can be used to display the results of a fET
> > > macro in another tiddler (not to my knowledge, but someone else may
> > > have a trick), and a slightly different question about
> > > context.viewerTiddler.title.
> > > It's possible that your TypeError is only because of spelling (try
> > > using viewerTiddler, not viewTiddler).
> > > cmari
>
> > > On Dec 22, 7:41 am, cmari <cema...@gmail.com> wrote:
>
> > > > Can you give a few more details, like what is in your grid macro?
> > > > cmari
>
> > > > On Dec 22, 2:12 am, julien23 <ju.bouc...@gmail.com> wrote:
>
> > > > > hey
>
> > > > > I am trying to generate a table from tiddler's section using
> > > > > "context.inTiddler.title" variable in fET
>
> > > > > But GridPlugin display a local context.inTiddler.title fET instead of
> > > > > the remote context.inTiddler.title fET :-(
>
> > > > > I have read about context.viewTiddler.title variable but it gives me
> > > > > some "<<forEachTiddler ...>>: TypeError: context.viewTiddler is
> > > > > undefined"
>
> > > > > remote fET section :
>
> > > > >    <<forEachTiddler
> > > > >        where
> > > > >            'tiddler.tags.contains("attachment") &&
> > > > > tiddler.tags.contains(context.inTiddler.title) && !
> > > > > tiddler.text.contains("image")'
> > > > >        sortBy
> > > > >            tiddler.created
> > > > >        descending
> > > > >        write
> > > > >            '"[["+tiddler.title+"|"+tiddler.title+"]]
> > > > > ("+tiddler.created.formatString("YYYY-0MM-0DD")+")\n"'
> > > > >    >>

--

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


Reply via email to