Un foro de discusión para nuestra comunidad de hispano hablante
By Gerardo
#789006
Saludos

Buen día necesito saber si se puede llenar un dynaform con un trigguer después de recargar el formulario, para dejar la misma información del dinaform a excepción de un grid que me traerá información de una tabla.

muchas gracias.
User avatar
By amosbatto
#789028
Adjunto un proceso para mostrar como repoblar un grid. Ver el codigo de JavaScript en el DynaForm y el trigger que es ejecutado despues del DynaForm.
(30.65 KiB) Downloaded 366 times
(4.97 KiB) Downloaded 329 times
There are two ways to repopulate the contents of a grid with an SQL query when inside a DynaForm. The first way, which is much simpler, closes the DynaForm, executes a trigger that queries the database and repopulates the grid's variable and then reopens the same DynaForm.

This method of executing a trigger while in a DynaForm is recommended because it is the easiest to implement. A submit button is added to a DynaForm. When that button is clicked, it sets the value in a hidden field to indicate which button was clicked, then the DynaForm is submitted and its current contents are saved. A trigger which is set to fire after the DynaForm then calls executeQuery() to select data from a database. The results of that SQL query are then set in the variable for the grid. After repopulating the grid variable, then PMFRedirectToStep() is called to reopen the same DynaForm with updated content in the grid.

Web3 development encompasses creating decentralize[…]

The Upland Clone Script, offered by Dappsfirm, rep[…]

Dappsfirm offers a bet365 clone script that mirror[…]

🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]