Cómo puedo grabar el contenido de un formulario en 2 o más tablas de la base de datos?

09 Feb '18, 10:14 PM
2,727 Views

Cómo puedo grabar el contenido de un formulario en 2 o más tablas de la base de datos? Tengo un formulario que lleno a partir de dos tablas y esa información la quisiera mandar grabar en dos tablas.

 
x 0
Follow
Answer Answer at this question and get points!
No Forum Badges

Hola Jose

Puedes crear un operation que tenga un parámetro de entrada por cada atributo que deseas guardar en la base de datos.

 

Por ejemplo si tienes 2 atributos en la primera tabla y 3 atributos en la segunda tabla, deberás crear un operation con 5 parámetros de entrada.

 

Desde el formulario enviarás las información correspondiente a los 5 parámetros que se necesitas.

Y dentro del operation puedes usar 2 componentes de guardado / actualización según sea tu necesidad, al primero enviarás los 2 atributos que necesitas, mientras que al segundo los restantes 3.

 

Espero que te ayude


Hi Jose

 

You can create an operation which contains one input parameter for each attribute that you want to save on the DataBase.

For example, if you have 2 attributes in the first DB table, and 3 attributes in the second DB table, you have to create an operation with 5 input parameters.

 

From the form, you can send all the information you need to these 5 input parameters.

 

Inside of the operation, you can use 2 different create/modify operations (It depends if you want to create or modify). The first component will receive the information of the 2 input corresponding parameters while the second one will receive the other 3 input parameters information. 

 

I hope it helps you.

 
x 0
Answer at this question and get points!