Using forms apex instead of insert trigger on view

Hello

I have a requirement where I have to have a form on two table and insert data in which the 1 table a PK that Fk one table.
And I need to get the PK at apex so that I can browse additional after the insert/update successful.

I tried methods.

(1) used two table views to insert and then created instead of trigger to insert it.
questions - work very well until I tried to use his return to apex app because return is not trigger INSTEAD of manage.

(2) created a procedure to insert and then return PK at apex.
Form questions - about the procedure does not allow to CHANGE.


looking for expertise on this so that I can make insertion/update two different tables (in view) and get the value of the PK returned to the top.


4.1.1 11 GR 2 linux oc4j


Thanks 4 your time.

#prayforoklahoma

Edited by: Hunk09 May 21, 2013 17:47

Hunk09,

1. create a form on the view
2. create a process manual plsql for condition: request = 'CREATE' using your function and save the PK of return in your article
3. for condition: application (SAVE, DELETE') by default, use the process of automatic line

Jens

Tags: Database

Similar Questions

  • Instead of trigger is running, but the values are not inserted into the view

    I created a view
    create or replace view as select e.department_id, e.last_name, d.department_name employee e, Department d where e.department_id = d.department_id;

    create or replace trigger trgg instead of inserting it on vns for each line
    declare
    The CNT number;
    Start
    Select count (*) in the cnt of employees where department_id =:new.department_id;
    If cnt = 0 then
    insert into employees (department_id, last_name) values(11,'nandu');
    end if;
    Select count (*) in the cnt of the Department where department_id =:new.department_id;
    If cnt > 0 then
    insert into dept (department_name) values('wrestling');
    end if;
    end;
    /
    This is the code required. .plz answer the right
    create or replace view
    vns as
    select e.department_id,e.last_name,d.department_name
    from employees e,departments d
    where e.department_id=d.department_id;
    
    create or replace trigger trgg
    instead of insert on vns
    for each row
    declare
    cnt number;
    begin
    select count(*) into cnt from employees where department_id=:new.department_id;
    if cnt=0 then
    --insert into employees(department_id,last_name) values(11,'nandu');
    insert into employees(employee_id,email,hire_date,job_id,department_id,last_name)
                   values(207,'[email protected]',sysdate,'AC_MGR',11,'nandu');   --- Values you have to choose!!
    end if;
    select count(*) into cnt from departments where department_id=:new.department_id;
    if cnt>0 then
    insert into departments(department_id, department_name) values(11, 'wrestling');  -- department_id is needed
    end if;
    end;
    /
    
    -- testing with existing dept id = 10
    
    insert into vns(department_id) values(10);
    
    SQL> select * from departments where department_id = 11;
    
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID LOCATION_ID
    ------------- ------------------------------ ---------- -----------
               11 wrestling
    

    Requirement, you must be knowing well
    Show you how the trigger must be according to your point of view and logic inside the trigger or you recreate in order to avoid the required values in the trigger body.

    Thank you!

  • Order insertion of records using forms

    Hello

    (forms6i)

    I datablock, without querying the database records, I enter some values and try to save.
    In case if one of the input files already exists in the database, I should stop the insertion and the cursor must be on the document that repeats.

    I tried on_insert trigger as
    declare
         alno number;
         cnt number;
    begin
         
    select count(fname||','||lname) into cnt
    from teacher_dup where 
    fname||','||lname =:fname||','||:lname;
    
    if cnt >0 then
         set_alert_property('alert1',alert_message_text,'The record already exists in the database');
         alno := show_alert('alert1');
         rollback;
         raise form_trigger_failure;
    else 
         INSERT_RECORD;
    --     :fname:=null;:lname:=null;:tid:=null;
         
    end if;
    
    end;
    Work of Jose, but shows the error message like
    ROLLBACK_NR-INSERT Trigger small FRM-40737 illegal procedure.

    What I do is correct?

    Also if a 3-disc set, user tries to insert
    The only record is violating primary key constraints, then I don't want to save documents in the table.
    But the above procedure saves the other records, except the one that violates.

    How can I control that?

    Thank you

    Adkins,

    Try the code in the trigger PRE_INSERT ON_INSERT trigger INSTEAD of below.

    declare
         alno number;
         cnt number;
    begin
    
    select count(fname||','||lname) into cnt
    from teacher_dup where
    fname||','||lname =:fname||','||:lname;
    
    if cnt >0 then
         set_alert_property('alert1',alert_message_text,'The record already exists in the database');
         alno := show_alert('alert1');
         raise form_trigger_failure;
    end if;
    
    end;
    

    I hope this helps.

    Kind regards

    Manu.

  • Redirect data to another table using before insert trigger.

    Dear all,
    How can I redirect the data to another table in a before Insert trigger? My database is Oracle10g.
    I have a table EMP (EMP_ID, LAST_NAME, SALARY).
    I have another EMP_COPY table with the same structure. I also have a before Insert trigger on the EMP table.
    Based on a condition that I have to redirect the data in table EMP_COPY. Let's say the condition is EMP_ID = 100.
    I fire an insert on EMP table for example INSERT IN EMP(EMP_ID,LAST_NAME,SALARY) VALUES(100,'Dev',500).
    On the inside of the front Insert trigger on the EMP table, I have the code
    IF EMP_ID = 100 THEN
    INSERT INTO EMP_COPY (EMP_ID, LAST_NAME, SALARY)
    VALUES(:NEW.) EMP_ID,: NEW. LAST_NAME,: NEW. SALARY);
    COMMIT;
    ON THE OTHER
    NULL;
    END IF;
    But the problem here is that data goes to EMP table of origin also although I don't want. He should do an Insert into EMP table only if EMP_ID! = 100.

    One way has been to raise a user-defined exception inside the If statement and not handle it so that the original insert on table EMP fails but INSERT comes in the EMP_COPY table. But in this solution since the inside the trigger unhandled exception, it propagates to the calling environment. And I can't stand outside relaxation as the calling environment is a form of Oracle Apps standard that cannot be customized.

    Any kind of help will be highly appreciated that I am fighting for more than two weeks.

    Thanks in advance
    Dev

    Remove the autonomous transaction pragma... and then try again.

  • Instead of Insert or Update

    Hello
    I need help to create a trigger? I have created a form that is based on a view with two tables.
    Table A - primary key SEQ_NO
    Table B - foreign key FK_SEQ_NO
    What Miss me in my code to make sure that table B will get correct data based on FK pointing when the data is created in the APEX according to Table A PK?
    < code >
    CREATE OR REPLACE TRIGGER BUI_VW_TEST
    INSTEAD OF INSERT OR UPDATE
    ON VW_TEST
    FOR EACH LINE
    BEGIN
    UPDATE TABLEA
    FIELDA = SET: NEW. FIELDA,
    FIELDB =: NEW. FIELDB,
    FIELDC =: NEW. FIELDC

    UPDATE TABLEB
    SET FIELDD =: NEW. FIELDD,
    CRC =: NEW. CRC,
    FIELDF =: NEW. FIELDF
    WHERE FK_SEQ_NO =: OLD. SEQ_NO;
    END BUI_VW_TEST;
    < code >
    I don't know that this code does not guarantee that the related data of table will A get associated Table B. Any help is appreciated, thanks.

    try using the syntax below: -.

    CREATE OR REPLACE TRIGGER "BUI_VW_TEST".
    INSTEAD OF INSERT OR UPDATE ON 'VW_TEST '.
    FOR EACH LINE
    BEGIN

    UPDATE TABLEA
    FIELDA = SET: NEW. FIELDA,
    FIELDB =: NEW. FIELDB,
    FIELDC =: NEW. FIELDC;

    UPDATE TABLEB
    SET FIELDD =: NEW. FIELDD,
    CRC =: NEW. CRC,
    FIELDF =: NEW. FIELDF
    WHERE FK_SEQ_NO =: OLD. SEQ_NO;

    END;
    /

    Kumar

  • Make required error appears only the primary key generated in prior Database Table insert trigger

    Dear all,

    I am a beginner in the ADF and am under Jdeveloper Studio Edition Version 12.2.1.0.0.


    I'm trying to insert a record, I created the trigger for insertion prior to get the primary key and set some other default values.


    On the page, I did read-only primary key column and false required.


    When I try to save - commit (Programmatic), I get errors for the required value. How can I stop this errors.


    Secondly, I also tried changing the agent to disabled on the attribute View object that raised the error below:


    < oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl > < DiagnosticsDataExtractorImpl > < createADRIncident > < incident created 148 to key problem "DFW-99998 [oracle.jbo.PersistenceException] [oracle.jbo.server.RowReference.verifyPrimaryKeys] [Proposals]" >


    Hoping for help.


    Thanks and greetings


    Arif Khadas

    If the primary key values from DB sequence, you can follow this approach:

    Using the sequence of database in ADF - Souza Waslley Blog

    Oracle Fusion Middleware Technologies: ADF 11 G: generate the primary key sequence number

    Otherwise, instead of DB trigger, create the DB function that retrieves the value of the PK and call stored function in the overloaded method create() entity:

  • Prior insert trigger

    Hello

    I'm working on form of oracle 10g, and I get the following error when inserting a record: "FRM - 40735:PRE - INSERT-triiger raised unhandled exception ORA-06503"

    When I remove the trigger for insertion prior to the field, the error record sace and cancel out successfully, here's the code for the previous insert trigger:

    / * To insert the Date and the user automatically * /.
    DECLARE
    vb_result BOOLEAN;

    BEGIN
    vb_result: = pkg.check_unique ('reference', 'ref_desc': reference.ref_desc, 'ref_type',:reference.ref_type, null, null, 2);

    IF (vb_result = TRUE)
    THEN
    msg_alert ("Description already existing < ', 'E', TRUE");
    END IF;

    : reference.ref_cdate: = SYSDATE;
    : reference.ref_cuser: = USER;
    END;

    can someone help me thanks

    Published by: user11811876 on August 21, 2009 10:58

    Hello

    ORA-06503 means you used a function but do not return a value of it.

    You can actually use retrun in your function, but in some cases, in my view, is not there (especially in the case of exception).

    Just checking your cil_pkg.check_unique function or even zip code here.

    You missed a return statement somewhere inside.

    It will be useful.

    Check the answer as useful / OK, if this can help you

    Carole

  • Connection to the database to Oracle using Oracle Apex 5.0.1

    Hi all

    Is it possible to connect to the Oracle (Oracle SQL Developer 4.1.1) database using Oracle Apex 5.0.1 instead of using the object browser. As he was more workspace after you have downloaded the data we have on CSV Excel.

    For example: regardless of the tables I've created in the Application Builder is created in the object browser. We have limited the workspace of 500 MB. This is the reason why we cannot use this method to load the data and retrieve it. (Note: can I ask 2 GB of space to work on the approval of the Director, who is still not sufficient)

    Is it possible that I will create an apex.oracle.com application by using the application builder and I will create in the database tables. When I load the file in application, data will be stored in the database Oracle instead of the object browser.

    Well let me know is possible, if yes, how can I proceed.

    If this isn't the case, please let me know how I can get more workspace.

    According to my understanding, other possibilities are: 1) taking backup of old files and free up space, 2) create another workspace and get extra work space.

    Thanks for your help!

    Kind regards

    Vinod

    Hello

    When you load data using APEX SQL Workshop utilities for example, the data is stored in your database tables.

    Object browser is just seen tool your schema as the table objects and the data in the tables, just as SQL Developer.

    If you have no good reason to keep these files that you downloaded in the workspace, delete those. Data is stored in database tables.

    Kind regards

    Jari

  • How to insert an anchor named in version 13.0?  Used to be in the Insert tab.

    Anyone know where the insert named anchor is in version 13.0 of dreamweaver?

    He went from DW CC as named anchors are deprecated.  Use an ID instead.

    Insert content here...

    LINKS:

    On the same page a link to ID

    ID link on other pages

    Nancy O.

  • Prior insertion trigger problem

    Hi Guyz,

    I am facing a strange problem or may be wrong somewhere, but can't find my problem, I hope I'll get the solution to my problem here im im.

    IM updating my quantities in the table MN_ITEM_DETAILS.
    SQL> DESC MN_ITEM_DETAILS
     Name                                      Null?    Type
     ----------------------------------------- -------- ------------------
     SI_SHORT_CODE                                      NUMBER(10)
     SI_CODE                                            NUMBER(15)
     ITEM_DESCP                                         VARCHAR2(200)
     ITEM_U_M                                           VARCHAR2(6)
     ITEM_QTY                                           NUMBER(10)
     ITEM_REMARKS                                       VARCHAR2(100)
    I have below master-details on before insert trigger block works very well.
    SQL> DESC MN_MDV_MASTER
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MDV_NO                                    NOT NULL NUMBER(15)
     MDV_DATE                                           DATE
     WHSE_LOC                                           VARCHAR2(15)
     PROJ_WHSE                                          VARCHAR2(30)
     ACTIVITY_LOC                                       VARCHAR2(30)
     MRF_NO                                             VARCHAR2(30)
     CLIENT                                             VARCHAR2(30)
     CLIENT_PO#                                         VARCHAR2(15)
     CLIENT_PO_DATE                                     DATE
     WHSE_INCHG                                         VARCHAR2(30)
     WHSE_DATE                                          DATE
     RECD_BY                                            VARCHAR2(30)
     INSPECTED_BY                                       VARCHAR2(30)
     DRIVER_NAME                                        VARCHAR2(30)
     REMARKS                                            VARCHAR2(200)
     RECD_BY_DATE                                       DATE
     INSPECTED_DATE                                     DATE
     DRIVER_NAME_DATE                                   DATE
     CST_CENTER                                         VARCHAR2(15)
    
    SQL> DESC MN_MDV_DETAILS
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MDV_NO                                             NUMBER(15)
     ITEM_CODE                                          NUMBER(15)
     ITEM_DESCP                                         VARCHAR2(150)
     ITEM_U_M                                           VARCHAR2(6)
     ITEM_QTY                                           NUMBER(6)
     ITEM_BALANCE                                       NUMBER(10)
     PROJECT                                            VARCHAR2(15)
     ACTIVITY                                           VARCHAR2(15)
     LOCATION                                           VARCHAR2(15)
    All the triggers to INSERT before & after INSERTION block level
    PRE-INSERT -- ON details block level 
    UPDATE MN_ITEM_DETAILS
    SET ITEM_QTY = NVL(ITEM_QTY,0) - NVL(:MN_MDV_DETAILS.ITEM_QTY,0)
    WHERE SI_CODE = :MN_MDV_DETAILS.ITEM_CODE;
    
    POST-INSERT MASTER BLOCK LEVEL TRIGGER
    INSERT INTO MN_MRBV_MASTER(
    MDV#        ,
    MDV_DATE      , 
    WHSE_LOC      , 
    CST_CENTER    )VALUES
    (:MN_MDV_MASTER.MDV_NO         ,        
    :MN_MDV_MASTER.MDV_DATE       ,        
    :MN_MDV_MASTER.WHSE_LOC       ,        
    :MN_MDV_MASTER.CST_CENTER); 
    
    POST-INSERT ON DETAILS BLOCK LEVEL
    INSERT INTO MN_MRBV_DETAILS(
    MDV#         ,
    ITEM_CODE     , 
    ITEM_DESCP    , 
    ITEM_U_M           , 
    QTY      , 
    ITEM_BALANCE  ,
    PROJECT       , 
    ACTIVITY      , 
    LOCATION      )VALUES
    (:MN_MDV_DETAILS.MDV_NO         ,
    :MN_MDV_DETAILS.ITEM_CODE     , 
    :MN_MDV_DETAILS.ITEM_DESCP     ,
    :MN_MDV_DETAILS.ITEM_U_M       ,
    :MN_MDV_DETAILS.ITEM_QTY       ,
    :MN_MDV_DETAILS.ITEM_BALANCE,
    :MN_MDV_DETAILS.PROJECT      ,  
    :MN_MDV_DETAILS.ACTIVITY      , 
    :MN_MDV_DETAILS.LOCATION       ); 
    until the above works fine and its update of the MN_ITEM_DETAILS. ITEM_QTY correctly

    but im using the same as above in the MASTER-DETAIL table below but do not update the ITEM_QTY in MN_ITEM_DETAILS
    SQL> DESC MN_MRBV_MASTER
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MDV#                                      NOT NULL NUMBER(15)
     MDV_DATE                                           DATE
     WHSE_LOC                                           VARCHAR2(15)
     RET_FRM_PROJECT                                    VARCHAR2(1)
     RET_FRM_CLIENT                                     VARCHAR2(1)
     CST_CENTER                                         VARCHAR2(15)
     WHSE_INCHG                                         VARCHAR2(30)
     WHSE_DATE                                          DATE
     RETURN_BY                                          VARCHAR2(30)
     INSPECTED_BY                                       VARCHAR2(30)
     RETURN_BY_DATE                                     DATE
     INSPECTED_BY_DATE                                  DATE
     DRIVER_NAME                                        VARCHAR2(30)
     DRIVER_DATE                                        DATE
     REMARKS                                            VARCHAR2(250)
    
    SQL> DESC MN_MRBV_DETAILS
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     MDV#                                               NUMBER(15)
     ITEM_CODE                                          NUMBER(15)
     ITEM_DESCP                                         VARCHAR2(150)
     ITEM_U_M                                           VARCHAR2(6)
     QTY                                                NUMBER(6)
     ITEM_BALANCE                                       NUMBER(10)
     PROJECT                                            VARCHAR2(15)
     ACTIVITY                                           VARCHAR2(15)
     LOCATION                                           VARCHAR2(15)
    PRE-INSERT--> here its not updating the MN_ITEM_DETAILS.ITEM_QTY table any sugesstion plz why its not updating...?
    MDV_DETAILS
    UPDATE MN_ITEM_DETAILS
    SET ITEM_QTY = NVL(ITEM_QTY,0) + NVL(:MN_MRBV_DETAILS.QTY,0)
    WHERE SI_CODE = :MN_MRBV_DETAILS.ITEM_CODE;
    Concerning

    Houda

    Published by: houda Shareef on January 8, 2011 02:19

    try to write your code in before update trigger

  • change the port used by apex 4.0

    Hello

    How can I change the port used by apex? For example, instead of 8080 I want to use 8081

    Thank you

    If you use OC4J, or any other application server, but you do not use the EPG you must reset the EPG

    exec dbms_xdb.sethttpport( 0 );
    
  • How FTP a file from the client computer to the server database using Forms 10 g

    Hello
    I want a file from a client computer to the database server computer using Forms 10 G (or PL/SQL) via ftp.
    could you please tell me how can I do this

    Concerning

    Hello

    I gave u the adequate instructions on webutil configuration but u did not comply with it.
    I will post again please read correctly and follow it.

    How to get running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a new 'Complete' installation of Oracle Developer Suite 10.1.2.0.2,
    Here are the steps to get a shape of small test running, using WebUtil 1.06.

    Note: Oracle_Home is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor and do a find/replace on
    Oracle_Home with your real value (no slash). Then, it is easy to
    copy and paste the actual orders to be run from the copy of the memo.

    (* 1) * download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
    and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.

    (* 2) * copy or move jacob.jar and jacob.dll
    C:\webutile is the folder where you extracted Jacob and ends in ...\jacob_18
    CD C:\webutile
    Copy jacob.jar Oracle_Home\forms\java\.
    Copy jacob.dll Oracle_Home\forms\webutil\.
    Staging of Jacob is no longer needed and can be deleted.

    (* 3) * sign frmwebutil.jar and jacob.jar
    Open a DOS command prompt.
    Add Oracle_Home\jdk\bin in the path:
    set PATH=Oracle_Home\jdk\bin;%PATH%
    Sign files and check the result of success:
    Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\frmwebutil.jar
    Oracle_Home\forms\webutil\sign_webutil Oracle_Home\forms\java\jacob.jar

    (* 4) * If you already have a pattern in your RDBMS that contains stored WebUtil code,.
    You can skip this step. Otherwise,.
    Create a schema for the stored code WebUtil and privileges to
    Sign in and create a stored package. Name of the schema "WEBUTIL" is recommended
    for no reason other than consistency based on users.
    Open Oracle_Home\forms\create_webutil_db.sql in a text editor and remove or comment
    the declaration of EXIT, in order to see if the objects have been created witout
    errors.
    Launch SQL * more like SYSTEM and the issue:
    Webutil IDENTIFIED BY password CREATE a USER
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp;
    /
    GRANT CONNECT, CREATE PROCEDURE, CREATE SYNONYM TO webutil PUBLIC;
    /

    CONNECT webutil/webutil@rcci
    @Oracle_Home\forms\create_webutil_db.sql
    -Inspect SQL * Plus output for errors, and then
    CREATE a PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
    /

    Reconnect as SYSTEM and the question:
    Grant execute on webutil_db to public;

    /

    (* 5) * Edit Oracle_Home\forms\server\default.env and add Oracle_Home\jdk\jre\lib\rt.jar
    to the CLASSPATH entry.

    (* 6) * add edit Oracle_Home\forms\server\formsweb.cfg default insde:
    archive_jini = frmall_jinit.jar, frmwebutil.jar, Jacob.jar
    Archive = frmall.jar
    also add:
    webutil
    WebUtilLogging = off
    WebUtilLoggingDetail = normal
    WebUtilErrorMode = alert
    WebUtilDispatchMonitorInterval = 5
    WebUtilTrustInternal = true
    WebUtilMaxTransferSize = 16384
    baseHTMLjinitiator = webutiljini.htm
    baseHTMLjpi = webutiljpi.htm
    baseHTML = webutilbase.htm
    archive_jini = frmall_jinit.jar
    WebUtilArchive = frmwebutil.jar, jacob.jar, f90all.jar
    Archive = frmwebutil.jar, f90all.jar
    lookAndFeel = oracle

    (* 7) * Oracle_Home\forms\server\webutil.cfg edit and add:
    Transfer.Database.Enabled = True
    Transfer.appsrv.Enabled = True

    (* 8) * start the OC4J instance

    (* 9) * start Forms Builder and connect to a schema in the RDBMS used in step (4).
    Webutil.PLL open, make a 'compile ALL' (shift-control-K) and generate PLX (Ctrl-T).
    It is important to generate the PLX, in order to avoid the FRM-40039 indicated in Note 303682.1
    If the PLX is not generated, the library Webutil.pll must be fixed with
    path information full access to all who wish to make use of WebUtil. This is NOT recommended.

    (* 10) * create a new WBF.
    Open Webutil.olb and subclass (not copy) the Webutil opposes the shape.
    There is no need to subclass the WebutilConfig object.
    Attach the Webutil.pll library and remove the path.
    Add a logon trigger IT with code
    NULL;
    to avoid having to connect to a RDBMS (optional).
    Create a new button on a new canvas, with the code
    show_webutil_information (TRUE);
    in a trigger WHEN BUTTON PRESSED.
    Compile the FMB to FMX, after doing a compilation-All (shift-control-K).

    (* 11) * under Edit-> preferences-> Runtime in the form designer, click the "Reset to Default" If
    the "Application Server URL" is empty.
    Then add '? config = webutil' at the end, if you end up with a URL of the form
    : http://application-tier server: port/forms/frmservlet? config = webutil

    (* 12) * run your form

    Note: If you want to use Jacob and you can configure jacob too, if you follow the above mentioned instructions.
    Sarah

  • Instead of Update trigger error

    Hi all
    I tried to solve this problem of course 4-5 days... I'm unable to solve... Can someone please...

    I hhave a requirement I need to update 4 tables from a single form... I created a view that will get the required fields as well as primary keys for all these tables of 4.

    Then I created a trigger Instead of Update as below

    CREATE OR REPLACE TRIGGER "HOMEPAGEVIEW_UPDATE".
    Instead of UPDATE on cts_homepageview
    BEGIN
    DECLARE
    vID NUMBER;
    UPDATE cts_hardware_info
    SET BATCH =: NEW. BATCH,
    COMPUTERNAME =: NEW.COMPUTER_NAME,
    OPERATINGSYSTEM_ID =: NEW. OPERATINGSYSTEM_ID
    where computer_id =: NEW.COMPUTER_ID;

    UPDATE cts_server_administrator
    SET PRIMARY_ADMIN_ID =: NEW. PRIMADMIN_ID,
    SECONDARY_ADMIN_ID =: NEW. SECONDADMIN_ID
    WHERE ID =: NEW.ID;

    UPDATE cts_location_info
    SET BUILDING_ROOM_RACK =: NEW. BUILDING_ROOM_RACK
    WHERE LOCATION_ID =: NEW. LOCATION_ID;

    UPDATE cts_maintenace_info
    SET MAINTENANCE_WINDOW =: NEW. MAINTENANCE_WINDOW
    WHERE MAINTENANCE_ID =: NEW. MAINTENANCE_ID;
    END;


    When I try to update a record, am gettting the following error

    ORA-20505: DML error: p_rowid = 488, p_alt_rowid = COMPUTER_ID, p_rowid2 =, p_alt_rowid2 is. ORA-02014: cannot select the UPDATES view DISTINCT, GROUP BY, etc.
    Error failed to process row in the CTS_HOMEPAGEVIEW table.
    Ok


    I've already posted this question on the forum, but force the answers so try my luck again... Can someone please... I searched the forum for similar requests ths... Found a post the solution bt is not given...


    Thank you
    Yvette

    Published by: user0012 on April 29, 2009 09:54

    Yvette:

    Most likely you typoed a name table or a column in the code in the trigger name. Check that the table names and column names referenced in the trigger are valid. Take a look at the line with

    OPERATING_SYS =: NEW. OPERATING_SYS

    Is this a valid column?

    CITY

  • Parent - child Table Insert Trigger

    Hello
    I need assistance with an Insert trigger. I want to insert field data 'Table A' "Table B" based on a PK and FK. Someone at - it examples of code?
    < code >
    Table A
    SEQ_NO - PK
    TO FIELD
    FIELD B
    C FIELD

    Table B
    FK_SEQ_NO
    FIELD B
    C FIELD
    < code >

    When the data is stored in the 'table A' I need fill out the 'FK_SEQ_NO', based on the saved value 'Table A' "SEQ_NO" as well as the values of FIELD B and C FIELD recorded in Table B.
    Any help is really appreciated, thank you.

    Hi Charles,

    It depends exactly how you created your trigger.

    In my trigger I fill WORK_PACKAGE_ID (PK) in the parent table using rmdb_work_packages_seq. NEXTVAL. The insert statement then uses: NEW. WORK_PACKAGE_ID to fill the coumn FK in table child.

    You can also use ITEM_ID_SEQ. CURRVAL who will repeat the last number that was created, and I suppose that you use to fill A table.

    Hope that helps,
    Martin

  • Thunderbird no longer win 10 when I used Windows Defender instead of AVG (if Thunderbird not dangerously ruled Defender analyses) - what is the solution?

    Thunderbird has stopped working win 10 when I used Windows Defender instead of AVG - free

    The event log to win 10 had many "ERROR!" Application Hang. "entries, all this said:
    The version of the program 38.3.0.5749 thunderbird.exe ceased to interact with Windows and was closed. To see if there is more information about the problem, check the history of the problem in the pants of control of security and maintenance
    Process ID: 1acc
    Start time: 01 d102e33137ce7e
    Log name: Application
    Source: Application Hang connected: 10/10/2015 00:45:36
    Event ID: 1002 task category: (101)
    Level: Error keywords: Classic
    User: N/a computer VidAce
    OpCode:

    Things returned to normal when I excluded thunderbird. EXE from analysis of sdefender of window operations. But it's dangerous for security. How to fix this please?
    Thank you.

    Thunderbird is compatible with Windows 10. Defender problems are exactly that. Something that Microsoft needs to fix.

    Regarding a malicious attachments go. What of them?

    Before they can do any harm, they must be transformed into a binary file in the text, they are converted to attach them to the message and then be written in the Temp folder so they can be passed to the operating system with an application for opening of their. An antivirus program that cannot detect the payload of a newly written file and keep it opens is not worth the CPU cycles which is uses for to fail in its primary function. Defender claims to do this. If it isn't, still an issue for Microsoft. Now Thunderbird...

Maybe you are looking for