Hi

Haven't solved your problem -- but if you use this code, you'll see that, 
in the second case, the variables aren't as expected.

\define thisList(name) 
<$reveal type='nomatch' state='$:/temp/state/filpar/$name$/$(TestVariable)$' 
text='checked'>
<$button class='tc-btn-invisible' > <input type="checkbox" checked="true">
<$list filter='[tag[$:/Note]$name$[$(TestVariable)$]]' variable="add">
<$action-listops  $tiddler="$:/temp/_HideStoryList" $field="list" $subfilter
="[<add>]"/>
</$list>
<$action-setfield $tiddler='$:/temp/state/filpar/$name$/$(TestVariable)$' 
 text='checked'/>
</$button> -  $(TestVariable)$
</$reveal>
<$reveal type='match' state='$:/temp/state/filpar/$name$/$(TestVariable)$' 
text='checked'>
<$button class='tc-btn-invisible'  > <input type="checkbox" > 
<$list filter='[tag[$:/Note]$name$[$(TestVariable)$]]' variable="remove">
<$action-listops  $tiddler="$:/temp/_HideStoryList" $field="list" 
$subfilter="-[<remove>]"/>
</$list>
<$action-setfield $tiddler='$:/temp/state/filpar/$name$/$(TestVariable)$' 
text='unchecked'/>
</$button>  - $(TestVariable)$ ?
</$reveal>
\end 

\define filpar(name)
<$list filter="[is[current]tagging[]tag[$:/Note]each[$name$]get[$name$]]" 
variable="something">
<$set name=TestVariable value=<<something>> > 
<$macrocall $name="thisList" name="$name$"/> <br>
</$set>
</$list>

<hr>

<$reveal type='nomatch' state='$:/temp/state/filpar/$name$' text='checked'>
<$button  set='$:/temp/state/filpar/$name$' setTo='checked' class=
'tc-btn-invisible' > 
<$list filter='[tag[$:/Note]has[$name$]]' variable="add">
<$action-listops  $tiddler="$:/temp/_HideStoryList" $field="list" $subfilter
="[<add>]"/>
</$list>
<$list filter='[prefix[$:/temp/state/filpar/$name$]]'>
<$action-setfield $tiddler=<<currentTiddler>>   text='checked'/>
</$list>
<input type="checkbox" checked="true"> -  uncheck all</$button>
</$reveal>
<$reveal type='match' state='$:/temp/state/filpar/$name$' text='checked'>
<$button set='$:/temp/state/filpar/$name$'  setTo='unchecked' class='tc-btn-
invisible' >
<$list filter='[tag[$:/Note]has[$name$]]' variable="remove">
<$action-listops  $tiddler="$:/temp/_HideStoryList" $field="list" 
$subfilter="-[<remove>]"/>
</$list>
<$list filter='[prefix[$:/temp/state/filpar/$name$]]'>
<$action-setfield $tiddler=<<currentTiddler>>   text='unchecked'/>
</$list>
<input type="checkbox" >  - check all</$button> 
</$reveal>
\end 

<<filpar nazvanie>> '''work!'''

<<filpar stoimost>> '''don't work :('''

I suspect the problem lies here: 

<$list filter="[is[current]tagging[]tag[$:/Note]each[$name$]get[$name$]]" 
variable="something">
<$set name=TestVariable value=<<something>> > 
<$macrocall $name="thisList" name="$name$"/> <br>
</$set>
</$list>

regards

On Wednesday, 20 January 2016 08:16:04 UTC+2, sini-Kit wrote:
>
> Please look again my experimental macros 
> <http://novye-podarki.ru/empty10_.html#%D0%A6%D0%B2%D0%B5%D1%82%D1%8B%20%D0%BB%D1%8E%D0%B1%D0%B8%D0%BC%D0%BE%D0%B9>
>   
> I make 2 same variants (work\ don't work) for the first variant "states" 
> are ready for second not. I want "check all" button not to look for 
> existing states and change their "text", but create them new by mask 
> <$action-setfield $tiddler='$:/temp/state/filpar/$name$/$(TestVariable)$' 
> text='unchecked'/> . is it possible? 
>
> вторник, 19 января 2016 г., 18:23:41 UTC+3 пользователь Matabele написал:
>>
>> Hi sini-Kit
>>
>> Had a look at your experimental wiki -- you 'check all' and 'uncheck all' 
>> buttons seem to work. I can't work out what problem you are trying to solve.
>>
>> regards
>>
>> On Tuesday, 19 January 2016 16:56:56 UTC+2, sini-Kit wrote:
>>>
>>>  Thank you Matabele! Last variant is the best. I put it to my experiment 
>>> macros 
>>> <http://novye-podarki.ru/empty10_.html#%D0%A6%D0%B2%D0%B5%D1%82%D1%8B%20%D0%BB%D1%8E%D0%B1%D0%B8%D0%BC%D0%BE%D0%B9>
>>>  but 
>>> I don' know how to solve last problem.
>>>
>>>  I make a list of checkboxes, and try to uncheck  them all by one 
>>> button. 
>>>
>>>  <$button class='tc-btn-invisible' > <input type="checkbox" 
>>> checked="true">
>>> <$list filter='[tag[$:/Note]has[$name$]]' variable="add">
>>> <$action-listops  $tiddler="$:/temp/_HideStoryList" $field="list" 
>>> $subfilter="[<add>]"/>
>>> </$list>
>>> <$list filter='[prefix[$:/state/someuniquenameforthisstuff]]'>
>>> <$fieldmangler tiddler=<<currentTiddler>>>
>>> <$action-setfield $tiddler=<<currentTiddler>>   text='checked'/>
>>> </$fieldmangler>
>>> </$list>
>>> </$button> -  uncheck all 
>>>
>>>  but it work only if all 
>>> $:/state/someuniquenameforthisstuff$(TestVariable)$ are ready. but all of 
>>> the will be created only if I check all my checkboxes. And it is not good. 
>>> Is it possible not to do <$list 
>>> filter='[prefix[$:/state/someuniquenameforthisstuff]]'> but create all 
>>> $:/state/someuniquenameforthisstuff$(TestVariable)$ with text "unchecked"?
>>>
>>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b731715c-9bfe-4b4d-8637-ab2e95744f50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to