FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WEBDEV 2024
→
delete table selected record
delete table selected record
Débuté par Hugo Brites, 20 juin 2008 13:17 - Aucune réponse
Connectez-vous…
Hugo Brites
#1
Posté le 20 juin 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
Signaler
0
0
→ Revenir à WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte