简体   繁体   English

从Eclipse中在Worklight项目中启用WL.JSONStore?

[英]Enabling WL.JSONStore in Worklight project from Eclipse?

I have a project in eclipse and using IBM Worklight but on my js file where i have placed this code 我在eclipse中有一个项目,正在使用IBM Worklight,但是在放置此代码的js文件中

WL.JSONStore.init(JSONStoreCollections).then(
            function(res) {
                WL.Logger.info('Response is :', res);
                WL.JSONStore.get(chekVodafoneData).findAll()

I am getting a red mark under WL.JSON and it show JSONStore is not enabled ? 我在WL.JSON下得到一个红色标记,它表明未启用JSONStore? I have already refered How to enable WL.JSONStore in Worklight project? 我已经参考过如何在Worklight项目中启用WL.JSONStore? , but it didn't helped much ? ,但没有太大帮助吗?

The reason you are getting the error that JSONStore is not enabled is because it is an "optional feature" and must be enabled in the application-descriptor.xml file. 出现未启用JSONStore的错误的原因是,它是“可选功能”,必须在application-descriptor.xml文件中启用。 Open this file in Eclipse, and in the "Design" tab simply right click "Optional Features" and select JSONStore. 在Eclipse中打开此文件,然后在“设计”选项卡中简单地右键单击“可选功能”,然后选择JSONStore。 This should remove any errors stating that JSONStore is not enabled. 这应该删除所有指出未启用JSONStore的错误。

For implementation details of a JSONStore, see: JSONStore Infocenter (6.1) 有关JSONStore的实现详细信息,请参阅: JSONStore信息中心(6.1)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM