[ckan-dev] adding new rows via Recline

Jim Craner jim at codeforamerica.org
Tue Aug 21 18:10:58 UTC 2012


Thanks for the quick reply, Rufus...

So if we want to use a CSV stored in CKAN's DataStore as an actual
base for ongoing data collection, the solution for adding new rows
would be to write an app against the API for inserting rows into a
specific resource?

Thanks again!
Jim

On Tue, Aug 21, 2012 at 11:06 AM, Rufus Pollock <rufus.pollock at okfn.org> wrote:
> 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
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev



-- 
-----
Jim Craner, 2012 Fellow
Code for America
jim at codeforamerica.org
(+1) 773-809-4546
http://codeforamerica.org




More information about the ckan-dev mailing list