I need help. I want to send
posts from the database into the application. These blocks should work properly, can you help me?
Hi dear,
It seems ok, are you getting any errors?
Hello friend, it doesnât write an error, I wrote the post in the database but nothing appears in the Kodular companion, the entire screen is blank
Well, then itâs very simple, youâre probably not receiving data from Firebase, so GotValue is never triggered, or youâre receiving an empty dictionary.
Add the Firebase error block with a message dialog, which is always useful.
Then, while connected in Companion, right-click on blogList and do âDo itâ to see if the variable has been populated.
Great, at least weâve identified the problem.
Since youâre not receiving anything, youâre getting valueIfTagNotThere, which is an empty dictionary.
- Make sure you receive something.
- Youâre using SET without having created the objects (image and label) first.
I left the bucket empty and now it shows something in the blocks, but in COMPANION the post that comes from the database still doesnât appear on the screen.
Wow, at first glance I didnât notice, now I see this other thing too.
componentName will never work with that wording, the CN must be Button, Label, MakeroidCardView, etc.To create a template, thereâs the dedicated
.Schema block, but it must be used correctly by generating a valid schema.
What you received starts with [, so itâs a list and not a dictionary, which should start with {.
Before proceeding, resolve the issues Gaston pointed out.
If youâre trying to create a schema, follow this brief explanation otherwise, you first need to create a dynamic image before you can use a Set block on it.
Can I use a schema generator? Will that make things easier for me or is it better to write the blocks manually? To be honest, I didnât even know about its existence, itâs very confusing and I donât know how to do it.
I honestly much prefer schemas, but it depends on what you find more convenient.
I didnât have many problems understanding how they worked even at the beginning, there are many guides in the community.
These, back then, helped me understand how it worked very well.
I usually create a screen called screenNAMEOFSCHEMA with the name of what that schema is going to do, then I build the layout I want there.
After that, I export the screen as .ais and import it here.
In Kodular I create a variable called schemaNAMEOFSCHEMA (at least, even if I use the schema in other parts of the app, to modify them I just need to change the value of this variable) and paste the schema text into it, then I use DynamicComponent.Schema (Iâd recommend RecyclerList more, but I understand it makes everything more complex) to create the template.
Follow the guide to understand how the parameters work.
With Schema you can do some really great things.
I donât know English well and thatâs why I canât study well. If you have time, can you help me do this? Iâve been using chtgb for 4 days. Iâve put 308 screenshots on this hair and I canât do it.
Iâm sorry for this difficulty,
First of all follow this step.
In that screen you create the design that layout will have, in your case I imagine it will be a CardView with a label and an image.




