Advertisement

11.13.2005 at 10:26AM PST, ID: 21629231
[x]
Attachment Details

frm-40735: when-button-pressed trigger raised unhandled exception ora-01422

Asked by natucoqui in Oracle IAS Application Server

Tags: set_item_property

When I try to connect with the admini user, don't connect and appears the error frm-40735: when-button-pressed trigger raised unhandled exception ora-01422. When I try to connect with the other users, the connection function very well.

This is my security table and the data of the table.
Desc Seguridad;
 Name                                                  Null?    Type
 ----------------------------------------------------- -------- ------------------------------------
 USER_NAME                                                      VARCHAR2(20)
 U_PRIVILEGE                                                    VARCHAR2(25)
 U_PASS                                                         VARCHAR2(10)

USER_NAME            U_PRIVILEGE               U_PASS
-------------------- ------------------------- ----------
admini               administrativo            admini
tegno                tegnologo                 tegno
recep                recepcion                 recep

3 rows selected.


TRIGGER OF THE SUBMIT BUTTON(WHEN-BUTTON-PRESSED)

Declare
      name1  varchar2(20);
      pass1  varchar2(10);
      v_privilege varchar2(20);
begin
      if :user_name is null then
            message('Favor de no dejar espacios sin llenar');
            Raise form_trigger_failure;
      end if;
      
      if :u_pass is null then
            message('Favor de no dejar espacios sin llenar');
            Raise form_trigger_failure;
      end if;
      
      select user_name, u_pass into name1, pass1 from sys.seguridad
      where user_name = LTRIM(RTRIM(:user_name));
      if :user_name = LTRIM(RTRIM(name1)) and :u_pass = LTRIM(RTRIM(pass1))
            then
            /*Any function*/

      select u_privilege into v_privilege
      from sys.seguridad where user_name = LTRIM(RTRIM(:user_name));
      If v_privilege = 'administrativo' then
            set_item_property('bloodcomponent',
            enabled, property_true);
            set_item_property('patient',
            enabled, property_true);
            set_item_property('physician',
            enabled, property_true);
            set_item_property('medicalorder',
            enabled, property_true);
            set_item_property('transfusion',
            enabled, property_true);
            set_item_property('informes',
            enabled, property_true);
            set_item_property('exit',
            enabled, property_true);
            elsif
        v_privilege = 'tegnologo' then
            set_item_property('bloodcomponent',
            enabled, property_true);
            set_item_property('patient',
            enabled, property_true);
            set_item_property('physician',
            enabled, property_false);
            set_item_property('medicalorder',
            enabled, property_true);
            set_item_property('transfusion',
            enabled, property_true);
            set_item_property('informes',
            enabled, property_false);
            set_item_property('exit',
            enabled, property_true);
                  elsif
        v_privilege = 'recepcion' then
            set_item_property('bloodcomponent',
            enabled, property_false);
            set_item_property('patient',
            enabled, property_true);
            set_item_property('physician',
            enabled, property_true);
            set_item_property('medicalorder',
            enabled, property_true);
            set_item_property('transfusion',
            enabled, property_false);
            set_item_property('informes',
            enabled, property_false);
            set_item_property('exit',
            enabled, property_true);
      end if;

      
            null;
      else
            message('El nombre de usuario o la contraseña están incorrectos');
            raise form_trigger_failure;
      end if;
      exception
            when no_data_found then
            message('El nombre de usuario o la contraseña están incorrectos');
            raise form_trigger_failure;
      end;
      
Clear_block;
GO_BLOCK('PRINCIPAL');

Thanks,
natucoquiStart Free Trial
 
Loading Advertisement...
 
[+][-]11.14.2005 at 03:17AM PST, ID: 15286825

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2005 at 07:17AM PST, ID: 15288179

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2005 at 09:05AM PST, ID: 15289169

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.14.2005 at 04:01PM PST, ID: 15292177

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.15.2005 at 02:10AM PST, ID: 15294264

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle IAS Application Server
Tags: set_item_property
Sign Up Now!
Solution Provided By: DLyall
Participating Experts: 3
Solution Grade: A
 
 
[+][-]11.15.2005 at 04:09AM PST, ID: 15294688

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32