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 05/01/2007, 22h56   #1
Invité régulier
 
Inscription : novembre 2006
Messages : 61
Détails du profil
Informations forums :
Inscription : novembre 2006
Messages : 61
Points : 6
Points : 6
Par défaut utilisation d'une variable global

salut,
(Oracle Forms 9i)
je déclare une variable globale mais lorsque j'essaie d'affecter son contenue à un autre champs ça ne marche pas
un message d'erreur s'affiche(exception non traité)

code (intialisation )
Code :

declare v_exist number(1); Al_id ALERT ; LI$Bouton pls_integer ; begin SELECT 1 INTO v_exist FROM super_utilisateur WHERE login1 = :connexion.LOGIN2 AND mot_passe1 = :connexion.mot_passe2; go_block ('menu_super'); exception when no_data_found then begin SELECT 1 INTO v_exist FROM utilisateur WHERE login = :connexion.login2 AND mot_passe = :connexion.MOT_PASSE2; :GLOBAL.code := :connexion.code_actel; go_block ('menu_util'); exception when no_data_found then BEGIN Clear_Form(No_Validate); END; Al_id := Find_Alert( 'AL_OUI_NON' ) ; If Id_Null( Al_id ) Then Message('la boite d''alerte mon_alerte n''existe pas dans la forme'); Raise Form_Trigger_Failure ; Else LI$Bouton := Show_Alert( 'AL_OUI_NON' ) ; If LI$Bouton = ALERT_BUTTON1 Then begin GO_BLOCK('Connexion'); end; Else DO_KEY('EXIT_FORM'); End if ; end if; end loop; End ;

utilisation du variable globale
code
Code :
INSERT INTO non_table(..,code_actel) VALUES (...,:non_bloc.code_act= :global.code) commit;
poula est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 06/01/2007, 03h14   #2
Membre éprouvé
 
Avatar de star
 
Inscription : février 2004
Messages : 450
Détails du profil
Informations forums :
Inscription : février 2004
Messages : 450
Points : 417
Points : 417
Citation:
VALUES (...,:non_bloc.code_act= :global.code)
Synthaxe à revoir !
.
star 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 00h24.


 
 
 
 
Partenaires

Hébergement Web