This code shows my shopping items and whether I've gotten them yet or not.  
It lists everything grouped in sections.

At the bottom of each section, I want a "New" button that opens a  new 
tiddler.  This is working.

But I'd love to pre-fill that "sams_club_section" field with the current 
section, which is stored in the "thisSection" variable.

The dollar before and after syntax, as shown below, in the $button code, is 
not right.  I've tried a few others.  I'm sure you guys know how to do it.

<$list filter="[list[$:/.my/data/Shopping/SamsClubSections]]" 
variable="thisSection">

!! <<thisSection>>

<$list 
filter="[<thisSection>listed[sams_club_section]tag[ShoppingItem]tag[ToGet]]" 
variable="item">
&nbsp; &nbsp; <$checkbox tiddler=<<item>> tag="Selected"/> <<item>><br/>
</$list>

<$button>
<$action-sendmessage $message="tm-new-tiddler"
 title=""
 tags="ShoppingItem SamsClub"
 sams_club_section="$thisSection$"
/>
New
</$button>

</$list>


-- 
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/24b2e50a-39c9-4a98-b226-d9ff12924b03%40googlegroups.com.

Reply via email to