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 2 
Send Topic Print
Collecting linked notes from different containers (Read 14017 times)
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Collecting linked notes from different containers
Reply #15 - Jun 15th, 2010, 12:38pm
 
The example file's fine, you probably just downloaded it incorrectly. Right-click the link (in Safari, anyway) and select "Save linked file to "Downloads"". Before you go do download again, I've also fixed a few more things - read on...

When TB is parsing strings '/' might indicate a folder delimiter in a path and ',' a parameter delimiter; under the hood the computer doesn't have the human's sense of context so it's parsing has to make some assumptions. I'd agree neither of these issues is desirable. I suspect they're more unintended consequences. As luck would have it, there is a simple workaround.  If you use a name with a comma or slash in it, put quotes in the original $Lecteur attribute - my demo now has examples but:

Before $Lecteur1 value: Mirauld, Colette  --> Mirauld
Now $Lecteur1 value: "Mirauld, Colette"  --> Mirauld, Collete
Before $Lecteur1 value: Guy/Betrand  --> GuyBertrand
Now $Lecteur1 value: "Guy/Bertrand"  --> Guy/Bertrand

You'll see that for name with a space in (see the updated demo) TB gets the string->set value right. Still, I suspect quoting a few names in the source attribute isn't too big a price to getting it all working today.

Sorry about the $Article vs $NumArticle name - this is why it's easier using someone else's test file - I don't have to figure out the data types etc - not that you haven't been extremely helpful with screen grabs, etc.

I think that fixed the latest round of errors! Updated file replaces the old one. Right click this link and save as... manque-avis.tbx
Back to top
 
« Last Edit: Mar 15th, 2011, 11:49am by Mark Anderson »  

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

User - not staff!

Posts: 5689
Southsea, UK
Re: Collecting linked notes from different containers
Reply #16 - Mar 15th, 2011, 11:55am
 
Update to comments above...

The syntax does now work (testing in v5.8.0):

$MySet(other note)=$MySet(other note)+"string value"

I'm not sure in which version that got fixed - I can't find a Release Note specifically mentioning it.

From v5.8.0, the old stamp syntax of:

  $MySet = $MySet +a_string;          (gone from v5.8.0+)

...is no longer allowed - whether the argument is quoted or not. As a by-product of this the set ~ (toggle valaue) feature is also gone from v5.8.0+.
Back to top
 
 

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