When I use the Alpha's Phonegap integration (upload) utility, I noticed that the app created has data defaulted in it although the fields in the app were data bound/binding fields. [When I download the app on any mobile device, the UX component is saved in the Mobile Application along with an existing record (default record).]
I have opened to seen the index file that was created and do see that the 'initial' values of fields and pictures are defaulted in the file itself.
The issue with this is that when we open the app in the mobile device - it shows the default values and not the latest values - until I hit say query button.
If I say replace the database value with other values, the app still shows the old value that existed when the app was been built on phonegap and not the latest values.
I really do not wish to update the index file and remove the defaulted values each time I build.
The work around I did is that whenever I build the phonegap app using the Alpha phonegap utility - I temporary delete the data from the back-end table - so no values are defaulted on/in the app that was created.
Example in the index.html that Alpha created - just before uploading to Phonegap - it has:
DLG1_DlgObj._listViewData['LIST3'] = A5DataArrayToObject(['MY_FIELD1','MY_FIELD2','MY_FIELD3','MY_FIELD4','MY_FIELD5','__primaryKey'],[['9001','5','1','ABC123','$500.00','9001|||5|||1'],['9002','5','2','B123','$100.00','9002|||5|||2']]);
Why is it defaulting data? Can I set it up to ignore data. Thanks!
I have opened to seen the index file that was created and do see that the 'initial' values of fields and pictures are defaulted in the file itself.
The issue with this is that when we open the app in the mobile device - it shows the default values and not the latest values - until I hit say query button.
If I say replace the database value with other values, the app still shows the old value that existed when the app was been built on phonegap and not the latest values.
I really do not wish to update the index file and remove the defaulted values each time I build.
The work around I did is that whenever I build the phonegap app using the Alpha phonegap utility - I temporary delete the data from the back-end table - so no values are defaulted on/in the app that was created.
Example in the index.html that Alpha created - just before uploading to Phonegap - it has:
DLG1_DlgObj._listViewData['LIST3'] = A5DataArrayToObject(['MY_FIELD1','MY_FIELD2','MY_FIELD3','MY_FIELD4','MY_FIELD5','__primaryKey'],[['9001','5','1','ABC123','$500.00','9001|||5|||1'],['9002','5','2','B123','$100.00','9002|||5|||2']]);
Why is it defaulting data? Can I set it up to ignore data. Thanks!
Comment