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
Changing $Prototype causes Agent to... (Read 844 times)
Stephen Hay
Full Member
*
Offline



Posts: 61
Wellington NZ
Changing $Prototype causes Agent to...
Jan 3rd, 2016, 3:14pm
 
Hi,

I have a niggling problem that I can't solve.

I have set up a bunch of $Prototypes that use $Person as their Prototype. They are called "Clent", "Past Client", "Prospect", "Wider Network", etc., the main difference between them is the colour. They are simply a way to order my contacts. I have set my Contacts note to sort by $Prototype then $Name.

I have also set up Agents with the same name as the Prototype so I can quickly see that shorter list. The Agent also displays the ChildCount.

The problem I'm having is that when I choose a contact and change the prototype in the Properties Inspector, that contact turns itself into a $Prototype, adopts the Agent query and I end up with a whole lot of children I don't want.

This is happening with only one $Prototype, "Wider Network". I've tested changing $Prototype to, say, $Client and it works fine.

The really weird part is that if I delete the Agent "Wider Network", I cannot change the $Prototype to "Wider Network", it defaults to "none".

Any help much appreciated.

Thanks,
Stephen

Back to top
 
« Last Edit: Jan 03rd, 2016, 3:40pm by Stephen Hay »  
  IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Changing $Prototype causes Agent to...
Reply #1 - Jan 3rd, 2016, 10:27pm
 
I suspect that the agents, having names identical to prototypes, are causing problems. Try renaming the agents; for example, "Wider Contacts" might become "Wider Contacts Agent".  (We can make this neater later, if necessary.)

My guess is that the agent had $IsPrototype set to true, or that some similar problem is confusing things. If the morning doesn't bring revelation, feel free to send the document to tech support and we'll take a look.
Back to top
 
 
WWW   IP Logged
Stephen Hay
Full Member
*
Offline



Posts: 61
Wellington NZ
Re: Changing $Prototype causes Agent to...
Reply #2 - Jan 4th, 2016, 2:19pm
 
Thanks Mark, that did it.

Incidentally, I tried building another Agent with the same name as a prototype, taking care not to set the Agent as a prototype, and the same behaviour occurred. Changing the name solved the problem.

The lesson for me: don't have anything in the Document with the same name, even across note types. It's easier to remember.
Back to top
 
 
  IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Changing $Prototype causes Agent to...
Reply #3 - Jan 4th, 2016, 5:46pm
 
FWIW, if Tinderbox finds more than one (non-alias) note/agent/adornment of the same name and needs a single match, it will silently default to the first match via $OutlineOrder ordering. You can overcome this by using a full path ($Path) value rather than just a title ($Name) when writitng queries or actions.

By and large, I too find it useful to avoid duplicate names where they can be avoided. That said, under the above proviso, Tinderbox copes happily with same-titled notes.
Back to top
 
« Last Edit: Jan 4th, 2016, 5:47pm by Mark Anderson »  

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