[ckan-dev] adding new rows via Recline

Rufus Pollock rufus.pollock at okfn.org
Tue Aug 21 18:06:28 UTC 2012


On 21 August 2012 18:17, Jim Craner <jim at codeforamerica.org> wrote:
> Hi all,
>
> The CKAN Data API docs say:
>
> "Note: The DataStore Python client library has support for inserting,
> updating (in bulk) and deleting. There is also support for these
> operations in the ReclineJS javascript library."
>
> Can anyone point me to how to add new records to a CSV resource via
> the ReclineJS preview panel?  I'm not seeing it in the interface nor
> from a few cursory greps in application.js.  Is there something I have
> to enable somewhere?

This is not possible via the UI as embedded in CKAN at the present.
Specifically:

a) we use the SlickGrid grid by default which does not (yet) have edit support
b) the simple grid does have edit support but not have add rows
support in the UI yet)

I do note that SlickGrid has good editing/adding rows support so
adding this to the Recline UI would not be that hard *and* the
elasticsearch backend has support for updating and adding:
https://github.com/okfn/recline/blob/master/src/backend.elasticsearch.js#L62

Rufus




More information about the ckan-dev mailing list