Re: [tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-14 Thread Hans Maulwurf
thanks guys, this helped me till the next problem ^^

\define basename() {{$:/isms/tmp/NewISMSElement!!name_base}}
\define elementid()
<$macrocall $name="macroGetElementID" fullName=$(basename)$/>
\end
\define elementtitle()
<$macrocall $name="macroGetElementTitle" fullName=$(basename)$/>
\end

Titel: <$edit-text tiddler='$:/isms/tmp/NewISMSElement' field='name_base' 
class='tc-edit-texteditor'/>

<$list filter="[!has[created]]">
<>
<$button to=<>>
not yet created ... create it!




how do I use the text from the macro "elementid" as a tiddler-name in the 
filter?

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/027ccef1-deb2-473f-9f74-23c7552bb9f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-13 Thread 'Mark S.' via TiddlyWiki
Unfortunately, I've never found it possible to pass a macro with a 
parameter inside another widget . You need to wrap it in a wrapper so the 
parameter is hidden. This worked for me, but I don't have your test data, 
or know how you're planning to use the results:

\define baseElem() <$macrocall $name=getElementID basename=$(basename)$/>
<$set name="basename" value={{$:/isms/tmp/NewISMSElement!!name_base}}>
<$set name="elementID" value=<> >



Good luck!
Mark



On Wednesday, July 13, 2016 at 7:59:01 AM UTC-7, Hans Maulwurf wrote:
>
> ok, one last question
>
> how do i give the variable "basename" to the inner macrocall inside the 
> second/nested set??
>
> <$set name="basename" value={{$:/isms/tmp/NewISMSElement!!name_base}}>
> <$set name="elementID" value=<> >> >
>
> 
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/833f2a16-aa95-47df-b18f-7d3a543f3c50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-13 Thread Jeremy Ruston
Hi Hans

> how do i give the variable "basename" to the inner macrocall inside the 
> second/nested set??

You’ll have to use an inner macro that composes the arguments to getElementByID 
using text substitution:

\define inner()
<$set name="elementID" value=<> >
...

\end
<$set name="basename" value={{$:/isms/tmp/NewISMSElement!!name_base}}>
<>


Best wishes

Jeremy

> 
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywiki@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/fefce051-d8d4-4c58-8ca8-ad737c752ba5%40googlegroups.com
>  
> .
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/30A10C33-15AE-4BA2-89ED-E58985CAD97F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-13 Thread Hans Maulwurf
ok, one last question

how do i give the variable "basename" to the inner macrocall inside the 
second/nested set??

<$set name="basename" value={{$:/isms/tmp/NewISMSElement!!name_base}}>
<$set name="elementID" value=<> >> >




-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/fefce051-d8d4-4c58-8ca8-ad737c752ba5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-11 Thread Hans Maulwurf
Great, thanks Jeremy

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/2a25f57c-73df-4075-acc6-08e2c63874ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] use reveal for showing/hiding a button depending on if tiddler with a specific name does exist?

2016-07-11 Thread Jeremy Ruston
Hi Hans

There’s one syntax problem that jumps out: you just need single curly braces 
inside the list filter:

Titel: <$edit-text tiddler='$:/tmp/NewISMSElement' field='name_base' 
class='tc-edit-texteditor'/>

<$list filter="[{$:/tmp/NewISMSElement!!name_base}has[created]]"><$button 
to=HelloThere>...click

Best wishes

Jeremy

> On 11 Jul 2016, at 13:40, Hans Maulwurf  wrote:
> 
> Why does this not work? I enter in the edit-field a tiddler name that surely 
> exists
> 
> Titel: <$edit-text tiddler='$:/tmp/NewISMSElement' field='name_base' 
> class='tc-edit-texteditor'/>
> 
> <$list filter="[{{$:/tmp/NewISMSElement!!name_base}}has[created]]"><$button 
> to=HelloThere>...click
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to tiddlywiki@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/8c7560c0-fa54-4253-a6f0-fc70bf358b63%40googlegroups.com
>  
> .
> 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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/1B4DC5D0-D766-4586-955C-DFCBF16D3916%40gmail.com.
For more options, visit https://groups.google.com/d/optout.