How can I render the results of a list to static text in a new tiddler?

99 views
Skip to first unread message

Jan

unread,
Sep 24, 2016, 6:59:25 PM9/24/16
to tiddlyWiki
Hello,
sorry for reposting this question nearly identically. Is it so
difficult, too easy or did the question not make clear what I want?

I want gather Information of a survey in a tiddler. Students are allowed
to rate tiddlers.
I would like to print the result of
(1)<$list filter="[rating[1]]">~{{!!title}}</$list>
(2)<$list filter="[rating[2]]">~{{!!title}}</$list>
(3)<$list filter="[rating[3]]">~{{!!title}}</$list>
...
(idee)<$list filter="[tag[idee]]">~{{!!source}}</$list>
to a Tiddler called "Survey" as static Text.
The Text of the Tiddler will then be pasted into an URL to propolate a
field in a google-form.

Thanks for help!
Jan

Thomas Elmiger

unread,
Sep 25, 2016, 12:12:27 PM9/25/16
to TiddlyWiki
Hi Jan

Did you try to use the Wikify widget?
http://tiddlywiki.com/#WikifyWidget

Good luck!
Thomas

Jan

unread,
Sep 25, 2016, 4:36:02 PM9/25/16
to tiddl...@googlegroups.com
Hi Thomas,
Thanks a lot. Obviously I have not discoverd the trick to use the
wikify-widget yet.
The construction below delivers the Text of the function in the Tiddler,
not the desired results...

\define generatereport()
<$wikify>
(1)<$list filter="[rating[1]]">~{{!!title}}</$list>
(2)<$list filter="[rating[2]]">~{{!!title}}</$list>
(3)<$list filter="[rating[3]]">~{{!!title}}</$list>

(idee)<$list filter="[tag[Idee]]">~{{!!source}}</$list>
</$wikify>
\end

<$button>
<$action-sendmessage $message="tm-new-tiddler" title="Umfrageergebnisse"
text=<<generatereport>>/>
Generate Report
</$button>

How do I make it render the text.

Thanks Jan

Thomas Elmiger

unread,
Sep 26, 2016, 7:17:21 AM9/26/16
to TiddlyWiki
Hi Jan
This is how I THINK, it might work (see below). The Wikify widget defines the value of a variable (here: output) as text.
Good luck!
Thomas

\define generatereport()
(1)<$list filter="[rating[1]]">~{{!!title}}</$list>
(2)<$list filter="[rating[2]]">~{{!!title}}</$list>
(3)<$list filter="[rating[3]]">~{{!!title}}</$list>

(idee)<$list filter="[tag[Idee]]">~{{!!
source}}</$list>">
\end

<$button>
<$wikify name="output" text=<<generatereport>>>
<$action-sendmessage $message="tm-new-tiddler" title="Umfrageergebnisse"
text=<<output>>/>
Generate Report
</$wikify>
</$button>

Jan

unread,
Sep 26, 2016, 4:05:43 PM9/26/16
to tiddl...@googlegroups.com
Hi Thomas,
You're right, this works!
Thanks a lot.

Jan
--
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/a48b4026-2a52-4caf-9b7a-eafe39765e1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages