ListView Create element displays an object instead of mainText and detailText (using ios)

I have a ListView element and I want to display mainText and detailText

however when I try to set the "elements" of the ListView to a List that contains elements created with the "createElement" block from ListView, it just displays them as objects:


(for context: I have a list called "list" that contains dictionaries with 2 keys, "name" and "value", which are the ones I'm trying to display)

Is this with the MacOS emulator ?

Is global list a dictionary or a list, show its contents?

no, I'm using the App Inventor app on my phone to test. the screenshot you see is from my phne

global list is a list of dictionaries.

here the complete blocks, for context:

Like so ?

[{"name":"John","done":true},{"name":"David","done":false}]

yup exactly.

as you can see it's a simple todo-list app. when you click on an item you can toggle its "done" property. I'm trying to show the name of the task as the "mainText" and then just use the "done" property for the "detailText"

Working here:

image

well. I have the same code basically, and it doesn't work. Could this again be an issue with my testing tools? I'm using the App Inventor app on my iPhone. could this be related at all to using iPhone vs Android? not just this, going back to the emulator issue I mentioned on the other thread... is App Inventor compatible at all with an Apple ecosystem? Things seem to be buggy on Apple platforms...
Has this been reported before?

Thanks a lot for you help btw :slight_smile:

look, this people seem to be having the same issue

Sorry, no ios devices here to play with.

Seems that most dictionary blocks are working for ios, but it could be a bug.

Support for complex items in the ListView is available on TestFlight.

I'm having the same issue that ListView with an image works fine on Android device, but not on iOS.

On iOS just showing:
{
main= "20241109_13:00:00,
detail= "rain",
image= 10n_2x.png
}

My iPhone iOS Inventor App is v2.64.5.

Stonez56

This is an old bug, even reported by power user @Ghica a few months ago. I looked at the ListView component swift code once, but I didn't see the bug there. I don't know if anyone has fixed it recently

@Patryk_F Thanks! I was wondering anyone tried iOS version 2.64.6 TestFlight version. If you did, please let us know if this bug(show ListView with image incorrectly) fixed in the upcoming version.

Regards,
Stonez56

This is the problem I'm seeing. I don't see it being fixed.

2 Likes

Are you using the version on TestFlight? The production version won't work since it precedes the Android version that added the dictionary-based ListView items. Version 2.64.6 should behave correctly.

1 Like

Anyone know when the V2.64.6 will be released to the public? Hope this iOS bug is fixed.

Thanks!