This jovial example is not entirely mad. "Fred's" life would a lot easier IF he had a simple way to capture the RENDERED HTML of his dynamically created reports to a New Tiddler on the day he made one. Then he could have his needed archive of results ready and to hand.
---
Technically what I can see is the "Export" to HTML does produce rendered pages. But for this purpose only the contents of the <body> section would be needed for a Tiddler since everything else needed for layout is already there.
Has anyone ever dealt with this issue, i.e. capture Rendered HTML of a dynamic Tiddler and copy it to a New Tiddler?
Please ask me to clarify if my question is not clear.
Best wishes
Josiah
Apparently his report was leeked.
\define getsnaptitle()
$(currentTiddler)$ Snapshot
\end
<$wikify name="outputter" text={{!!text}} output="html">
<$button>
<$set name=snaptitle value=<<getsnaptitle>>>
<$action-sendmessage $message="tm-new-tiddler" title=<<snaptitle>> tags="Snapshot" text=<<outputter>>/>
SNAP
</$set>
</$button>
</$wikify>
<$edit-text tiddler="$:/core/ui/Buttons/snapshot"/>
<$action-sendmessage $message="tm-save-tiddler" title=<<snaptitle>>/>
\define report()
Report: {{$:/temp/reporttitle}}
<$list filter="[tag[HelloThere]]">
! <$view field="title"/>
<$view field="text"/>
</$list>
\end
<$edit-text tiddler="$:/temp/reporttitle" tag="input" size="50" default="Your Title Here"/>
<$wikify name="snapshot" text="<<report>>" output="html">
<$button>
<$action-sendmessage $message="tm-new-tiddler" title={{$:/temp/reporttitle}} tags="Snapshot" text=<<snapshot>>/>
Make Snapshot
</$button>
</$wikify>
Your report will look something like the information below:
----
<<report>>
I did a test of a WikiText tiddler of this table ...
Then did the SNAP and got this HTML version ...
\define report()
Report: {{$:/temp/reporttitle}}
<$list filter="[tag[HelloThere]]">
! <$view field="title"/>
{{!!text}}
</$list>
\end
<$edit-text tiddler="$:/temp/reporttitle" tag="input" size="50" default="Your Title Here"/>
<$wikify name="snapshot" text="<<report>>" output="html">
<$button>
<$action-sendmessage $message="tm-new-tiddler" title={{$:/temp/reporttitle}} tags="Snapshot" text=<<snapshot>>/>
Make Snapshot
</$button>
</$wikify>
Your report will look something like the information below:
----
<<report>>
\define getsnaptitle()
$(currentTiddler)$ Snapshot
\end
<$list filter="[all[current]!has[draft.of]] -[[R]]">
<$wikify name="outputter" text={{!!text}} output="html">
<$button>
<$set name=snaptitle value=<<getsnaptitle>>>
<$action-sendmessage $message="tm-new-tiddler" title=<<snaptitle>> tags="Snapshot" text=<<outputter>>/>
SNAP
</$set>
</$button>
</$wikify>
</$list>
\define report()
Report: {{$:/temp/reporttitle}}
<$list filter="[{$:/temp/myfilter}]">
! <$view field="title"/>
{{!!text}}
<
/$list>
\end
<$edit-text tiddler="$:/temp/myfilter" tag="input" size="50" default="Name of field to copy"/><br/>
<$edit-text tiddler="$:/temp/reporttitle" tag="input" size="50" default="Your New Title Here"/>
<$wikify name="snapshot" text="<<report>>" output="html">
<$button>
<$action-sendmessage $message="tm-new-tiddler" title={{$:/temp/reporttitle}} tags="Snapshot" text=<<snapshot>>/>
Make Snapshot
</$button>
</$wikify>
\define journalButton()
<$wikify name="outputter" text={{MyReport}} output="html">
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}}>
<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="$(journalTags)$" text=<<outputter>>/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
Create Report!
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span>
</$list>
</$button>
</$wikify>
\end
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
<$set name="journalTags" value="[[My Reports]]">
<<journalButton>>
</$set></$set>
CaPiTaLiZation Is ImporTanT.