I have a tiddler with a custom field in it, and would like to be able to set its value from macro. Macro will be called everytime some other field of the same tiddler changes.Is there a way to achieve that?
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/jeP2-qlpdrk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Also, where can I find documentation about methods and properties of "this" object in javascript macros?
this.getVariable("currentTiddler")
but couldn't find any sort of documentation.
Same for story object, etc.
I have a tiddler with a custom field in it, and would like to be able to set its value from macro. Macro will be called everytime some other field of the same tiddler changes
Is there a way to achieve that?
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/jeP2-qlpdrk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
The trick that you can often use is to compose the elements of the filter through a macro definition. For example:\define myFilter()[is[current]tag[$(param)$]]\end<$set name="param" value={{!!myfield}}><$list filter=<<myFilter>> template="myTemplate"/></$set>
In your example, $(param)$ value will still be equal to that of myfield, right? I still can't see how to make param to be equal to what my macro returns. That is, I can print the result of the macro by adding <$macrocall name="mymacro" value={{!!myfield}}> to my tiddler, that's fine. However, I can't make $(param)$ to be equal to that string.
\define myFilter()<$macrocall name="mymacro" value=$(param)$>\enddoesn't work either.--Regards, Dmitry.
--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.