GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
delete table selected record
delete table selected record
Iniciado por Hugo Brites, jun., 20 2008 1:17 PM - Sem resposta
Conecte-se…
Hugo Brites
#1
Publicado em junho, 20 2008 - 1:17 PM
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
Denunciar
0
0
→ Voltar para WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto