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
Collect $Names of parents of agent's children (Read 1647 times)
manuelkuhs
Full Member
*
Offline



Posts: 21

Collect $Names of parents of agent's children
Dec 01st, 2014, 6:03am
 
I have an agent that collects notes. I want to collect the names of the (original) parents of the agent's results.

Currently I have this Rule on my agent: $parent_names=collect(children,$Name(orignal(parent)))

But it doesn't work.

I know i can do it by creating a variable $parent_name for each child node and then collecting that, but I'd like to do it in one step if possible, for simplicity.

I'm sure any Tbx pro will see I'm a complete noob Wink
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Collect $Names of parents of agent's children
Reply #1 - Dec 1st, 2014, 11:30am
 
If the code is copied from your agent, you've a typo in 'orignal'.
Back to top
 
 

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



Posts: 21

Re: Collect $Names of parents of agent's children
Reply #2 - Dec 2nd, 2014, 10:21am
 
ehm, yes... cough cough

I've spent several hours in Tbx since posting this request and solved it another way...
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print