I notice that your  action-listops for deletion doesn't specify an index 
attribute. Could that be the problem?

On Sunday, August 4, 2019 at 12:30:58 PM UTC-7, MagoArcade wrote:
>
> I'm writing a data tiddler editor, just with add and delete. Can;'t get 
> delete working. Code below:
>
> !Edit Relationship Types
> ----
> Existing Types:
>
>
> <$list filter="[[$:/_DTrelTypes]indexes[]sort[title]]" variable="key">
>
>
> </$list>
>
>
> ''Add New:''
> <$edit-text tiddler="$:/temp/EditRelTypes" field="newreltype" tag="input" 
> default="" class='tc-edit-texteditor' placeholder='Type a new relationship 
> type here'/>
>
>
> <$vars newrelvar={{$:/temp/EditRelTypes!!newreltype}}>
>
>
> <$button>Add Type
>
>
> <$action-listops $tiddler="$:/_DTrelTypes" $index=<<newrelvar>> 
> $subfilter=<<newrelvar>>/>
>
>
> </$button>
>
>
> <$button>Delete
>
>
> <$action-listops $tiddler="$:/_DTrelTypes" $subfilter="[remove[<<newrelvar
> >>]]"/>
>
>
> </$button>
>
>
> deltiddlr: <<deltiddler>>
>
>
> </$vars>
>
> I'm happy to have my key and value the same (essentially just need a list)
>
> Would be grateful for a steer
>
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8599d85d-0692-4883-ac1d-c26edd7988e8%40googlegroups.com.

Reply via email to