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
Query all notes on smart adornment (Read 2012 times)
SteveS
Full Member
*
Offline



Posts: 15

Query all notes on smart adornment
May 04th, 2015, 6:28pm
 
Greetings,

I would like to query a list of all notes associated with (gathered by) a smart adornment.

Any suggestions?

Kind Regards
Steve
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Query all notes on smart adornment
Reply #1 - May 5th, 2015, 5:14am
 
By a particular adornment or every smart adornment in the document? Queries don't match adornments. Note on top of an adornment are inside() the adornment but their parent is their container, not the adornment. There is no reference for "the thing I am inside" as really you need to test that 'thing' for being an adornment ($IsAdornment).
Back to top
 
 

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



Posts: 15

Re: Query all notes on smart adornment
Reply #2 - May 14th, 2015, 10:02pm
 
Thanks Mark.

Query may have not been the proper term.  What I am looking to do is perform operations on
all notes that have been collected by a particular smart adornment.

I have not tinkered with 'find' up to now, but maybe there is a way to do what I am hoping with 'find'?

Kind Regards
Steve
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Query all notes on smart adornment
Reply #3 - May 15th, 2015, 4:53am
 
Queries/finds. The find() operator is a way of using agent-like queries within operators that use item/group scoping inputs, especially as a way to describe a group that isn't derived from the outline hierarchy (e.g. all green $Color notes or notes with $CharacterAge over 30).

In v5 you can test $IsAdornment(adornment) which will only return true if a not is on top of an adornment (regardless of current main view type). Testing in v6.2.1 it appears the adornment designator is not evaluating correct. this will doubtless get fixed but can't be used at present.

(edit: typo)
Back to top
 
« Last Edit: May 15th, 2015, 10:28am by Mark Anderson »  

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Query all notes on smart adornment
Reply #4 - May 15th, 2015, 8:59am
 
If you have a smart adornment named PARIS, the natural way to perform an action on all notes that overlap PARIS is the adornment’s OnAdd action.

Alternatively, another agent could use as its query

      inside(PARIS)

and perform an action on the notes it finds.
Back to top
 
 
WWW   IP Logged
Pages: 1
Send Topic Print