dropdown from source

82 views
Skip to first unread message

Gerald Weis

unread,
Oct 8, 2020, 7:54:04 AM10/8/20
to TiddlyWiki
hi friends of tiddlywiki
the blue code is the original
rest is trying  to change of dropdown

\define NeuerZyklus(Kennzeichen Sache Jahr)
<$button>''$Sache$'' für das Jahr ''$Jahr$''
<$action-createtiddler $basetitle="$Kennzeichen$-$Sache$ - $Jahr$" tags="[[$Kennzeichen$]] [[$Sache$]]" text={{$Kennzeichen$-$Sache$ - VORLAGE}}/>
</$button>
\end

<$vars ph="Geben Sie den Text für den Tiddler ein">
<tr><td>Sache:</td><td>
<select tiddler="$:/temp/Sache" tags=input>
<option value="Benzin" >Benzin </option>
<option value="Fahrzeugpflege" >Fahrzeugpflege </option>
<option value="Inspektionen/TÜV" >Inspektionen/TÜV </option>
<option value="Reparaturen/Wartung" >Reparaturen/Wartung </option>
<option value="Scheibenwischer" >Scheibenwischer </option>
</select>

<!--
<$edit-text tiddler="$:/temp/Sache" tag=input size=30 placeHolder=<<ph>> default="Sache"/>
-->
</td>
<td>Kennzeichen:</td><td> <$edit-text tiddler="$:/temp/Kennzeichen" tag=input size=12  placeHolder=<<ph>> default="Kennzeichen"/></td>
<td>Jahr:</td><td><$edit-text tiddler="$:/temp/Jahr" tag=input size=4 placeHolder=<<ph>> default="2020"/></td></tr>
</$vars>

<$macrocall $name=NeuerZyklus Kennzeichen={{$:/temp/Kennzeichen}}  tiddler={{$:/temp/Sache}} Jahr={{$:/temp/Jahr}}/>
<<tabs [tag[Inhalt]!sort[created]] "" "$:/state/Inhalt" "tc-vertical">>

Its dont work.
i don't no what's wrong.

Any Ideas?

Thanks for help
Gerald

Eric Shulman

unread,
Oct 8, 2020, 9:27:20 AM10/8/20
to TiddlyWiki
On Thursday, October 8, 2020 at 4:54:04 AM UTC-7, Gerald Weis wrote:
<select tiddler="$:/temp/Sache" tags=input>
<option value="Benzin" >Benzin </option>
<option value="Fahrzeugpflege" >Fahrzeugpflege </option>
<option value="Inspektionen/TÜV" >Inspektionen/TÜV </option>
<option value="Reparaturen/Wartung" >Reparaturen/Wartung </option>
<option value="Scheibenwischer" >Scheibenwischer </option>
</select>

<!--
<$edit-text tiddler="$:/temp/Sache" tag=input size=30 placeHolder=<<ph>> default="Sache"/>
-->
I don't know what's wrong.

1) The widgetname needs a leading "$".... i.e., <$select ...> and </$select>
2) The $select widget doesn't use a tags="..." param, so this is unneeded (but otherwise ignored)

-e

 

Gerald Weis

unread,
Oct 8, 2020, 9:48:58 AM10/8/20
to TiddlyWiki

Hallo Eric

My Problem is

i need the two tags where are input in the field Kennzeichen and the field Sache

How can i do that?

How i must change the code?

Gerald Weis

unread,
Oct 8, 2020, 12:56:42 PM10/8/20
to TiddlyWiki
Hello Friends
i have found an solution

<code>

\define NeuerZyklus(Kennzeichen Sache Jahr)
<$button>''$Sache$'' für das Jahr ''$Jahr$''
<$action-createtiddler $basetitle="$Kennzeichen$-$Sache$ - $Jahr$" tags="[[$Kennzeichen$]] [[$Sache$]]" text={{$Kennzeichen$-$Sache$ - VORLAGE}}/>
</$button>
\end

<$vars ph="Geben Sie den Text für den Tiddler ein">
<tr><td>Sache:</td>
<td colspan=3>
<$select tiddler="$:/temp/Sache">

<option value="Benzin">Benzin</option>
<option value="Fahrzeugpflege">Fahrzeugpflege</option>
<option value="Inspektionen/TÜV">Inspektionen/TÜV</option>
<option value="Reifen/Felgen">Reifen/Felgen</option>

<option value="Reparaturen/Wartung">Reparaturen/Wartung</option>
<option value="Scheibenwischer">Scheibenwischer</option>
</$select>
</td>
<td colspan=3><$edit-text tiddler="$:/temp/Sache" tag=input size=30 placeHolder=<<ph>> default="Sache"/></td></tr>
<tr><td>Kennzeichen:</td><td> <$edit-text tiddler="$:/temp/Kennzeichen" tag=input size=12  placeHolder=<<ph>> default="Kennzeichen"/></td>
<td>Jahr:</td><td><$edit-text tiddler="$:/temp/Jahr" tag=input size=10 placeHolder=<<ph>> default="2020"/></td></tr>
</$vars>

<$macrocall $name=NeuerZyklus Kennzeichen={{$:/temp/Kennzeichen}}  Sache={{$:/temp/Sache}} Jahr={{$:/temp/Jahr}}/>

<<tabs [tag[Inhalt]!sort[created]] "" "$:/state/Inhalt" "tc-vertical">>
</code>

now i'm searching for an possibilty the field
<$edit-text tiddler="$:/temp/Sache" tag=input size=30 placeHolder=<<ph>> default="Sache"/>
to set invisible

Any Ideas?

thanks
Gerald
Reply all
Reply to author
Forward
0 new messages