That worked!  Excellent!

On Friday, April 3, 2020 at 4:19:14 PM UTC-4, Saq Imtiaz wrote:
>
> Try:
>
> sams_club_section=<<thisSection>>
>
> This is the synax for referring to variables and macros, the $name$ syntax 
> only works inside of macros for text subsitution.
>
> On Friday, April 3, 2020 at 7:42:28 PM UTC+2, David wrote:
>>
>> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/53a474d8-1cd8-4a4e-80c7-c42f296cddd6%40googlegroups.com.

Reply via email to