Hello everyone,

I'm building a mini-utility for myself as I redesign my project management 
system. I'm trying to allow the user to enter an 'old' field name and 'new' 
field name, and then provide buttons to make the changes. Eventually to be 
a single button, but in two steps until I figure it out...

The below works only because I'm hard-coding the name of the 'old' field 
value as '*context*' (current value of *$:/temp/fieldchanger/from*) in the 
4th code line below. 

Short version: I essentially need the equivalent of 
{{!!{{$:/temp/fieldchanger/from}}}} to work, and know it must be a 
combination of <$set> and macros, but I can't figure it out and have been 
trying for hours.

Change from: <$edit-text tiddler="$:/temp/fieldchanger/from" tag="input" 
default=""/> Change to: <$edit-text tiddler="$:/temp/fieldchanger/to" tag=
"input" default=""/>

Step 1: <$button>Add New Field
<$list filter="[has{$:/temp/fieldchanger/from}]">
<$action-setfield $field={{$:/temp/fieldchanger/to}} $value={{!!context}}/>
</$list>
</$button>
| Step 2: <$button>Delete Old Field
<$list filter="[has{$:/temp/fieldchanger/from}]">
<$action-deletefield $field={{$:/temp/fieldchanger/from}}/>
</$list>
</$button>

<table>
<th>Title</th><th>{{$:/temp/fieldchanger/from}}</th><th>{{$:/temp/
fieldchanger/to}}</th>
<$list filter="[has{$:/temp/fieldchanger/from}]">
<tr>
<td><$link><$view field="title"/></$link></td>
<td><$transclude field={{$:/temp/fieldchanger/from}}/></td>
<td><$transclude field={{$:/temp/fieldchanger/to}}/></td>
</tr>
</$list>
</table>

Hoping someone can help! I've learned a lot about what 'wikifies' and what 
doesn't (macrocall vs <<>> for example), but can't seem to apply that 
knowledge into a parameter where my only option would be <<>> notation. 

-- 
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 post to this group, send email to [email protected].
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/a96fa03f-52c0-44d9-bd70-1deff67bfa12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to