Time to call in the support team.
HI Team,
I am having all sorts of difficulties concatenating stuff. I have been trying to concatenate strings and fields for two days now with limited success.
Please have a look at this code.
<$button>
<$set name="selectedstatecode" value={{$:/TLS/selectedstate!!state-code}} >
<$list filter="[all[tiddlers]field:statecode<selectedstatecode>]">
<$set name="selectedstatename" value={{!!statename}} >
<$action-setfield $tiddler="$:/TLS/selectedstate" $field="state-name" $value=<<selectedstatename>> />
</$set>
</$list>
<$set name="stateTag" value={{$:/TLS/selectedstate!!state-name}}>
<$action-createtiddler
$basetitle={{{ [{$:/TLS/incremental}addsuffix[:]addsuffix{$:/TLS/selectedstate!!state-name}addprefix{$:/TLS/selectedstate!!state-code}] }}}
tags="[[All Items]] [[<<stateTag>>]]"
The problem now is the line tags="[[All Items]] [[<<stateTag>>]]"
. According to what I read, this should work so that if the stateTag variable contains “South Australia” the resulting tiddler should be tagged with ‘All Items’ and ‘South Australia’.
But this is not happening, it gets tagged with All Items
and <<stateTag>>
I am obviously doing something wrong but what could it be ? Does it need a join or an addsuffix to get it to work? Or is there a transclusion trick?
Also, the documentation for the join operator is so minimal to be almost useless. It needs to contain examples of how to join stuff in various guises.
bobj