I'm trying to create an application to create notes

Hi, I've been programming an app these days to create, edit, save, and/or delete notes we create in the app. However, I've encountered several issues that prevent the app from working as it should. Something to clarify is that I speak Spanish, so functions like the user interface are added in Spanish while the blocks continue to use native English. Now, about the problem I'm having:
On the app's main screen, when creating a new note or "opening" an existing one, the app always determines that you're creating a new note. Also, when you save a new note, the list of notes you had previously saved is erased, leaving you with only the last note you created, and that always happens.
I also programmed a button to delete a note AS LONG AS the note has already been created previously. The problem is that since the app always creates new notes, even when you try to open existing notes, the blocks that activate the delete button never activate.
I also haven't been able to find a way to display the previously written text when entering and editing an already created note.
Finally, I also scheduled two text messages indicating whether the note was "saved" or "deleted," but they don't appear either.

If you'd be so kind as to help me with this project, I would be completely grateful. I've attached images of the corresponding blocks.
bloques 1
bloques2
bloques3


bloques5

I don't see you retrieving the list of notes from TinyDB in other screens.

What exactly do you mean by that? and how could I solve it in that case?

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

.

Notas_Flash.aia (62.8 KB)

Old blocks:


New blocks:


Changes made:

  • removed all global variables, and replaced them with local variables loaded from TinyDB as needed. Global variables never pass from screen to screen, so this removes all doubt about it.

  • Replaced text length block with length of list block.

  • Created new TinyDB tag Indice for passing selection index across screens. Used value 0 for not selected, in line with SelectionIndex behavior when nothing selected.

  • Replaced ListView inl color with black, for readability.

Read and compare blocks, in case I missed something.

Notas_Flash (1).aia (62.7 KB)

1 Like

Thank you very much friend, I have helped me a lot :heart_eyes: