Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Excluding agents from a container (Read 5660 times)
Matt Cawood
Full Member
*
Offline



Posts: 109
New England, Australia
Excluding agents from a container
May 04th, 2008, 6:47pm
 
I want all projects marked "done" to be coloured a certain way, unless they are in my "Archived" container, where I want to colours to be mostly set back to the default. My closest guess for the query that will colour unarchived notes is:

done=true & #inside(Archived)≠true

... but it stops the agent dead in its tracks. Can I do what I want to do, and if so, how? Advice appreciated.

Matt
Back to top
 
 
  IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Excluding agents from a container
Reply #1 - May 5th, 2008, 9:35am
 
You want

     done=true & (!#inside(Archived))
Back to top
 
 
WWW   IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Excluding agents from a container
Reply #2 - May 5th, 2008, 10:14am
 
Out of interest, would the following be more efficient - if Archived is a large part of the TBX?
(!#inside(Archived)) & done=true

Nothing major, but it only has to test 'done' within the context of 'not in Archived'.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Matt Cawood
Full Member
*
Offline



Posts: 109
New England, Australia
Re: Excluding agents from a container
Reply #3 - May 5th, 2008, 3:04pm
 
Thanks, Mark. I'm at the infant stage of just making the agent work; efficiency is a very secondary consideration. I've been using Tinderbox for a few years, but I tend to use very simple agents (and probably very inefficient ones), and have to re-learn the agent language whenever I poke under the hood. I now recall what the ! is for.

Matt
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print