Questions tagged [jsonstore]

JSONStore is an API in the IBM Worklight product. It provides offline encrypted storage on Android and iOS devices with an natural JavaScript API.

JSONStore is an API in the IBM Worklight product. It provides offline encrypted storage on Android and iOS devices with an natural JavaScript API.

265 questions
7
votes
4 answers

EXTJS Store issue with Null Values -- useNull: doesn't have an affect --Help?

Folks, I have a combobox component backed by a JSONStore. The data loaded into the store is returning null for the combobox's value. The value is an int. The JSON decode process is converting the null value into a zero; causing the combobox to…
John Gordon
  • 2,181
  • 5
  • 28
  • 47
6
votes
3 answers

extjs store error handling

I am trying to handle an exception in an Ext.data.Store instance when creating a new Ext.data.Record. When the server responds with the following json: {"success": false, "message": "some text"} I get an exception of type 'request', even though the…
kalan
  • 1,752
  • 4
  • 20
  • 35
5
votes
1 answer

How to load json store with multiple root elements?

In one of my projects I need to load the Json store with a JSOn server response as follows. In the JSon response i am getting 2-3 root elements. but in the store configuration i can only provide 1 root element. { {"level2List":[{id:'id1',…
Sanjeeva
  • 67
  • 1
  • 6
5
votes
2 answers

ExtJS 4.1.1a : JsonStore + proxy + url = "Cannot call method 'indexOf' of undefined"

This code block works : Ext.define('MyApp.store.MyJsonStore', { extend: 'Ext.data.Store', fields: ['fieldName'], proxy: { type: 'ajax', url: 'json.php', reader: 'json' } }); This one crashes…
user1636522
4
votes
1 answer

JSONStore Worklight - Size Limit

JSONStore provides us with a great way to sync data with a server and track changes a user makes while offline. Is there a limit as to how much information could be saved on JSONStore? I found that Webkit database has a limit of 5 MB where as…
lakssundar
  • 61
  • 6
3
votes
1 answer

How to get the list of fields from unknown JsonStore objects?

Writing a function to generate and push some random data inside of the unknown passed data store object. I know I can iterate over records and then iterate over fields, but I need to have the list of fields before starting to push random generated…
Sadegh
  • 33
  • 2
3
votes
1 answer

ComboBox only shows displayField when clicked

I have an EditorGridPanel which I show via a Ext.Window. resourcesis the Json-data I get via an Ajax-call. Example data: {"data":[{"id":"1","allowed":"1","roleId":"0","resource":"nothing"}]} The problem is that the displayField of the ComboBox is…
iarwain01
  • 424
  • 3
  • 11
3
votes
0 answers

IBM MobileFirst Hybrid JSONStore Not Encrypted After Key In ID and Password

I had input ID and password for JSONStore to initialize var collection = {}; var option = {}; var VERSION_COLLECTION = "versionCollection"; option.username = "TESTID"; option.password = "TESTPASSWORD"; option.localKeyGen =…
Terry Chew
  • 365
  • 1
  • 7
3
votes
3 answers

CloudantSync vs. JSONStore

Could someone please explain the key differences between JSONStore and CloudantSync (CDTStore) (and as a bonus PouchDB) on the MobileFirst Platform? I am having difficulty deciding which one would be better to use. I see that the documentation here…
Ted Hogan
  • 51
  • 4
3
votes
1 answer

IBM Worklight 6.2 - error on StoragePlugin

I upgraded from Worklight 6.1.0.1 to 6.2 and since then, my app stopped loading JSONStore successfully. It says it can't find the class StoragePlugin, although the class is actually there in the worklight-android.jar It is also declared in the…
3
votes
1 answer

Worklight JSONStore data sync process with server

I have implemented JSONStore sync process as follows: 1.Push the local changes to the server 2.If pushing data is successful then wipe out all existing local data. 3.Load the fresh copy of data from server. I need to know is this process of data…
3
votes
1 answer

Loading DB values into Combo box - EXTJS

I need to load db values to a combo box. I can't figure out, why values are not loading into combo box. By firebug, console.log values are printed out. Here is my code for combo box, var groups = new Ext.data.JsonStore({ fields: [{ id:…
DarkRose
  • 125
  • 4
  • 12
2
votes
1 answer

Ext Js - How to Reference Store Values

I'm trying to read grid values from within a load event of my form. The ordersStore.load() loads my grid with data, but I don't get a record returned using getAt. Is there a better way to do this? Thanks. client_form.on({ actioncomplete:…
hadenp
  • 445
  • 3
  • 9
2
votes
1 answer

Ext JS: Override JsonReader or post-process

A particular request to my server returns x fields of JSON. I want to combine several of these fields and insert the concatenated data into the x+1 field of my JsonStore. I know how to process the load event, read each record, concatenate the…
Upperstage
  • 3,747
  • 8
  • 44
  • 67
2
votes
2 answers

Using jsonstore in Kivy

I created a GUI based off this question while trying to teach myself how to use jsonstore. I don't have the reputation points to add a comment so I'm asking my question here. I think I have the basic idea down but for some reason I can't save the…
Jarren Poulsen
  • 141
  • 1
  • 13
1
2 3
17 18