Dear, everyone. I wounder to use TW5 as database, and I am making editor template.
I want to choose field value with drop-down list.
Could anyone tell me how to make it for template?
<$select field="LowVoltage">
<$list filter="[title[$:/Ship/LowVoltage]get[text]split[,]]">
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>
*I made editor for the tiddler, however It need setting one by one.
*My goal is without HTML the basic operations are, so I separate choices
to another tiddler "$:/Ship/LowVoltage".
Attached .tid file
editDataBaseEntry.tid
*It is editor template.
*I am a beginner of HTML. Sorry if it is elementary thing.
*TW5 let me start learning HTML. Thanks for the opportunity to grow!
<table>
<$list filter="[is[current]fields[]] -creator -created -text -title
-modified -modifier -color -tags -list" variable="fieldName">
<tr>
<td> <<fieldName>> </td>
<td> <$edit field=<<fieldName>>/> </td>
</tr>
</$list>
</table>
field:<$edit tiddler="$:/temp/editDataBaseEntry" field="Edit-field"/>
<$fieldmangler>
<$button>
<$action-setfield $field={{$:/temp/editDataBaseEntry!!Edit-field}}
$value="default" />
Add
</$button>
</$fieldmangler>
/
<$button>
<$action-confirm $message="Do you wish to delete the field?">
<$action-deletefield $field={{$:/temp/editDataBaseEntry!!Edit-field}} />
Delete
</$action-confirm>
</$button>
Product_11036_edit.tid
*It is data base tiddler. The datas on each fields.
Product_11036.tid
*Just show with edit template.
text:{{Product/11036||editDataBaseEntry}}
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/82b99425-7f8e-4790-80b1-d5ffacd14c47n%40googlegroups.com.
Product_11036_edit.tid
Description: Binary data
Product_11036.tid
Description: Binary data
editDataBaseEntry.tid
Description: Binary data

