Follow-up to the Syllabus

Dear friends, Greetings. I am making an application to keep track of syllabus topics. The topics already covered I select with Checkbox. I have put some buttons
Save
Edit
Delete a record
Clear all records
Clear entire database
To show
Clean up

Mainly I am interested in the functionality of the Edit and Delete buttons of a record
Although the other buttons work halfway

I would be very happy if you could review me and provide suggestions or solutions.

Thanks in advance

Can be done with tinyDB and for checkbox you can refer,

Sorry, in the previous post, I couldn't upload the .aia file for you to review. I upload it in this .. Thanks

Archivo aia

You can share relevant blocks which is presenting a problem.

thanks

I want to remove the content of the selected checkbox in the spinner

I want to edit the content of the selected checkbox in the spinner

Hello fix

Whenever your code starts to look like crocodile teeth, that's definitely the time to look into using 'any component' blocks.

2 Likes

Sorry fix but you have to re-describe what you want to do - that sentence makes no sense to anyone not familiar with your Project.

When a CheckBox changes, why are you storing the text colour before the text colour is changed?

Here is an example using "any component" Blocks. Instead of 16 checkbox changed event Blocks, you only need a List of the checkboxes and one checkbox changed Block. Note that the List will serve your crocodiles too.

1 Like

sixteenLists

Please show us exactly what would be stored in these individual Lists. Just two examples out of 16 should help us understand.

Do you mean, if user select an option from Spinner then it woun't be available/visible in spinner for further selection?

I tried, but there, some truble with code, it is not allowing me to delete selected element only and very first element also, I can able to recreate the spinner with updated/new list of elements. Maybe I am wrong with the code.

When you run this will get to know.

Cheers,. thank you for helping me with your valuable time,... I'm trying to test little by little the suggestions that have come to me...
But so far I can say that the Spinner is required to select a number, which corresponds to a particular checkbox. So when I select this number any of the buttons I choose take action, for example the Save button does, likewise any other button.

What I want is to delete the text content that is in any checkbx indicated in the spinner

Note: I rely on the google translator, for my messages. Thanks again

ok here I uploaded an image, now a thousand words ..
Thanks for your valuable time.


You have a lot of redundancy in your app.

I suggest reviewing the sample ToDo app at Show checkboxes in my text box - #6 by ABG
based on a List Viewer.

1 Like

Hello again, I have tried the blocks that you send me, but I cannot find how to initialize it on the screen.
Here I put the image

Not that way :grimacing:

Please provide the info I requested in post #9

Edit: If you study my code carefully, you will see how the TinyDb Tags are named.

This does not delete Checkbox text. It deletes an item from a List, stores the remains of the List, sets the Checkbox text with the remains of the List.

Edit: You have a 'Remove' button (btn_Eliminar) and also a 'Delete' button (btn_BorrarDatos). Could this not be combined under one button?

1 Like

Here I place the block to edit that I have in the original file.

Thanks for the directions.

Look:

Crocodile (last block incorrect):

Replacement:

1 Like

fix, this is the last time I will ask you - please post examples of representative data stored in the 16 Lists, re my Post #9.