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
due-date agent trouble (Read 6790 times)
Sebastian Stephenson
Full Member
*
Offline



Posts: 100

due-date agent trouble
Nov 26th, 2008, 9:11am
 
hello I am trying to get an agent to show all of my due-dates.

the due-dates are stored in an attribute called due-date(weird name I know)

would you write the agent as this

DueDate(*)

is that correct to get any notes that have a due-date value?am I missing something?or is it just the wrong syntax
thanks
Back to top
 
 
Sebastian Stephenson sebey9   IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: due-date agent trouble
Reply #1 - Nov 26th, 2008, 9:58am
 
First, re 'due-date' be careful that TB doesn't parse that as being a text string 'due' minus a text string 'date'. Attributes are case sensitive words and words which should not have the same name as existing export/action codes. Though you can use 'due-date' as an attribute name, best practice (i.e. it's not a strict rule) is that Attributes are one or more capitalised words - in this case DueDate is a much better choice.

OK, assuming out attribute is named DueDate and is of the date data-type then the query is DueDate!=never or if it's of string data type use DueDate!="".
Back to top
 
 

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



Posts: 100

Re: due-date agent trouble
Reply #2 - Nov 26th, 2008, 2:15pm
 
thanks, it worked but it is showing old tasks that are in the archives container.would this work? thanks

DueDate!=never&container!=/Archives

update

sorry it works now here is my query

DueDate!=never&!#inside(Archives)

thanks mark!
Back to top
 
« Last Edit: Nov 26th, 2008, 2:18pm by Sebastian Stephenson »  
Sebastian Stephenson sebey9   IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: due-date agent trouble
Reply #3 - Nov 26th, 2008, 5:04pm
 
Great. It would be a bit more efficient to use !#inside(Archives)&DueDate!=never**. The altered order means that only notes outside Archives get searched, regardless of DueDate.

** see correction in my next post below.
Back to top
 
« Last Edit: Nov 28th, 2008, 12:17pm by Mark Anderson »  

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



Posts: 100

Re: due-date agent trouble
Reply #4 - Nov 28th, 2008, 10:00am
 
interesting I try that out thanks
Back to top
 
 
Sebastian Stephenson sebey9   IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: due-date agent trouble
Reply #5 - Nov 28th, 2008, 12:15pm
 
In testing this I think it better/safer to be more verbose, so use:
(!#inside(Archives))&(DueDate!=never)

It seems the '!#' can otherwise get misinterpreted.
Back to top
 
 

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Pages: 1
Send Topic Print