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[,]]">
*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!
<> | <$edit field=<>/> |
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}}
Product_11036_edit.tid (126 Bytes)
Product_11036.tid (187 Bytes)
editDataBaseEntry.tid (829 Bytes)