Problem with Basics

Hi, everyone,

I need help again. I would like to realize the following:
I would like to create a list with the following entries:
Pear A 50
Pear A 70
Pear B 100
Apple A 100
Apple A 80
Apple B 150
From the created list, I would like to create a result list from which I would like to display the corresponding varieties, something like this:
Bulb A 120
Pear B 100
Apple A 180
Apple B 150

I've tried lists within lists or a dictionary. But unfortunately not to the desired goal.
Can someone send me a small sample code that I could then convert for myself?
I've looked at a lot of posts here, but couldn't find anything relevant.
Many thanks already!

You can store each string-string-integer set as a plain string. I've tried building an app that way, and it's even case-insensitive. I couldn't test it, so I hope it works:

yes5.aia (4.9 KB)

group_sum.aia (7.6 KB)

Something like this?


Thank you very much for your effort.
Unfortunately, I get an error message right at the beginning of the test.
"Select list item: Attempt to get item number 2 of a list of length 1: ["apple a"]"

Since I'm still a little beginner, I can't find out where the problem lies.

My list should also be expandable. I would like to be able to add more articles.

1 Like

For me as a beginner this looks like I could use this. Unfortunately I don't know how to implement it in my project...

How do I load the file? When screen1 initialize //retail_sample-details.csv ??

Maybe this project would help you ...

That looks really very interesting.
I'll take a look at it, maybe I can learn from it and realize my project.
Thank you for the information.
Maybe there are more useful tips...

My bad. I was able to pinpoint the mistake, and frankly, it was quite stupid. Here's the updated version:
yes5.aia (4.9 KB)

Hi there,
please excuse the late reply. I'll try out your suggestions. I would report back if I get stuck. First of all thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.