How to get firebase values to dynamic component extension

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

Result

Here Is blocks

Hi dear,

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 :grin:

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 :grin:

Search on this very useful page created by Taifun.

To find them, press CTRL+F and type “Table”

i tried this way

then the result is

could you please explain the blocks ,how to get firebase data and show them in table, iam stuck here for last 5 days

Hi,

I imagine you’re using Ken’s extension (make sure you have version 4).

Did you follow Dora’s advice?

I think you’re just missing “\n” at the end of each line (remember to set it in TableView.RowDelimiter as well)

I’m really sorry, don’t hesitate to ask about anything, we’re here for you.

Here’s a very simple example, quite similar to the one available on App Inventor.


ShrinkToFit = false

ShrinkToFit = true

If you intend to use ShrinkToFit = True, you can also remove the HSA_Table.

AIA

TableViewExample.aia (26.6 KB)

how to set firebase data in tableview, i got data from firebase

Show me the structure you have on Firebase.

:thinking: I don’t think I understood very well

can you?

Have you tried the project I sent you?
Anyway, I don’t understand that series of Add items to list.

I’ll give you an example of how I would handle that data (if there were no way to have it formatted differently)

Let’s imagine you’re doing a get on the node containing the date.

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


Got an error

The error indicates that there’s a problem with select list item, which isn’t present in the blocks you showed.

please could you explain with blocks

You’re using select list item incorrectly,
immagine
But in the image you showed, I don’t see this block.

i have not used that block any where,

Then the error is in the for each item in list
If you notice, we’re handling the data differently, which is why I had specified it.


You’re getting the tags from the date node.

"1 Nov 2025" = ["01","02","03"]

And then you loop through with getValue to retrieve their content.

GetValue.Tag("01")
GetValue.Tag("02")
GetValue.Tag("03")

While I perform the get directly on the date

1 Like

thank you vey much Got It

Well done :partying_face:

Happy :kodular:oding!

1 Like