PhoneGap Hybrid Applications: Populate Controls with Client-side Data Cache
Check out how to populate controls with client-side data caches in PhoneGap hybrid apps with this awesome video!
Join the DZone community and get the full member experience.Join For Free
In a PhoneGap hybrid application, if your UX contains Dropdownbox controls, the choices shown in the Dropdownbox controls will be defined at design time (when the PhoneGap application is built).
However, in your application, you might want the choices in the Dropdownbox controls to be defined at run-time. Your app should make a callback to the server to get current data for the Dropdownbox controls and then persist that data locally so that the next time the app is loaded it already has the data for the Dropdownbox controls. The client-side data cache is ideal for this scenario.
In this video, we show how you can define client-side data cache items for the data to populate Dropdownbox controls.
More Learning Resources for PhoneGap Hybrid Applications
Check out the Expert Series Workshop in which two sessions are dedicated to PhoneGap deployment. Going on now for all current Alpha Anywhere subscribers. Learn more about the Expert Series Workshop
Alpha Anywhere contains powerful integration with PhoneGap Build for developing and deploying hybrid applications. This post is a technical deep dive for Alpha Anywhere developers. Click here for a general overview of Alpha’s PhoneGap integration for building hybrid applications.
Published at DZone with permission of Amy Groden-Morrison, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.