I’m working to clone row to obtain a dynamic list but I do not understand how assign values to labels. My original labels are numer 6 and 8 so how I can assign a value to one label and the other to the other?
Are you working from this tutorial @Andrea_Marchisio?
This should give you some insight into how to approach the problem.
I tried to use the same procedure described in the follow post:
How to Display a List of Data in a Custom List Viewer (by Cloning)
In this case the row is cloned and the each label data is changed in own row.
The clone procedure works fine but I don’t understand what are the label cloned name.
is it the right way to create dynamic lists? (based on Airtable in my case) or there are different way?
each component has it’s own unique ID, so when you clone a component it will be referenced by it’s device-readable ID (as opposed to a human-readable name like “label1”)
All you need to do is identify that pattern that you data follow, so for example the first label is a heading and the second is a description and this pattern is repeated in each clone. Once you’ve identified this pattern you can then store your data anywhere you like, or indeed pull data from an API or RSS feed.
Do you want to do something like this? -
- You have a base row, with two labels in it. Let’s call them A & B.
- You want to clone the row (automatically the labels inside them will also clone), as per the number of rows in Airtable.
- Next, you want to change the text of labels A & B of some cloned row.
exactly that … now I’m using AirTable but with Firebase it’s the same.
The classic dynamic list from a database
on the other hand, how would you create dynamic lists based on a database?
One of the options
So, if you want to do like my above steps, try these blocks, this might solve your problem -
If you don’t know how & where to get those blocks, watch this video -
P.S. If these blocks solve your problem, please mark this post as Solution It will mark this topic as solved in the community