PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → Integridade Pai-Filho - Não Exclui Filhos
Integridade Pai-Filho - Não Exclui Filhos
Débuté par Mister ANDRE MARTINI, 28 juil. 2016 21:49 - 3 réponses
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Posté le 28 juillet 2016 - 21:49
Olá,

tenho duas tabelas: Xml_nfe_entrada (tabela pai) e Xml_nfe_entrada_produtos (tabela filho), a chave única da tabela Xml_nfe_entrada é uma chave composta (codigo empresa + sequencial), tenho a mesma chave na tabela filho só que não é única.

veja a configuração da integridade entre as tabelas (1-N)





veja a configuração da integridade entre as tabelas - regra para deletar
Delete the "Xml_nfe_entrada" and all his "Xml_nfe_entrada_produtos"
Delete o "Xml_nfe_entrada" e todos os seus "Xml_nfe_entrada_produtos"




veja os dados da tabela pai, tem somente o sequencial 1 e 2




veja os dados da tabela filho, tem o sequencial 3 que não existe na tabela pai




O que pode estar errado?

Obrigado!

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Membre enregistré
207 messages
Popularité : +25 (25 votes)
Posté le 22 août 2016 - 21:52
Agora resolveu funcionar!

--
André Martini
IS2 Automotive http://www.is2.inf.br/is2automotive/index.html
IS2 Construtive http://www.is2.inf.br/is2construtive/index.html
IS2 Store http://www.is2.inf.br/is2store/index.html
IS2 Gerent http://www.is2.inf.br/is2gerent/index.html
Message modifié, 22 août 2016 - 21:52
Membre enregistré
3 657 messages
Popularité : +175 (223 votes)
Posté le 26 août 2016 - 01:16
:thank you:

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/