hi friends i have used a blocks with dynamic component and add values from firease ,result i get only one row ,there are 6 rows, please help,and need to change diffetent width values for each label, and got an error Message when i used this blocks
thank you
In the images you posted, there aren’t any blocks related to Firebase. How are you retrieving the values?
The function I suggested was working perfectly, as we confirmed in the topic where we created it.
But it was designed for a columns width of 28%, so if you need to add more fields, it becomes a problem.
However, I had advised you not to modify it
Here, I simply think you called the function twice with the same indexes, and as a result, it recreates the components with the same name, causing an error.
Anyway, I recommend using an extension to create the table, there are really many available out there.
I followed your idea of creating it dynamically because it seemed like a nice concept and allowed for a lot of customization, but if you just need to create a simple table, don’t make things complicated, use an extension
Search on this very useful page created by Taifun.
As soon as I get the data from Firebase, i loop through all the elements of the dictionary I receive and join them with a comma into FirebaseDataString + \n (each element must be decoded using the Web component).
Then I simply repeat the steps I showed you earlier, setting FirebaseDataString as the DataStrings of TableView_DataString