问题标签 [jsonstore]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
652 浏览

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

当我使用示例 Using_JSONStore 时,我总是在 Android Mobile Browser Simulator 或 Android Virtual Device Emulator 或我的真实 Android 设备(Android 版本 2.3.5)上测试 WL.JSONStore=="undefined"。如何在 Worklight 项目中启用 WL.JSONStore 功能?谢谢。

0 投票
1 回答
93 浏览

ibm-mobilefirst - Worklight jsonstore ,跟踪上次收集日期 - 怎么做

我们支持断开连接的移动应用程序,我们在本地存储的一些数据并在必要时更新,我们希望在我们更新带有日期和时间的 jsonstore 数据时跟踪并向用户显示,json store 上是否有一个 api 可以给我们这个信息,每个集合最后一次更新的日期和时间等。

0 投票
1 回答
928 浏览

storage - 如何检查设备上的 JSON 存储数据

我正在研究 IBM Worklight。我使用 JSON Store 开发了一个应用程序。我有一些与 JSON Store 相关的问题。
1.JSON Store有大小限制吗?
2.JSON Store 将数据存储在文件中对吗?如果我想查看 JSON 存储中的数据,如何在我的设备上查看?
3.设备的内存对JSON Store存储有影响吗?
4.在创建项目时...我找到了创建 --> 新 Worklight JSON Store 之类的选项。它的实际用途是什么?我无法使用该选项创建新的 JSON 存储。

0 投票
1 回答
523 浏览

ibm-mobilefirst - IBM Worklight 5.0.6.1 - 如何保护 JSONStore 数据

我想在我的 JSONStore 中设置密码。

此 IBM Worklight Information Center 5.0.6 文章中提到usePassword(pwd)已弃用。有没有其他方法可以为我的 JSONStore 提供密码?

0 投票
2 回答
1620 浏览

json - Load JSON file into JSON-Store is not working

below you can see my Login functionality, which actually is working. But it does not load the provided json file by the server into JSON Store.

"console.log("Store before load",UserStore)" and "console.log("Store after load",UserStore)" shows exactly the same message, so i guess "UserStore.load(jsonRes)" is not working at all. I also tried "UserStore.loadData(jsonRes)" and "UserStore.loadRawData(jsonRes)" which both work neither (Error: Uncaught TypeError: Object[object Object] has no method 'loadDataRaw'). Could you please explain me how to fix that issue? Thanks a lot.

The Json file provided look like this:

'user' itself looks like this: {"token":"ee80d56688fb7d3a8bcf5939fc9cbcf1","title":"","login":"bmuster","facebookId":"","firstName":"Bertha","lastName":"Muster","nationality":"GM","birthDay":"12/09/82","phone":"+4989111111","mobile":"+4918111111","street":"Musterstra\ufffde 11","city":"Musterstadt","zipCode":"66666","willingToTravel":"","pictureUrl":"","eMail":"bmuster@example.com","publicList":[]}

My Store is defined as follows:

The corresponding model:

Example of a View:

0 投票
1 回答
258 浏览

ibm-mobilefirst - IBM Worklight 6.0 - 从 Worklight 5.0.6 迁移后预览中的 JSONStore 错误

我有一个在 v5.0.6 中使用 JSONStore 的应用程序。
我将项目迁移到 v6.0 并尝试使用移动浏览器模拟器来测试 JSONStore 功能。

我在我的集​​合 JavaScript 文件中添加WL.Client.getEnvironment() === 'preview'了条件。if

但是,当我尝试获取集合的实例时,出现错误:

类型错误:WL.profileCollection 未定义

我认为这可能是因为版本 6 中不存在以下 API?

WL.namespace('WL.profileCollection');

这个问题的解决方法是什么?

0 投票
1 回答
323 浏览

ibm-mobilefirst - 使用 Worklight JSON Store 时面临的问题

我是 Worklight Studio 的新手,正在尝试使用 JSON Store。面对错误信息

未捕获的类型错误:对象 # 没有方法 'exec'

LogCat 中的消息:

0 投票
2 回答
327 浏览

ibm-mobilefirst - IBM Worklight - 如何在更新应用程序之前执行 JavaScript 代码?

当有新的软件更新可用时,如果用户将数据存储在 jsonstore 中,我需要允许用户在应用软件更新之前将它们提交到服务器,这样他/她未提交的更新就不会丢失。目前用户在安装更新之前无法使用该应用程序。

有没有办法在更新应用程序之前执行 JavaScript 代码,以便我可以在执行更新安装之前初始化 jsonstore、获取数据并发送到适配器?

0 投票
3 回答
1429 浏览

extjs - 如何从 sencha 的 jsonstore 中检索所有数据

早晨,

我在我的控制器中创建了一个商店,如下所示:

控制台日志显示正在正确创建和填充存储。我需要检索下拉列表的所有值。
我试过这个,但它返回未定义。我发现的所有其他信息似乎都在指导如何只找到一个值。检索所有数据最简单、最有效的方法是什么?

0 投票
1 回答
170 浏览

blackberry - IBM Worklight - JSONStore 支持

Worklight 的 JSONStore 功能是否支持 BlackBerry?

我的意思是,我可以在为 BlackBerry 开发应用程序时使用它吗?