dict.view with output? jstree attempt

Charles Matthews's icon

Has anyone looked into creating something along the lines of dict.view with access to keys on click, or know if there are any plans for an update to the object?

Am really happy with the recent updates to dict re hierarchy. I'm currently working on patch with a library of gamelan sequences classified by instrument, then tuning system, etc. This is fine for playback but I'm still struggling to work out a good interface for editing the dictionaries. The data is usually five or six levels down so I often resort to editing my JSON files as text or using a third party JSON viewer/editor e.g. http://itunes.apple.com/us/app/cocoa-json-editor/id442160773?mt=12. Ideally I would like to use something like dict.view to click on an item to either get the data or keys (depending on level) in order to insert a new object or delete or edit the data or name of the existing one.

I imagine there might be some existing code out there that could be used. I had a quick go at loading up jstree, using jweb and document title for output so that I can work with the examples in the documentation. Works so far but I am already way out of my depth! My JavaScript is still very basic and feel completely lost with something like this. I will probably look into it another day but concerned that I might be wasting my time on something convoluted that ultimately might not work. In fact as I type this I realise that I probably won't have any way of accessing the actual dictionary.

Is it worth pursuing this or has anyone got any suggestions? Could I be using jsui or something else instead of jweb?

Have attached this morning's effort in case anyone is interested- needs the jstree_pre1 folder available here http://www.jstree.com/

3874.jstree.zip
zip
PlinioDesignori's icon

did you get any further with it? Im stuck with the same problem/question...

Charles Matthews's icon

Afraid not. I've been busy working towards a performance so this has had to take a back seat for now...I decided I should try to focus on things that actually make sound for a bit! I also have a feeling what I was trying to do above wasn't going to work.

I'm planning to look at the problem again over the next couple of months so will post back here or please let me know if you think of anything.

PlinioDesignori's icon

great, let me know!

PlinioDesignori's icon
danieleghisi's icon

Bump and +1!

Does anybody have any clue about the possibility that dict.view be able at least to retrieve the key name when clicked? That would be so helpful...

DRKOSS's icon

Indeed - retrieving the key name when clicked would be outstanding - any ideas?