Hello,
I originally sent this to the AppGyver email address, then realized you prefer that we use the forum first. Sorry about that!
I am working hard to finalize the last big feature for an app I am building for a client, loading air quality data based on the city/state typed into an input field. I’ve already created a test page that loads data for a single city, but now I need to make this feature dynamic. I have a question about a data resource that does not seem to work for some reason.
-
So the original working data resource for the single city test page is a simple JSON file: Working Data Resource. This is an array of 14 objects, with 12 properties each, and it comprises a single air quality dataset for Phoenix AZ. It works in AppGyver. For example, I can bind the following formula to a Title component and pull the AQI number for the first object: data.AirNow850011[0][“AQI”] (app #131300 – AQI page)
-
This is a new failed data resource that I have truncated for easy testing: Broken Data Resource. This is an array of 3 objects, with 16 properties each, and is a shortened version of a much larger file. It does NOT work in AppGyver. I have followed the example of the working formula above, and tested it on the exact same component, but the field is blank when I test with the Preview App. Here is that formula: data.AQI_Data1[0][“AqiValue”] (app #178038 – Quiz Results page)
I have spent hours and hours attempting to sort this out. The JSON file validates, and I can build a schema with it. But no data will load when I preview the app.
Can you please take a look at my account to see if you can determine what could be the issue? I am hoping to be able to complete the NTAA app within the next week or so, and get it launched on the app stores.
My Apps
-
Test App: #178038 – Quiz Results page . See screenshot here:
(Data resource does NOT work in Preview App – either version) -
NTAA – Prototype App: #131300 – AQI page . See screenshot here:
(Data resource works fine in both versions of the Preview App, as well as iPhone and Android builds).
As a follow-up, I launched the debugger and found that the “Broken Data Resource” above (AQI_Data1) does not seem to have any items:
Compare that to the Test App formula screenshot of the same data resource above.
Any ideas what could be causing this?
Thanks so much, I really appreciate your time!!!