Add property and Delete property

74 views
Skip to first unread message

Luis Gonzalez

unread,
Sep 16, 2019, 7:22:41 AM9/16/19
to TiddlyWiki
This button:

<$button>
<$action-setfield $tiddler="$:/Luis/bag" $index="sword" $value="1" />
Get objet
</$button>

Add the sword property with te value 1 in the datatiddler $:/Luis/bag.


What is the way to delete it? Something like:

<$button>
<$action-deletefield $tiddler="$:/Luis/bag" $index="sword" />
Delete objet
</$button>

TonyM

unread,
Sep 16, 2019, 7:54:09 AM9/16/19
to TiddlyWiki
There is a recent post on this. I believe you use setfield widget with no value.

Regards
Tont

Mohammad

unread,
Sep 16, 2019, 9:37:49 AM9/16/19
to TiddlyWiki
This is one of those ambiguous actions!
See this

--Mohammad

Luis Gonzalez

unread,
Sep 16, 2019, 2:59:12 PM9/16/19
to TiddlyWiki
Other question:

How can I delete all properties of a datatiddler?
so, how can I empty the datatiddler?



I want to make a phonebook with buttons for various actions:
  • Add a new entry
  • Delete a entry
  • Initialize the phonebook
Thanks!!

Mohammad

unread,
Sep 16, 2019, 3:05:18 PM9/16/19
to TiddlyWiki
This may answer some of your question

Luis Gonzalez

unread,
Sep 16, 2019, 5:10:50 PM9/16/19
to TiddlyWiki
The text field!! It's so easy, thanks.

The more I know about TW, the more I'm surprised

Icono sorprendido
Reply all
Reply to author
Forward
0 new messages