Usar algún criterio de búsqueda con varias filas, para traer datos desde otra tabla

Buenas noches, necesito completar un formulario trayendo datos desde una tabla de "contactos", paso a explicar:

- Tengo una tabla de contactos con las columnas "ID CONTACTO" "NOMBRE" "CUIT" "PATENTE"
- Tengo una tabla de listados con los datos "ID LISTADO" "CUIT1" "CUIT 2" "CUIT 3" "CUIT 4" "Nombre 1" "Nombre 2" "Nombre 3" "Nombre 4"

Lo que necesito es que al ingresar manualmente los 4 CUIT en la segunda tabla, busque los 4 nombres en la tabla de "contactos", y se guarden todos los datos en el mismo formulario (o sea, que la tabla 2 contenga los 4 cuits con los 4 nombres).

 

Desde ya muchas gracias a quienes puedan ayudarme

 

Maxi

Solved Solved
0 1 89
1 ACCEPTED SOLUTION

In this scenario, what you typically want to do is to create 4 fields in table 2 (say [contact ID 1] ... [ Contact ID 4]) each of which references the contacts table.

Then the CUIT and Name can be automatically retrieved by setting the following in AppFormula

  • [contact ID n].[CUIT] and [contact ID n].[name] for [CUIT n] and [name n] respectively

If [name] in contacts is set to Label of the contacts, then the {contact ID 1..4] display the names and you may not need separate [name 1...4] columns. It all depends how you want to store data in your background data store (vs. how you want information displayed in your App).

View solution in original post

1 REPLY 1

In this scenario, what you typically want to do is to create 4 fields in table 2 (say [contact ID 1] ... [ Contact ID 4]) each of which references the contacts table.

Then the CUIT and Name can be automatically retrieved by setting the following in AppFormula

  • [contact ID n].[CUIT] and [contact ID n].[name] for [CUIT n] and [name n] respectively

If [name] in contacts is set to Label of the contacts, then the {contact ID 1..4] display the names and you may not need separate [name 1...4] columns. It all depends how you want to store data in your background data store (vs. how you want information displayed in your App).

Top Labels in this Space