Settings in datafield

Former Member
Former Member
Does anyone have an example or explanation how to implement user settings in a datafield

I have created a datafield with heart rate zones and I want the user to be able to set these zones, but I don't know how to do it.

Any tutorial or example would be welcome thanx!

My datafield: https://apps.garmin.com/nl-NL/apps/cb7742e6-1914-490f-b581-fa41ad863b72
  • There is already an example of how to do it in the documentation. I'm pretty sure there is one or more sample programs that do it as well.
  • Former Member
    Former Member
    There is already an example of how to do it in the documentation. I'm pretty sure there is one or more sample programs that do it as well.


    Thanks I already found out how to do it.
  • For try, i copy the sampel into a Datafield App.

    It works, except the list.

    Error Message:

    BUILD: ERROR: The setting defined for property 'myString' is an invalid setting type (LIST) for the property type 'STRING'.

    If i change the property type from string to number, it works:

    <property id="myString" type="number">5</property>

    So the question is, is there something wrong in Documenation, or i do a mistake?

    Do <settingConfig type="list"> support <property type="string">, or only <property type="number">?
  • It looks like a bug in the documentation.

    As documented in the programmer's guide (search for the sentence only valid for certain property types and you'll see it), the list setting type is only supported with properties of type number.

    Travis