First I'd like to thank you. I didn't want my problem to take so much space 
and I certainly didn't expect this generous help. 

I couldn't achieve my goal with your javascript macro, but I feel we are 
very close:) The problem seems to be again the macro not evaluating 
correctly a given variable. So I tried to $macrocall your javascript macro, 
which didn't work at first because your macro definition wasn't in the same 
tiddler as the call (as it seems to me). I turned to the starting point 
using simple css (thanks to Eric Shulman):

\define lower(text)
@@text-transform: lowercase;$text$@@
\end

\define lower2()
<$macrocall $name="lower" text=$(setsort)$/>
\end

<$set name="setsort" value="Rand" >
<<lower2>>
</$set>

Everything works fine (resulting in *rand *in the text field). But as I try 
to direct the output to a field by the buttonWidget (code down), the last 
step isn't evaluated anymore (resulting in *<$button set="!!somefield" 
setTo=Rand/>* in the *somefield *field).

<$set name="setsort" value="Rand" >
<$button set="!!somefield" setTo=<<lower2>>/>
</$set>

What do think about this?

jim

 

Am Freitag, 12. September 2014 10:35:07 UTC+2 schrieb jim:
>
> Hello
> I'd need a small macro with no other purpose than putting a specified text 
> to lower/upper case. I am sure this isn't difficult to implement; 
> nevertheless I require your help.
>
> jim
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to