How do I create a dynamic list like this?
Hi dear,
As I mentioned in the other topic this question comes from, my suggestion is to recreate this layout in an empty screen, then export the screen (.ais) and import it here DynamicComponents Schema Generator for AI2 - ysfchn (thanks to yusufcihan).
If the screen isn’t rendered correctly, you can adjust it manually, remove the “Allow re-using with index key” flag, and then copy the template to your clipboard.
On Kodular, you have two extensions you can use RecyclerList or DynamicComponents.
I strongly recommend using RecyclerList, since it’s really efficient for this kind of list.
There are many guides about this in the community, I can recommend this one, which is really well made
Thanks to YusufCihan’s website, there’s no need to use TemplateCreator (Python).
I need to step away from the PC for a little while.
When I get back, I wanted to help another user in a different topic. Maybe in the example I was planning to create, I could make a template similar to the one you need, so I can help both of you with a single project
Hi dear, as you can see in this topic I created a schema practically identical to what you were trying to do.
As I said in the other topic ![]()
Hi friend,
Are these examples the same?
I’m saving data to TinyDB, but I’m still unsure about how to handle the data being saved there. I understood the concept you used; I’m going to study it a bit more and then get back to you with questions, okay?
Hi dear,
Not exactly, the topic I mentioned had a slightly different request, but since it was using RecyclerList anyway, I took the opportunity to create the layout you needed ![]()
Since it’s quicker for me to remove the unnecessary blocks rather than explain what everything does, give me 5 minutes and I’ll clean up the project.
Edit:
RLSchema.aia (133.6 KB)
Better?
-
In Screen.Initialize we create a dictionary with 1000 items using the structure you see.
-
we initialize RL
And we setRL.Datawith the dictionary keys (I prefer passing the keys and then retrieving the data in.OnBind, some prefer passing the data directly so it’s up to you) -
In
.OnCreatewe create the schema retrieved from the site I mentioned earlier.
In the screen “Schema_Item” you can customize it however you want >> export ais >> schema site >> schema in JSON. -
In
.OnBindyou need to set all the component properties.
In my case, I set a uniqueId for the CV so I can recognize it later on.Click, and for the other components I set Text using the data from thedatadictionary
Sorry, my friend,
I think I phrased that poorly.
Regarding the example above,
this results screen needs to look like the one in the image—do you see what I mean?
I don’t understand, and what was this?
It would be in this style
Date - 10/08/206
img 1. 32 - Front 1
img 2. 69 - Front 1
img 3. 75 - Front 1
img 4. 22 - Front 1
img 5. 20 - Front 1
Ah sorry, I hadn’t connected the two topics, now it’s all clearer.
I think it’s even simpler like this, since the layout seems quite basic, you could create the components manually without needing a schema.
In the image you showed above there are roughly elements grouped by “Front”, but within the group there is both Front 1 and Front 1 - 2 - 3.
With that example the fronts are few, but with many fronts the data can become really messy to group, also because the way it currently works each front gets added to a list, so if a front repeats it also repeats in the list.
Here is an example with many elements
Dear friend,
Let’s look at the details:
We currently have about 520 material transport boxes; each box bears a 5-digit number—for example, 57842.
Each truck carries 5 boxes.
We also have 8 different transport routes—picking up from B and delivering to A, picking up from C and delivering to A, and so on. At the various locations, we swap them out: we pick up other boxes and leave the ones we brought, creating a rotation system.
In this first stage I’m setting up, the results are grouped by date.
Next, I’ll move on to grouping by shipment quantity and location.
Finally, a search for the container’s movement history.
Hi dear, the soma tag is text, not a list
How can I get the result in a list?
In soma_dados you have the data in JSON format, so you can manipulate it however you prefer.
Each number is a key, and its value is a dictionary with qtd, date and front
Sorry,
but nothing is working…
it’s not receiving data, and I can’t retrieve it to display…
it doesn’t create a list where I can map things to the right places…
And where did you get stuck?
CaixaLista.aia (15.2 KB)
Dear friend,
Here is where I left off; I am very busy with work—could you help?
The search returns the data aggregated by query.
Hi,
I would really prefer if you isolate a specific problem and show where you got stuck ![]()
More details ![]()







