I'm dealing with tracking numbers lately.  I have several tiddlers that 
represent incoming shipments.  they have "tracking_number" field in each of 
them.

There's a site called 17track that is great for tracking multiple shipments 
at once.  Its urls look like this:

https://t.17track.net/en#nums=UA9343434345US,95012345678912345

So I want to create a Link in my "master" tiddler (that shows all the 
incoming shipments) that has a concatenated comma list of all the tracking 
numbers for the shipments.


This code will give me a comma-list that is correct, but it is just 
rendered into the view and not available as a variable.  But maybe it can 
be put into a link somehow.

<$list 
filter="[tag[IncomingItem]!has[date_received]has[tracking_number]]">{{!!tracking_number}},</$list>


This code almost gets me there, but it renders the list of trackin numbers 
as space-delimited instead of comma.  I wasn't able to find a way to 
find/replace.

<$set name="myVariable" 
filter="[tag[IncomingItem]!has[date_received]has[tracking_number]get[tracking_number]]">
<a href={{{[<myVariable>addprefix[https://t.17track.net/en#nums=]]}}} 
>Track All</a>
</$set>


You guys have been so much help today!

Maybe I'm trying to make it do something TW is not supposed to be able to 
do easily.  And I'm sure open to learning some other technique to do the 
above if it is better code for TW.

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/35266857-1383-4855-b290-cec2b4011e56o%40googlegroups.com.

Reply via email to