You can access the content with userReg.content(path);

Refer to [1] for a sample where we read and write resources from registry
with product ES.

[1] -
https://github.com/wso2/carbon-store/blob/master/apps/publisher/modules/registry/registry.operator.js

thanks,
Chanaka

On Wed, Sep 16, 2015 at 5:06 PM, Himasha Guruge <himas...@wso2.com> wrote:

>
> Hi,
>
> In an ES asset extension, I'm saving a resource (text with some html tags)
> to the registry, and later on with ajax GET i'm trying to retrieve that
> content. ( var result = userReg.get(path))
>
>  A result object is given but when trying to access result.content it
> gives null. Any idea how to overcome this? I was creating the resource
> before with mediaType:text/plain. Could changing the mediaType solve this?
>
>
> Thanks,
>
> Himasha Guruge
> *Software Engineer*
> WS*O2* *Inc.*
> Mobile: +94 777459299
> himas...@wso2.com
>



-- 
Chanaka Jayasena
Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
email: chan...@wso2.com; cell: +94 77 785 5565
blog: http://chanaka3d.blogspot.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to