Hi,

For future reference you can use the following approach to explore the
returned object:

log.info(Object.keys(versionList));

The above statement will print the list of available functions and
properties in the versionList object.

Thanks,
Sameera



On Thu, Apr 28, 2016 at 4:23 PM, Pirinthapan Mahendran <pirintha...@wso2.com
> wrote:

> Hi Sabra,
>
> You can find the similar use case in [1].
>
> 1.
> https://github.com/wso2/app-cloud/blob/master/modules/jaggeryapps/appmgt/src/modules/application/application.jag#L868
>
> Thanks.
>
>
>
> Mahendran Pirinthapan
> Software Engineer | WSO2 Inc.
> Mobile +94772378732.
>
> On Thu, Apr 28, 2016 at 1:52 PM, Sabra Ossen <sa...@wso2.com> wrote:
>
>> Hi All,
>>
>> How do I obtain the objects from a list, returned by a java method, using
>> a jaggery app. Following "getAllVersionsOfApplication()" is the static java
>> method that returns the version objects list and a version object contains
>> the fields versionName and status.
>>
>> var versionList = 
>> ApplicationManager.getAllVersionsOfApplication(applicationKey);
>>
>> I have added the jar containing the Application Manager class to
>> AS_HOME/repository/components/dropins. Now from the jaggery app deployed in
>> WSO2 AS I need to obtain the values for variables of each of the version
>> object. Can someone help me on how to start with this issue.
>>
>> Thanks and Regards.
>>
>> --
>> *Sabra Ossen*
>> *Software Engineer*
>> Email: sa...@wso2.com
>> Mobile: +94 767 837356
>>
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to