[Free] CompCreator - create component dynamically

Sorry for the name mix-up Tim.
Yes, fails on both companion and on device.
This is taken from my phone, android 9:

Also tried on my tablet, android 11, same issue.

I also modified app to change textboxes' width afterwards:
CompCreator_Test (1).aia (34.2 KB)

Problem solved :grinning:

I was first creating another vertical arrangement and didn't set it's width.
After setting it's width I got what I wanted.

Thanks for your help Tim!

1 Like

There is an "error" in your blocks. You create another vertical arrangement (without a fill parent width) in which to place your horizontal arrangement rows. This reduces the width of the textboxes. Just using the VA > VerticalArrangementDynList ensures the textboxes fill the parent.

Ah, I see you just found it too :slight_smile:

1 Like

:+1: :grin:

Hello
Your work on this extension is great! really.
a curiosity... but you can't add the function.. When a dynamic component loses focus, does it create an action?

Like if I scroll through a verticalscrollarrangment and a dynamic component comes off the screen, does it create an action?

like what? Button. Clicked ?

What about save the action in a Procedure,and call this procedure when needed ?

what am i missing?

show ALL your relevant blocks

it works OK here

how can we set specific component property???

I showed this in my example above

Hi,
I am trying to create a tracking app for plants watering using CompCreator extension in order to be able to add, edit or delete plant profiles. As you can see from the following blocks, I am creating a new Component based on template, that will contain an image, 2 text boxes, a date picker and a delete button.

The deletion of created component is done like:

My question is, what can I do so the number of created containers with the afferent inserted data to be saved in TinyDB when I close the app so it can be there for when I open it again?

If you save a component in a tinydb, you can only call this component only if the app not closed. If closed and open again, the component will not exist.

and I did not notice what is the usage of this tinydb. Why you save it in tinydb?

how works children and parents?.

image

Children will return a list of components in a container.
Only a container has a Children.
e.g. VA1's Children is VA2 and VA3,
VA2's Children is Buttton1.

Parent will return a container in which the component is inside.
Screen is the root, no parent for him.

value=500

not working properly - app crashes
tested "xiomi POCO M3"

Nothing wrong with the blocks, might just be a bit too much for your phone to do all in one go. Works on my emulator, but takes a little time to do it.

Perhaps try creating the horizontal arrangements in batches of 100, with a little break in between

Draggable blocks

and set 500 images' picture in a short time, may cause OOM.

How can I create a checked Listview ?

Use a checkbox in each row
Create a list of the checkboxes created
Store a list of the indexes you want checked / unchecked
Apply

too difficult for me, can you give me the blocks ?