How can I fix this blocks to load all numbers

Hello developers I need help to fix this.
as you can see in my blocks I have managed to create a gridview layout with 4 columns but the main problem I face is that when I try to devide by 4 I can run the test app and get the 48 numbers out of my 50 numbers and the 49 and 50 numbers are leftover. I know this is because I divide the items by 4 then the 49 and 50 are not fitting the columns then they are left out.

But if I I don’t divide the items by 4 I do get the all numbers from 1 to 50 but the app warns that the Select list item attempt to get item number 51 of a list lenght of 50


Here is my aia you can test and see what I facing so that can be fixed
getnumber.aia (188.3 KB)

Please anyone help me to fix that.

2 Likes

Check this method

1 Like

you can try index - 1 @ZeroCoding

Hello, @iaditya_nanda
can you show the blocks if you have time please?

Hello @Boban I expected that celing block to work but I find the index you added is confusing and I am not sure if the error is from my end because I have tried this block but I am getting that error

Please can you edit this block then show it here how can be fixed out of that error says The operation length of list cannot accept the arguments [1]

change to global data

2 Likes

Continuing the discussion from How can I fix this blocks to load all numbers:

That was very helpful, I also wanted to implement some asynchronous method for the numbers be added in 1 By 1 up to all my 500 numbers but I have failed to achieve that instead it loads all 500 numbers with a delay of 6-9 seconds and I get this result

My point is that I on’t want to get any delay of any second so that is why I have tried this with no success kindly help me if you have time.

See the blocks that I have tried but not working for me

please suggest how can I fix this block


here is my aia
getnumbers.aia (193.5 KB)d

Dynamic components always have a delay depending on the quantity.
I leave an example using scheme and click event


getnumbers_schema.aia (184.1 KB)