Bad arguments to create

Hello everyone. After adding this block that creates dynamic components I get such error, can anyone tell me what I'm doing wrong?

1 Like

Show your procedure format number

1 Like

Screenshot 2021-12-22 at 15.15.58
I checked, if I disable the block with those dynamic components, then I don't have any error

1 Like

Use an if then statement in procedure, if get number is empty set get number to 0 else ....

2 Likes

After this, with income I get such result and it doesn't display one value and displays "false" and with expense it shows such error

1 Like

2 Likes

error disappeared, but it still doesn't show the values inputed

1 Like

Where in creating dynamic components do you set value for those labels ?

Screenshot 2021-12-22 at 15.45.50

1 Like

What is stored in global boolExpenses ? a boolean true / false ?

2 Likes

yeah, when the user chooses add income, then boolExpenses is false, when it's add expense, then boolExpense is true

1 Like

Do you wish to post your aia here ?

1 Like

Expense_task2.aia (4.1 MB)

1 Like

Try this and see if it works for you

Expense_task3.aia (4.1 MB)

4 Likes

Yeah, thank you the sum is displayed now, but somehow it repeats the old transactions when you add new ones

!

1 Like

The problem is solved now(by storing them in a dictionary and giving unique tag), thank you for your help. As I'm new in this topic with dynamic components, I don't really understand how I need to save them, so the next time the app is opened they will be displayed. Maybe do you have any advice how to do it?

1 Like