Ticket Created
over 3 years ago

CIQQA-1036/CIQQA-1037

Issues with SDK 4.1.1 Array properties

There are typos/bugs in the example code:

    <setting title="@Strings.activityType">
        <settingConfig id="activityType" type="list">
            <listEntry value=0>@Strings.Running</listEntry>
            <listEntry value=1>@Strings.Cycling</listEntry>
            <listEntry value=2>@Strings.Swimming</listEntry>
        </settingConfig>
    </setting>

value=0 should be value="0" etc. But after fixing the typos, the compiler rejects it saying that the setting requires a type... which makes sense.
With non array types, the property determines the type, but here, the compiler needs to be told. Adding type="number" fixes that.

But then there's an issue with the display (in the simulator at least). When I add a new array with a "list" setting config (like the above),
I get to add it via a dropdown which shows the names of the list items (as you would expect). But once I've added it, only the list item's *value* gets displayed.
So the user just sees meaningless numbers, rather than the names they chose from the list. I've tried to post screen shots, but I'm getting errors when I do...

Parents
  • Managed to add the screenshot in the comments. That 196612 is the "value" attribute - which is what gets passed back to the program. But the whole point of using a "list" config is to present meaningful names to the user, rather than making them figure out the numbers.

Comment
  • Managed to add the screenshot in the comments. That 196612 is the "value" attribute - which is what gets passed back to the program. But the whole point of using a "list" config is to present meaningful names to the user, rather than making them figure out the numbers.

Children
No Data