You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Benjamin Young <be...@couchone.com> on 2011/01/20 20:49:26 UTC

Re: schema-driven data entry UI

Hey Alexander,

Sorry to jump into this late, but you might enjoy checking out 
http://bigbluehat.github.com/reformed/

It's primarily a JSON editor (so far). There's some initial support for 
rendering more complex, HTML5 forms. Most recently, I've added Bespin 
for editing HTML & JavaScript that might appear within a JSON document 
(as with _design docs).

I've also begun adding JSON Schema support, but that's a moving target 
as well, so I may wait on that until the dust settles there a bit.

I'd love to have your thoughts/input if you get some time.

Hope your project continues well,
Benjamin

On 12/15/10 5:06 PM, Alexander Bolotnov wrote:
> Hi,
>
> Is there a tool (I suspect something like this exists for SQL databases)
> that will allow me to define a schema and build a data-entry UI that users
> will fill out to push data to couchDB? Or nothing has yet been created in
> this field and I have to write something by myself. Perhaps, something like
> this may exist for python or ruby but I couldn't find anything.
>
> Ideally, this would look like this:
>
>     1. I define a data schema (XML or anything, that's not important how)
>     something like:
>
> Name, Short description, Color, Image (attachment).
>
> It does not have to support data types, length, image size or any other
> validations.
>
>     1.
>
>     There is UI that will display fields of each of the data fields that
>     users can fill out and click a button.
>     2.
>
>     A document is created in couchDB.
>
> Futon does not seem to suit here since it's data entry process is schema
> free, besides, I haven't figured how to attach files in it and I don't want
> to users to learn all the woodoo.
>
> Many thanks for all your ideas on this.
> Alexander Bolotnov
> www.gorizont-zavalen.ru
>


Re: schema-driven data entry UI

Posted by Cory Zue <cz...@dimagi.com>.
While everyone is discussing this, you might also consider using
XForms [1].  XForms is a standard way to do protocol-driven forms that
supports pretty complicated repeat and branching logic.  My
organization wrote an application called couchforms [2] that takes
XForm submissions and sucks them in to CouchDB as json documents.
Couchforms is meant to be used in a django app, but the whole
parsing/doc creation happens in a single update handler [3] which
means you can post the XForms directly to couch and leave out django
entirely if you want.  There are lots of advantages to using XForms,
which will keep your data-entry UI decoupled from your storage/couch,
and the form can be easily ported to other platforms (e.g.  Android
using OpenDataKit [4]).  The wikipedia xforms link points to a lot of
other options, as well as some browser plug-ins to enter XForms in a
browser.

cheers,
Cory

[1] http://en.wikipedia.org/wiki/XForms
[2] https://github.com/dimagi/couchforms
[3] https://github.com/dimagi/couchforms/blob/master/couchforms/_design/updates/xform.js
[4] http://code.google.com/p/opendatakit/

--
Cory Zue
http://www.dimagi.com


On Thu, Jan 20, 2011 at 5:39 PM, Ernesto Freyre <ef...@itacademy.ec> wrote:
>
> jFormMap is a jQuery plugin I wrote one year ago to render Data Entry Forms
> in the web based on JSON Definitions, The form gather all form data into a
> JSON document.
>
> I havent published ever, but I do use it in personal and enterprise
> proyects.
>
> If anyone interested, just let me know, it ships with some good examples. It
> even has multilanguage support.
>
> Ernesto

Re: schema-driven data entry UI

Posted by Ernesto Freyre <ef...@itacademy.ec>.
jFormMap is a jQuery plugin I wrote one year ago to render Data Entry Forms
in the web based on JSON Definitions, The form gather all form data into a
JSON document.

I havent published ever, but I do use it in personal and enterprise
proyects.

If anyone interested, just let me know, it ships with some good examples. It
even has multilanguage support.

Ernesto

Re: schema-driven data entry UI

Posted by Ryan Ramage <ry...@gmail.com>.
There is also JSON Widget. A form can be generated client side based on a
'JSON schema'.

http://robla.net/jsonwidget/example.php?sample=blankaddr&user=normal

<http://robla.net/jsonwidget/example.php?sample=blankaddr&user=normal> A bit
quirky, but I would like to see more of these things.

On Thu, Jan 20, 2011 at 12:49 PM, Benjamin Young <be...@couchone.com>wrote:

> Hey Alexander,
>
> Sorry to jump into this late, but you might enjoy checking out
> http://bigbluehat.github.com/reformed/
>
> It's primarily a JSON editor (so far). There's some initial support for
> rendering more complex, HTML5 forms. Most recently, I've added Bespin for
> editing HTML & JavaScript that might appear within a JSON document (as with
> _design docs).
>
> I've also begun adding JSON Schema support, but that's a moving target as
> well, so I may wait on that until the dust settles there a bit.
>
> I'd love to have your thoughts/input if you get some time.
>
> Hope your project continues well,
> Benjamin
>
>
> On 12/15/10 5:06 PM, Alexander Bolotnov wrote:
>
>> Hi,
>>
>> Is there a tool (I suspect something like this exists for SQL databases)
>> that will allow me to define a schema and build a data-entry UI that users
>> will fill out to push data to couchDB? Or nothing has yet been created in
>> this field and I have to write something by myself. Perhaps, something
>> like
>> this may exist for python or ruby but I couldn't find anything.
>>
>> Ideally, this would look like this:
>>
>>    1. I define a data schema (XML or anything, that's not important how)
>>    something like:
>>
>> Name, Short description, Color, Image (attachment).
>>
>> It does not have to support data types, length, image size or any other
>> validations.
>>
>>    1.
>>
>>    There is UI that will display fields of each of the data fields that
>>    users can fill out and click a button.
>>    2.
>>
>>    A document is created in couchDB.
>>
>> Futon does not seem to suit here since it's data entry process is schema
>> free, besides, I haven't figured how to attach files in it and I don't
>> want
>> to users to learn all the woodoo.
>>
>> Many thanks for all your ideas on this.
>> Alexander Bolotnov
>> www.gorizont-zavalen.ru
>>
>>
>