\define nextItem(parent) <$set filter='[tag[$parent$]first[]]' name=emptyTid > <$set filter='[tag[$parent$]after{!!temp}]' name=NewIndex emptyValue=<<emptyTid>> > <$action-setfield $tiddler={{!!title}} temp=<<NewIndex>> /></$set></$set>\end
<$button actions=<<nextItem "myTag">> >Next</$button>
\define nextItem(parent) <$set filter='[tag[$parent$]after{!!temp}]' name=NewIndex emptyValue='[tag[$parent$]first[]]' > <$action-setfield $tiddler={{!!title}} temp=<<NewIndex>> /></$set>\end
<$button actions=<<nextItem "myTag">> >Next</$button>
But if I directly set the emptyValue and I have used only one set widget. But it does not work!!
\define nextItem(parent)<$setfilter='[tag[$parent$]after{!!temp}]'name=NewIndexemptyValue='[tag[$parent$]first[]]'><$action-setfield$tiddler={{!!title}}temp=<<NewIndex>>/></$set>\end
<$button actions=<<nextItem "myTag">> >Next</$button>
What is the problem? Why I have to use two set widegets?
\define nextItem(parent)<$setfilter='[tag[$parent$]after{!!temp}]'name=NewIndexemptyValue={{{ [tag[$parent$]first[]] }}}><$action-setfield$tiddler={{!!title}}temp=<<NewIndex>>/></$set>\end
<$button actions=<<nextItem "myTag">> >Next</$button>
--/Mohammad
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/b4d6080c-3bcb-4d9a-a34b-421def0a6d82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{!!title}
{!!title}
<myVar>
<<myVar>>
\define nextItem(parent) <$set
filter={{{ [tag[$parent$]after{!!temp}]}}} name=NewIndex emptyValue='[tag[$parent$]first[]]' > <$action-setfield $tiddler={{!!title}} temp=<<NewIndex>> /></$set>
\end