FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WEBDEV 2024
→
delete table selected record
delete table selected record
Iniciado por Hugo Brites, 20,jun. 2008 13:17 - No hay respuesta
Conéctese…
Hugo Brites
#1
Publicado el 20,junio 2008 - 13:17
Hi,
I have a table with linked to a HF table. This table is a selection table with multiple selection enabled.
When I click a link, I run the fowling server code in ajax mode
FOR EACH SELECTED ROW OF
TABLE_
Grupos
IF
HSeek
(
AuthGrupos
,
AuthGruposID
,
TABLE_
Grupos.GruposId
)
THEN
EDT_
Mensagens
+
=
"Erasing record id "
+
TABLE_
Grupos.GruposId
+
" with name "
+
TABLE_
Grupos.Nome
+
CR
IF
NOT
HDelete
(
AuthGrupos
,
hCurrentRecNum
)
THEN
EDT_
Mensagens
+
=
"Hyper File error: "
+
HErrorInfo
(
) +
CR
END
ELSE
EDT_
Mensagens
+
=
"not found record id "
+
TABLE_
Grupos.GruposId
+
" with name "
+
TABLE_
Grupos.Nome
+
CR
END
END
HReset
(
)
TableDisplay
(
TABLE_
Grupos
)
LINK_
Delete
..
Visible
=
False
Now two things happen.
The first, the for each loop works and it runs, but instead of deleting the record it just delete the first selected record. It still runs the other selected rows and hdelete does return true on the deletion of the records. But only the first selected row is indeed deleted.
Second, despite the flags I put in table display simply does not refresh well, as it just delete a row in the table, but it does not refresh the rows contents.
Regards,
Hugo Brites
Informar
0
0
→ Volver a WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto