Hello … Good night
In the image below, I used the Dynamic Components extension.
But I can’t place the checkbox component.
How to do this using dynamic component extension? If so, how should I do this?
Hello … Good night
In the image below, I used the Dynamic Components extension.
But I can’t place the checkbox component.
How to do this using dynamic component extension? If so, how should I do this?
Just create component with the name : “Checkbox”.maybe you need first to create a horizontal arrangement that will contain your Label and Checkbox
Put at the end of your procedure another Create method, with the component name = Checkbox.
Because you used any image blocks to set Horizontal arrangement properties.
Thank you very much for your help, friend. The checkboxes worked.
How do I now so that the check in the checkboxes is recorded in TinyDB?
Use when any checkbox changed event.
Something like:
when any checkbox changed {
add item to list ( tinydb.getvalue (hello,notfound) , item = ( get any label text , component = dynamiccomponents, id = (get component id = replace all (get c=id ( component), vv ,oo )
}
Here is how to make things a bit more simple:
1- in any checkbox changed event.
2- set my list to get value from tiny db, the tag will be your tag you store values in.
3- add item to my list, item =
4- in the item parameter , add get any label text block, label =
5- dynamicComponents . getComponent , ID =
6- replace all vv ( the text you’ve in your checkbox id ) with oo (the text you’ve in your label id
.you can try it your self Just follow those steps
Thanks again.
I will try to follow your great tip.
But I already say that I don’t know if I will make it.
It is showing the checkbox in the title (Free Book and Annual Book). But I would like that the checkbox shows only in the numbers below.
in the blank space, from one book to the next, there is also a “check box”. I wish you didn’t show anything there.
I really couldn’t get the checkboxes to be saved in TinyDB after the click.
.AIA (attachment)
AppLeitura.aia (384.9 KB)
AppLeitura.apk (5.5 MB)
Call another procedure for the title, which doesn’t contain checkbox.Or don’t create it dynamiclly.
I didn"t understand, I will check the all for this
Can you please show your block, it will be easier from importing the AIA and searching for the right block
Now I understood, you can add an if then statement, if not is empty (the label text) , add the check box creating blocks inside
Add these
Also remember that it will require a logic to set the check boxes to the right values you got from tinydb:
On screen initialized:
1- set my list to get value from tinydb(hello,not found)
The very last block in your procedure:
Set any checkbox .checked to select list item. List = my list, index = number car.The value will be true
Hi, @Mohamed_Tamer
Would it be too much to ask the Lord if you could show me this logic in the blocks?
thanks in advance
I don’t know how to thank you for the help you have given me. I will now study this logic to learn how to do it. Thanks, friend.
No, add a check box in your app, set its visibility to false, know click any components block at the end of your component blocks at the side of the block editor, you will find any check box blocks
you try to set checkbox property using any label blocks, change it to any check box blocks
Your id, gets the checkbox instead of the label.You should replace the checkbox id - with your label id,Also you should check the spelling of the checkbox id, because if it doesn’t exist, nothing will change.