Does anyone have a valid example for arrays in the settings?
thx
Does anyone have a valid example for arrays in the settings?
thx
doc's example is not compiled, error:
BUILD: ERROR: Problem validating a resource file: cvc-complex-type.4: Attribute 'type' must appear on element 'setting'.
Got the same error, did you find any solution?
Kind of:
https://forums.garmin.com/developer/connect-iq/i/bug-reports/confusion-and-bugs-in-array-settings
You can also vote on it so they fix the docs.
You need the type attribute on the inner setting, but the value should not be the one of the possible values from the settingConfig but rather that of property. So for example instead of alphaNumeric it should be string:
Wellllllll I'm not sure this is a good idea any more. Or at least there's some place for improvement on Garmin's side.
I made all my changes (working on Fenix6 which has 32 KB DF memory), and then I tried it in the simulator on Fenix 3 (16 KB DF memory only), and it fails now with an Out of memory error. This could of course be because of my code changes, however the problem is that the call:
MyApp.getProperty(key_to_the_array_property)
ok, strange, perhaps wait until it gets a little more reliable. I did get it to work in the simulator. But when I then tested it, as beta, om my device (Edge 830) the array settings didn't save. I could add items on the phone, but after save and then entering edit again it was blank...
Well, after a few days of struggling in the simulator I finally decided to try it in the store (beta app) with ConnectIQ Android. Total failure: forums.garmin.com/.../bug-we-were-unable-to-update-your-settings-at-this-time-please-try-again-later-in-connectiq
please also vote on: forums.garmin.com/.../meta-bug-array-settings