sugerencia para grid "ON DELETE"

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jucar_es
Posts: 82
Joined: Thu Nov 13, 2008 11:12 pm

sugerencia para grid "ON DELETE"

Post by jucar_es »

Frecuentemente se usan grids mostrar datos de una dbf con totales,

pero si se elimina una de las filas, los totales quedan desactualizados

seria posible incluir un evento " ON DELETE " o sea la funcion que deba ejecutar cuando se elimina un registro

gracias

Juan carlos Escobar
Bogota, colombia
Attachments
GRID CON TOTALES.JPG
GRID CON TOTALES.JPG (152.8 KiB) Viewed 2009 times
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: sugerencia para grid "ON DELETE"

Post by esgici »

jucar_es wrote:Frecuentemente se usan grids mostrar datos de una dbf con totales,
pero si se elimina una de las filas, los totales quedan desactualizados
seria posible incluir un evento " ON DELETE " o sea la funcion que deba ejecutar cuando se elimina un registro
gracias
Juan carlos Escobar
Bogota, colombia
Google translate wrote:Grids are often used to display data from a dbf with total
but if you delete a row, the figures are outdated
event would be possible to include a "ON DELETE" or function to be executed when a record is deleted
Hola Juan Carlos

Did you checked your SET DELETED ON / OFF ?

If you have set it OFF, (or not set, because default value is OFF); this behavior is normal. For expected result, you have SET it ON.

If you have already set ON, in that case we have another problem.

Saludos, regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: sugerencia para grid "ON DELETE"

Post by Roberto Lopez »

jucar_es wrote:Frecuentemente se usan grids mostrar datos de una dbf con totales,

pero si se elimina una de las filas, los totales quedan desactualizados

seria posible incluir un evento " ON DELETE " o sea la funcion que deba ejecutar cuando se elimina un registro

gracias

Juan carlos Escobar
Bogota, colombia
All Grid operations are BUFFERED, so when you delete a record, it is not really deleted until you save pending changes.

If you want a special treatment at save time, you must use OnSave event and handle disk updates yourself (look at \samples\grid.34).
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
Post Reply