Hi everyone, I’m currently working on a proceeds report for my app. I’ve already finished the start–end time feature, but I’m having trouble with the report details.
It’s supposed to display something like this: entryX (product/service the customer bought) - qty (amount bought)
for example: apple-3
However, the details aren’t showing up in the ListViewer. I keep getting this error:
Select list item: Attempt to get item number 5 of a list of length 4: [com.google.appinventor.components.runtime.Label@25a2d89, com.google.appinventor.components.runtime.Label@5582ab2, com.google.appinventor.components.runtime.Label@b389a03, com.google.appinventor.components.runtime.Label@758ad80]
I’ve attached images and the .aia file for reference.
Any help or suggestions would be really appreciated — I need to fix this as soon as possible. Thank you! aaaaa_copy.aia (1.3 MB)
In context to the next image, I separated the blocks — one connected to the HomeScreen.initialization and another connected to the End Sales btn — because I wanted to focus on handling the details part of the proceeds report separately.
Thank you so much for pointing that out! I’ve fixed the length issue, and there’s definitely some progress now. However, the variables still aren’t showing up — do you have any idea what might be causing that?
I think the problem happens when I combine the start/end time and the details sections. It was working fine before I put them together. Could you please help me find a solution...