Action in database MYSQL

Hello good mornig for everyone.

I contact you to ask you a question about an application that I am working on for the management of tools in a warehouse.

I'm having problems configuring my database in MYSQL, I used to use this app with Google sheet before, but due to synchronization time problems I'm wanting to migrate to a database with MYSQL.

The problem I'm having is between two tables:

Table 1: "Prestamosmultiples" whose function is to collect through a form the tools that a company worker borrows from the deposit. In this table the warehouse manager takes the order of the tools that the worker wants to withdraw through an enumlist column, where he can select multiple tools.
tabla_prestamosmultiples.jpg
Then, when saving the form, a series of actions are unleashed that I use to create a unique record for each selected tool in another table, table2 "Prestamos".
tabla_prestamos.jpg
Actions:
actions.jpg

action1.jpgaction2.jpgaction3.jpgaction4.jpg

This operation in the application with Google sheet works correctly, but in the current application with MYSQL it does not work, it is only sending a new row in the table. We provide the first tool code and it does not create the following ones, I am sure that this is the case due to a problem in the counter action "Action 2" and the way I have configured the database in MYSQL, but I can't find what the error could be.
I leave the configuration of my tables in MYSQL:
Table 1: "Prestamosmultiples"
tableMysql_prestamosmultiples.jpg
Table2: "Prestamos"
tableMysql_prestamos.jpg
I hope you can help me, I already tried to migrate this database to an internal database in Apsheet Database but it was impossible, many functions are not compatible with my application and it was very difficult for me to migrate this database.
Thank you very much for your time.

Solved Solved
0 31 924
1 ACCEPTED SOLUTION

Behavior condition:

Marc_Dillon_0-1688407753487.png

On action loops, you need a behavior condition on your loop repeater in order to stop the loop when appropriate. Otherwise you get an infinite loop. Yours should be something like [contador] <= COUNT( [enumlist] )

View solution in original post

31 REPLIES 31