The ability to edit tables in view mode has been very demanded since TW5 came out. Maybe This is not as easy as many people would like to but it demonstrates how powerful and flexible TW5 can be.
First of all, the list of needed tiddlers. Drag and drop all of them to your TW window.
If you already have the newTiddler widget from (tiddlystuff) you have to update to this version. This version has been modified by me to add some features such clearing the temporary tiddlers and defining tags without using a skeleton. This makes the process of creating new tables easier. This edition should be retro compatible but make a backup first.
Ok, this is the worst part of all the process.
At this point to can start using the table as a standalone tiddler if you want, as a contacts database or whatever.
You can transclude it to other too tiddlers if you want, but PLEASE read the section below.
You can add a new entry filling the first's row cells and clicking the plus button. The table will create a new entry with the provided data. You don't have to fulfill all the fields. Only the table title is mandatory.
Clicking will enable the edit mode of that row. Here you can edit all the columns except the first one. This is because the first one is the tiddler title and can't be edited this way. You can always open the tiddler which tat row represents and edit the title. In edit mode clicking will delete the row and the related tiddler. Clicking will exit the edit mode for that row. This does not actually saves the row because it is saved as you type.
If you want to transclude it to other tiddlers always use the {{!!tableName}} notation. This is mandatory because the table depends on its tiddler fields. If you transclude the table using the transclude widget the table will try to grab those fields from the tiddler it is transcluded to. You can create the required fields in the destination tiddler but that way you will have only ONE table.
Here you have a live example of a contacts database. You can play around with it, add records, edit them and erase them. This has been transcluded using {{Editable-Table}}. As I said before clicking on the table headers does nothing in 5.0.8 and older, but in TW 5.0.9 this will sort the table by that column. There is no action needed by your side, it is already ready for the update.
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Maybe this behavior is too sensible. Looks like programming when you forget a ; but at leas semicolon is visible! ;)
I see. Obviously I missed Danielo's question about why his code didn't work anymore.
It seems to me that there are quite a few things that the main Tiddlywiki site link to but that don't actually work with the available versions. I suppose that until the program gets more stable that will always be the case.
Does anyone have a good guess as to when Tiddlywiki will be ready for prime time?
Stephen
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.
Then for good measure I also did the drop and drag on the three sample entry tiddlers, Danielo, Dorothy and Full.
Because sometimes the things aren't live until you load them, I saved the wiki and reloaded it.
The Editable-Table tiddler looks like this:
| Edit | |
|---|---|
|
| |
| Danielo |
|
| Dorothy |
|
| Full |
|
with the plus sign next to the word Name and the writing pen next to the names. On the Braintest page it I get Name, User, Grupo, Role and for Ful, I get bla, bla and bla. When I click on the writing pen icon I get editable spaces while on mine I get nothing.
Obviously I am missing something but I'm not sure what. Perhaps an unlisted tiddler. I just don't know.
I love the idea of editable tables but...
--
And Full, Danielo, and Dorothy. Just for good measure, I also grabbed Inline Editable Tables so I would have the full documentation.
There is also one thing I don't understand, Danielo. In the text it says that you must use {{!!MyTable}} and yet your live example seems to work fine with {{Editable-Table}}. Is this a carryover from an earlier version of Tiddlywiki or am I missing something?
Stephen