What's the "type" of your tiddler?

As you seem to understand JavaScript, have a look at the getTiddler 
definition:

exports.getTiddlerData = function(titleOrTiddler,defaultData) {
        var tiddler = titleOrTiddler,
                data;
        if(!(tiddler instanceof $tw.Tiddler)) {
                tiddler = this.getTiddler(tiddler);     
        }
        if(tiddler && tiddler.fields.text) {
                switch(tiddler.fields.type) {
                        case "application/json":
                                // JSON tiddler
                                try {
                                        data = JSON.parse(tiddler.fields.text);
                                } catch(ex) {
                                        return defaultData;
                                }
                                return data;
                        case "application/x-tiddler-dictionary":
                                return 
$tw.utils.parseFields(tiddler.fields.text);
                }
        }
        return defaultData;
};


Maybe this clarifies why you cannot access CSV data?

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/636c25a5-9f19-4727-8e80-e832bb885bb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to