Summary:

Detail:

I have items I shop for every week and I thought I'd create a tiddler to 
allow me to uncheck and check items as I shopped.  


   - I'd like the *state *of the checkboxes to be stored somehow, I'm not 
   picky where.  Simpler may be better.
   - I'd like it to pull the list of items from a *DataTiddler*.  I think 
   separating the display code from the data would be nice, and I can also 
   learn about DataTiddlers at the same time.  I'm thinking I don't care if 
   the state of each checkbox is stored in the DataTiddler or in the tiddler 
   with the logic.  I guess ideally it would be in the DataTiddler, but at 
   this point if it is simpler I don't have to.  I have an example where the 
   state of each box is stored in the logic tiddler's field, which works.
   - If the data could be stored in more of a CSV style, that would be nice 
   as well, but not essential.
   
I've done a good bit of searching on DataTiddlers and indexes and have 
found some help, but not a lot.  Here's some code that gives me what I 
want, but obviously I'd rather not have to add more checkbox commands for 
each new item I put in the dataTiddler.  I know I can loop over this 
somehow, right?

But I was unable to find how to successfully loop over the keys in a 
Dictionary Tiddler.

This works, but is not dynamic...

<$checkbox field="item1" 
checked='val1'>{{ShoppingSamsClubData##item_01}}</$checkbox>
<$checkbox field="item2" 
checked='val2'>{{ShoppingSamsClubData##item_02}}</$checkbox>

And here are the contents of the data tiddler....

item_01: Rice
item_02: Milk 

*type: application/x-tiddler-dictionary*


-- 
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/c741f1f4-297e-412b-bc21-34adc6e0fd5b%40googlegroups.com.

Reply via email to