[Sugar-devel] Datastore API for html activities

Daniel Narvaez dwnarvaez at gmail.com
Tue May 28 09:03:58 EDT 2013


On 28 May 2013 02:18, Manuel Quiñones <manuq at laptop.org> wrote:

> Or if a callback is needed for the asyncronous call, could it be only
> one?  Like:
>
> textObject = datastore.TextObject();
> textObject.load(onLoad);
>
> function onLoad(textObj) {
>     var text = textObj.getText();
>     var metadata = textObj.getMetadata();
> }
>

We need a way to load metadata only I think, but perhaps not a way to load
data only. So what you propose + getMetadata() should be good.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130528/27dea65f/attachment.html>


More information about the Sugar-devel mailing list