Thanks Chanaka, will try it out.
Regards, Himasha On Thu, Sep 17, 2015 at 10:15 AM, Chanaka Jayasena <[email protected]> wrote: > 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 <[email protected]> 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 >> [email protected] >> > > > > -- > Chanaka Jayasena > Senior Software Engineer; WSO2, Inc.; http://wso2.com/ > email: [email protected]; cell: +94 77 785 5565 > blog: http://chanaka3d.blogspot.com > -- Himasha Guruge *Software Engineer* WS*O2* *Inc.* Mobile: +94 777459299 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
