Précédent   Forum des professionnels en informatique > Bases de données > Oracle > Outils > Forms
Forms Forum d'entraide sur Oracle Forms
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 18/11/2010, 13h35   #1
Invité régulier
 
philippe sanou
Inscription : juin 2010
Messages : 54
Détails du profil
Informations personnelles :
Nom : philippe sanou

Informations forums :
Inscription : juin 2010
Messages : 54
Points : 5
Points : 5
Par défaut FRM-40735 le déclencheur key-next-item a détecté une exception ora-01403 non traitée

j'ai ce code qui me ramène cet erreur
Citation:
FRM-40735 le déclencheur key-next-item à détecté une exception ora-01403 non traité
quand je m'arrange à ce que verif et verif1 soit différent et je ne sais pas pourquoi.quelqu'un sait t-il pourquoi
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 SELECT montantt INTO debut
            FROM activation.start_end_montant
            WHERE starting_id <=:starting_id AND :starting_id<=ending_id;
 
 
            SELECT montantt INTO fin
           FROM activation.start_end_montant
            WHERE starting_id <=:ending_id AND ending_id >=:ending_id ;
 
 
    SELECT count(*) INTO verif
    FROM start_end_montant,demande_chg
    WHERE starting_id <=:starting_id AND :starting_id<=ending_id;-- and start_end_montant.reference=demande_chg.ref_chg;
 
     SELECT count(*) INTO  verif1
     FROM start_end_montant,demande_chg
     WHERE starting_id <=:ending_id AND ending_id >=:ending_id;-- and start_end_montant.reference=demande_chg.ref_chg;
 
 
 
 IF (verif=verif1) then
 				 SELECT  montantt INTO :code_carte
         FROM activation.start_end_montant,demande_chg
         WHERE starting_id <=:starting_id AND ending_id >=:ending_id  AND start_end_montant.reference=demande_chg.ref_chg;
else 
   	 msg_alert('Numéro de serie incorrect ou inexistant. Veuillez vérifier.',false);
end IF;
parce que selon moi il devrait m'afficher une alerte.
Merci pour votre aide
sanouphil est déconnecté   Envoyer un message privé Réponse avec citation 01
Vieux 18/11/2010, 15h22   #2
Expert Confirmé
 
Avatar de 7gyY9w1ZY6ySRgPeaefZ
 
Homme
dba
Inscription : juillet 2007
Messages : 2 513
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Canada

Informations professionnelles :
Activité : dba

Informations forums :
Inscription : juillet 2007
Messages : 2 513
Points : 3 953
Points : 3 953
un peu de recherche et de google ne nuisent pas :
http://www.developpez.net/forums/d44...nees-trouvees/
__________________
les règles du forum - mode d'emploi du forum
Aucun navigateur ne propose d'extension boule-de-cristal : postez votre code et vos messages d'erreurs.
(Rappel : "ça ne marche pas" n'est pas un message d'erreur)
JE NE RÉPONDS PAS aux questions techniques par message privé.
Écrire en français sur un forum est une marque minimale de respect.
7gyY9w1ZY6ySRgPeaefZ est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/11/2010, 15h29   #3
Invité régulier
 
philippe sanou
Inscription : juin 2010
Messages : 54
Détails du profil
Informations personnelles :
Nom : philippe sanou

Informations forums :
Inscription : juin 2010
Messages : 54
Points : 5
Points : 5
merci à toi 7gyY9w1ZY6ySRgPeaefZ pour le lien.j'ai fouillé mais je n'étais pas tombé sur ca.
merci je vais maté ca!
sanouphil est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/11/2010, 18h23   #4
Invité régulier
 
philippe sanou
Inscription : juin 2010
Messages : 54
Détails du profil
Informations personnelles :
Nom : philippe sanou

Informations forums :
Inscription : juin 2010
Messages : 54
Points : 5
Points : 5
en lisant le tuto de 7gyY9w1ZY6ySRgPeaefZ j'ai essayé ce code
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
begin
    SELECT count(*) INTO :code_carte
    FROM start_end_montant,demande_chg
    WHERE starting_id <=:starting_id AND :starting_id<=ending_id;-- and start_end_montant.reference=demande_chg.ref_chg;
    exception
   	When NO_DATA_FOUND Then 
       verif:=0  ;   
     end;
 
     begin
     SELECT count(*) INTO :lib_carte--verif1    --count(nvl(ending_id,0)) INTO verif1
     FROM start_end_montant,demande_chg
     WHERE starting_id <=:ending_id AND ending_id >=:ending_id;-- and start_end_montant.reference=demande_chg.ref_chg;
     exception
   	 When NO_DATA_FOUND Then 
     verif:=0  ;   
     end;
 
IF (verif=0 )OR (verif1=0) then
          msg_alert('Numéro de serie incorrect ou inexistant. Veuillez vérifier.',false);
        end IF;
mais jusque là ça ne marche pas j'arrive pas à afficher mon message d'alerte.je ne comprend rien !!!
il m'affiche toujours ça
Citation:
FRM-40735 le déclencheur key-next-item à détecté une exception ora-01403 non traité
sanouphil est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 19/11/2010, 07h52   #5
Rédacteur

 
Avatar de SheikYerbouti
 
Inscription : mai 2003
Messages : 6 522
Détails du profil
Informations forums :
Inscription : mai 2003
Messages : 6 522
Points : 6 449
Points : 6 449
Le problème doit etre ailleurs car Select Count(*) ne lève jamais d'exception NO_DATA_FOUND.
__________________
Rédacteur Oracle (Oracle ACE)
Guide Oracle ,Guide PL/SQL, Guide Forms 9i/10g, Index de recherche
Je ne réponds pas aux questions techniques par MP
Blogs: Forms-PL/SQL-J2EE - Forms Java Beans
SheikYerbouti est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 08h17.


 
 
 
 
Partenaires

Hébergement Web