[ckan-dev] Saving "state" for changes to Recline

Aaron Couch acinternets at gmail.com
Mon Dec 3 21:47:58 UTC 2012


Thanks Rufus. Your notes are a great time-saver. I'll post my progress if
I've got anything useful to share as I dig into this.

-Aaron


On Mon, Dec 3, 2012 at 12:59 PM, Rufus Pollock <rufus.pollock at okfn.org>wrote:

> On 3 December 2012 14:16, Aaron Couch <acinternets at gmail.com> wrote:
>
>> I think it would be a really powerful feature if one could save changes
>> that had been made to a Recline visualization through the user interface.
>> An example would be changing the default number of records returned from
>> 100 to 200 or saving certain settings to a Graph or Map view.
>
>
> This is already supported with the name "State" ;-) See for example the
> discussion here:
>
> http://reclinejs.com/docs/views.html
>
> And this example of gathering all state data together in multiview:
>
> https://github.com/okfn/recline/blob/master/src/view.multiview.js#L351
>
> You can obviously just do it per view e.g. for the graph view:
>
> graphView.state.toJSON()
>
> Should do what you want ...
>
> Rufus
>
>
>> From the CMS side this seems feasible as you could save and pass certain
>> variables for each dataset.
>>
>> Does anyone know if this is possible, and if so, what the best approach
>> would be on the Recline side? Has this been done or discussed before? I'd
>> be interested in helping develop a solution.
>>
>> Thanks,
>>
>> -Aaron
>>
>> Aaron Couch
>> Director of Engineering for Civic Solutions
>> *
>> *
>> New Amsterdam Ideas
>> *Online*: http://nuams.com
>> *Offline: *(215) 315-7915
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> --
> Co-Founder, Open Knowledge Foundation
> Promoting Open Knowledge in a Digital Age
> http://www.okfn.org/ - http://blog.okfn.org/
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20121203/7feeeec8/attachment-0001.html>


More information about the ckan-dev mailing list