I'm just learning how to use JSONStore for mobile local data in an hybrid application. I didn't find any way to query JSONStore synchronously. I mean as I would select from a relational one.
Is it possible? Or is the only option to use the returned promise (that's asynchronous, I guess)?
How to make a synchronous query with MobileFirst JSONStore
168 Views Asked by user17417 At
1
There are 1 best solutions below
Related Questions in IBM-MOBILEFIRST
- App will throw exception at when I first login when device SSO is enabled
- Can I use a MobileFirst app without the MobileFirst server?
- How to update a app version in the MobileFirst pruduction server 7.0?
- IBM MobileFirst Java adapter for WS SOAP
- IBM Mobilefirst 7.0 - Can we deploy IOS native code?
- Recommended way to force MobileFirst-CLI to use Java 6?
- Read adapter procedure requestTimeoutInSeconds from worklight.properties file
- IBM Worklight 6.2 Development Server Stops Automatically
- IBM worklight Native to Hybrid Migration
- Worklight Server/DB down, Hybrid app shows a dialog with "Server is temporarily unavailable". No error callback?
- MobileFirst InstallationManager hangs
- How do I invoke a MobileFirst Platform Adapter using PUT?
- How to implement "remember me"-like functionality?
- Cannot compile Java adapter using adapter-builder task (ANT) in MFP v7
- Disabling default security using @OAuthSecurity(enabled=false)
Related Questions in JSONSTORE
- Store in JSONStore Effectively
- How to make a synchronous query with MobileFirst JSONStore
- Worklight :: JSONStore :: How to work with additional search fields
- kivy - getting a spinner to remember its selection
- Worklight JsonStore Error When Using FireFox Developer Edition
- JSON store hangs while retrieving data
- How to open the FIPS enabled json data's in worklight App
- How to solve "wl_deviceNoProvisioningRealm. null returned for key: userId" error?
- using extjs Store from Different JS file
- IBM Worklight 6.1 JsonStore issue on Android 4.4
- IBM Worklight 6.0.0.1 - How to JSONStore init without server connectivity?
- Invoke adapter from JSONStore window of MFP studio
- IBM JSONStore API return's "INVALID_SEARCH_FIELD' when used with OFFSET options
- Need Extjs editorgrid store to queue up remove/delete events and fire them later
- IBM Worklight - How to remove JSONStore resources from the application
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The short answer, you cannot run JSONStore synchronously. This guarantees the JS execution is not stopped if the querying takes a long time. User experience may be impacted if you are for example trying to search a large collection with an encrypted JSONStore instance.
JSONStore uses SQLite under the hood for Android and iOS so it is a relational database. On the other hand, if you were to do that operation in Android for example you will be using an AsyncTask or something similar that would perform those operations that can take more time in a separate thread.
Some of this information you may already know already. I hope this answers your question.