简体   繁体   English

如何在Worklight项目中启用WL.JSONStore?

[英]How to enable WL.JSONStore in Worklight project?

When I played with the sample Using_JSONStore, I always tested WL.JSONStore=="undefined" on Android Mobile Browser Simulator or on a Android Virtual Device Emulator, or on my real Android device (Android version 2.3.5). 当我玩示例Using_JSONStore时,我总是在Android移动浏览器模拟器,Android虚拟设备模拟器或真实的Android设备(Android版本2.3.5)上测试了WL.JSONStore ==“ undefined”。 How to enable the WL.JSONStore feature in the Worklight project? 如何在Worklight项目中启用WL.JSONStore功能? Thanks. 谢谢。

In Worklight 5.0.6.x, JSONStore is always part of the Android and iOS environments, so it is always present. 在Worklight 5.0.6.x中,JSONStore始终是Android和iOS环境的一部分,因此始终存在。 There is nothing to 'enable'. 没有什么可以“启用”的。

What you want to do, is perhaps initialize it, that is - use the init method . 您想要做的就是初始化它,即- 使用init方法 Is that what you're after? 那是你追求的吗?
Please also consult with the JSONStore documentation . 请同时查阅JSONStore文档

Enabling JSONStore Since IBM® Worklight® V6.0, JSONStore is an optional feature. 启用JSONStore自IBM®Worklight®V6.0起,JSONStore是一项可选功能。 To use JSONStore, you must take steps to enable it. 要使用JSONStore,您必须采取措施将其启用。

About this task To use JSONStore you must enable it by modifying the application-descriptor.xml file. 关于此任务要使用JSONStore,必须通过修改application-descriptor.xml文件来启用它。 Procedure Using the Application Descriptor Editor, open the file application-descriptor.xml Click the Design tab. 过程使用应用程序描述符编辑器,打开文件application-descriptor.xml。单击设计选项卡。 Under Overview, expand Application [your application's name]. 在概述下,展开应用程序[您的应用程序的名称]。 Click Optional Features. 单击可选功能。 Click Add. 单击添加。 Select JSONStore. 选择JSONStore。 Click Ok. 单击确定。 Under Worklight Project, right-click the folder titled with your application name. 在Worklight Project下,右键单击标题为您的应用程序名称的文件夹。 Select Run As…. 选择运行方式...。 Click Run on Worklight Development Server. 单击在Worklight Development Server上运行。

http://www-01.ibm.com/support/knowledgecenter/api/content/nl/it/SSZH4A_6.1.0/com.ibm.worklight.dev.doc/devref/t_enabling_jsonstore.html http://www-01.ibm.com/support/knowledgecenter/api/content/nl/it/SSZH4A_6.1.0/com.ibm.worklight.dev.doc/devref/t_enabling_jsonstore.html

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

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