Forums

como se cargan dos bases de datos en un desplegable

indesweb 16 Nov, 2017
Buenos días,

quiero hacer un formulario para modificar datos, y necesito que se seleccione un numero en un desplegable y que en otro desplegable cargue el valor guardado en la base de datos A y carge todos lo valores para modificar de la base de datos B para luego sobreescribir la base de datos A.

He intentado poniendo las dos bases de datos en el campo, pero me carga todos los datos de la base de datos B y cuando selecciono en el primer desplegable, el numero me carga solo el valor de la base de datos A.

¿Como puedo ponerlo para que funcione bien?

He intentado de varias maneras y no e tenido exito ninguno.

Saludos

+++++

I want to make a form to modify data, and I need to select a number in a drop-down and in another dropdown load the value stored in the database A and load all the values to modify the database B to then overwrite the database A.

I tried putting the two databases in the field, but I loaded all the data from the database B and when I select in the first drop-down, the number only loads the value of the database A.

How can I put it to work well?

I have tried in several ways and none have been successful.

regards
indesweb 21 Nov, 2017
Hola a todos!!
Tengo esto solucionado, aunque sigo teniendo la pega, de que si pulsas "Enter" se te guarda el formulario, saltandose por alto los botones y las restrinciones.
Os cuento como he cargado las bases en los desplegables:
** Yo queria mostrar en un formulario de modificacion de datos, los datos que tenia guardados + los datos con los que se podria cambiar, de0pendiendo del "aid" que seleccionara.

Designer:
1) Dropbox - "Setup" Read Data -- el Aid de la tabla que me interesa -- NServicio
2) Dropbox- event nuevo - estado servicio y dentro de este: 1)read data de lo que tenia guardado con la condicio aid:{data:NServicio} 2) read data de los campos que tengo guardados de otra tabla para poder cambiar el estado.
3)NServicio - Event - change , reload , estado -- Asi cuando cambio el numero de NServicio me carga el valor que deseo el primero y debajo las demas opciones

-------ERROR: si cambio el numero no me cambia el valor, tengo que recargar la pagina para que se me quede limpio . ¿Alguna solucion?

4) Dropbox - servicio - poner en orden {var:read_dataXX} : 1: los datos de la base que quieres modificar + "enter/br" + los datos que quieres cargar

Esos son los pasos que he hecho por si a alguien le viene bien.
Si consigo averiguar como hacer para que "recarguen" los datos cuando cambie valor de NServicio, lo anoto aqui.

¿Alguna solucion para el error?

Saludos a todos!!

+++++

Hello everyone!!
I have this solved, although I still have the problem, that if you press "Enter" the form is saved, skipping buttons and restrictions.
I'll tell you how I loaded the bases in the foldouts:
** I wanted to show in a data modification form, the data I had saved + the data that could be changed, depending on the "aid" that I selected.

Designer:
1) Dropbox - "Setup" Read Data - the Aid of the table that interests me - NService
2) Dropbox- new event - service state and inside it: 1) read data of what I had saved with the condition aid: {data: NServicio} 2) read data from the fields that I have saved from another table in order to change the state.
3) NService - Event - change, reload, state - So when I change the number of the NSservice, I load the value I want first and below the other options

------- ERROR: if I change the number does not change the value, I have to reload the page so that it stays clean. Any solution?

4) Dropbox - service - put in order {var: read_dataXX}: 1: the data of the database you want to modify + "enter / br" + the data you want to load

These are the steps I have taken in case someone is doing well.
If I can figure out how to "reload" the data when NService value changes, I'll write it down here.

Any solution for the error?

Greetings to all!!
This topic is locked and no more replies can be posted.