The listops widget was made for adding items to a list field or index 
value. But since you're adding
items like  myindex=myindex, there isn't really a list field to manipulate. 
Or rather, the list will always
contain just one item.

Using the action-listop widget with the $filter attribute, I think you 
could set the $index value to empty. But you
can't remove the index entry entirely.

For deleting the entire item from the dictionary, which seems to be what 
you want, you can use
the action-setfield widget instead. The code below seems to work. 

Good luck!


!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-setfield $tiddler="$:/_DTrelTypes" $index=<<newrelvar>> />


</$button>


deltiddlr: <<deltiddler>>


</$vars>



On Sunday, August 4, 2019 at 12:38:33 PM UTC-7, MagoArcade wrote:
>
> I tried it with both - no difference.
>

-- 
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/aab38f2e-3851-4e95-a94f-9be57e26c932%40googlegroups.com.

Reply via email to