Triggers do not insert parallel columns

I have two column in the same type of data, when I entered A column then it must insert the same value in another column B.

the first condition works well but the second option is not insertion of the value.

the reason: language selection (two) represent each other.

CREATE TABLE EMP_TITLE (TITTLE_ENG VARCHAR2(25),TITTLE_ARB  VARCHAR2(25))

INSERT INTO EMP_TITLE (TITTLE_ARB)  VALUES ('TEST12')

SELECT * FROM EMP_TITLE

create or replace TRIGGER TITTLE_TEGR
      BEFORE INSERT OR UPDATE OF TITTLE_ENG,TITTLE_ARB   ON  EMP_TITLE
       FOR EACH ROW

    BEGIN
       IF :old.TITTLE_ARB  IS NULL   THEN
         :NEW.TITTLE_ARB  := :NEW.TITTLE_ENG ;
          ELSE 
          :NEW.TITTLE_ENG := :NEW.TITTLE_ARB  ;
       END IF;
    END;

First of all, why do you need the same value in two columns? In any case, here's the code of the trigger

create or replace TRIGGER TITTLE_TEGR

BEFORE INSERTION OR UPDATE OF TITTLE_ENG, TITTLE_ARB ON EMP_TITLE

FOR EACH LINE

BEGIN

IF THE INSERTION

IF: NEW. TITTLE_ARB IS NULL THEN

: NEW. TITTLE_ARB: =: NEW. TITTLE_ENG;

ON THE OTHER

: NEW. TITTLE_ENG: =: NEW. TITTLE_ARB;

END IF;

ELSIF UPDATE ("TITTLE_ENG") THEN

: NEW. TITTLE_ARB: =: NEW. TITTLE_ENG;

ON THE OTHER

: NEW. TITTLE_ENG: =: NEW. TITTLE_ARB;

END IF;

END;

Thank you

Ann

Tags: Database

Similar Questions

  • Excel & ActiveX: Insert arbitrary columns of 2D array and create problems of graph

    Hello

    I want to insert data in a 2D of LabView or 1 d table in Excel and create graphics.

    I used the information in the following example:

    http://www.NI.com/example/28934/en/

    and has managed to create a new Excel file (I use Excel 2010) writes data in a 1 d table to a column in excellent by creating a while loop and using the first element of the array to write in a specific cell. I use the loop counter to write to the next cell when the loop starts again and always remove the first value, I write to the cell of the table until it is empty.

    Now I also want to write a 2D - column in Excel table should be the first column of the matrix and so. Here, I can not use the loop counter directly as Excel there are only 1,2,... for the lines, but uses A, B,... to count columns. Also I do not know in advance the number of columns my 2D array will contain, thus creating a lookup table as (A means 1, 2 B, which means...) is not really an option (except there is really no other way). Is there a possibility to convert numbers into letters or somehow to "explain" to the program that this column 2 of the table means column B in Excel for example, or is it possible to insert new columns?

    I figured out how to add new calculation sheets and as I also need to create a certain number of spreadsheets and I know that the standards 3 sheets are present during the creation of the file, I use the method 'Add' to create new worksheets before the worksheet 3 - I could use the same method to create new columns in Excel , but so far I have not found a method to do. Or is there a way to enter into the 2D table all at once?

    So I want to create a chart (in case 1 d tables draw a bar when using 2D arrays a 3D field) to display the data. I found this example:

    http://www.NI.com/newsletter/51339/en/

    -> that I do not have the tool box I would do it directly using ActiveX, so I tried to make things as shown under the title "ActiveX DIY /.» NET'

    I tried to load the code snippet into a new Excel file but got the error message "microsoft.office.interop.excel.dll" not found and this is why the code does not work. Which confuses me a bit as I guess when this dll is not present I can not access Excel of LabView at all, although my understanding of what I'm doing so far is limited in the calm. ;-)

    Also - as far as I understand the extract - when you create a new graphic object, I should be able methods to create for her, however when I do a right click on the graphic object to a symbol of the spreadsheet ActiveX it no listed.

    To explain my problems better, I added an excerpt showing my two problems: the inside of the two loops while showing how to import a table 1 d. In the outer loop I separate the columns. I know that is not currently as has all the data in the column of the Excel sheet - so I need to convert the external meter number a, B,... or find another solution.

    In addition, on extract, I placed a property ActiveX spreadsheet with the Chart object - I can see that the difference to the graphics object of the example code of the last link above is the color. However I do not know what it means and how to change / fix this.

    And just to make sure - I know that this path that the VI is not running as the graphical object is placed completely false – I just did, so it is included in the extract.

    I would be grateful for any suggestion,

    Thank you!

    Hi all

    for your information in professional 2014 LabVIEW report generation toolkit is included

    Table 2D

    I want to write table 2D in specific columns/rows in excel

    Graph

    Create a graph through ActiveX Labview traced XY scatter on an excel sheet

    also good information about Excel and ActiveX

    Excel Council

    Hope that if aid, if not please let me know.

  • Changing table - SQL error: ORA-04091: table XYZ is changing, function of triggering/can not see

    Hi all

    I am a newbie to Oracle and I am faced with the above error. Please see the below code snippets. Can someone please tell what I am doing wrong? Thank you in advance.

    Thank you

    CREATE TABLE ABC

    (

    ID VARCHAR2 ENABLE NUMBER NOT NULL,

    FIELD1 ACTIVATE THE NUMBER NOT NULL,

    FIELD2 ACTIVATE THE VARCHAR2 (8 BYTE) NOT NULL,

    CONSTRAINT JOB_PK PRIMARY KEY (ID)

    )

    ;

    CREATE TABLE XYZ

    (

    ACTIVATE THE NUMBER 4 R_ID NOT NULL,.

    ID VARCHAR2 ENABLE NUMBER NOT NULL,

    Column1 NUMBER (2.0) default 0.00,.

    Column2 NUMBER (2.0) default 0.00,.

    COLUMN3 NUMBER (2.0).

    NUMBER (2.0) TOTAL 0.00 default.

    CONSTRAINT TRIP_PAYMENT_PK PRIMARY KEY (ID)

    )

    ;

    create or replace trigger trigger1

    After Insert on XYZ

    for each line

    Declare

    number of newTotal;

    Start

    newTOTAL: =: new. Column1 +: new. Column2 +: new. COLUMN3;

    setting a day of XYZ together Total = newTotal;

    end;

    Insert into ABC (1, 45, ' Demo');

    insertion in XYZ (1, 1, 12.50, 10.20 33,50, ");

    Error report:

    SQL error: ORA-04091: table XYZ is changing, function of triggering/can not see

    Try one before line

    create or replace trigger trigger1

    before inserting on XYZ

    for each line

    Start
    : new. TOTAL: =: new. Column1 +: new. Column2 +: new. COLUMN3;
    end;

  • ERROR / T_ITEMS in the TABLE is changing, function of triggering/can not see ORA-06512... ?

    Hi all

    I CREATED THE TRIGGER TO CHECK NOM_ELEMENT BEFORE UPDATE ON THE T_ITEMS TABLE IF AN ANOTHER NOM_ELEMENT LIKE NOM_ELEMENT CURRENT OR NOT, IF AS AN ANOTHER NOM_ELEMENT DON'T SAVE UPDATED CURRENT NOM_ELEMENT.

    MY NO IS:

    1 - I CREATED the FUNCTION CALL CH_UNIQUE_ITEM_NAME

    CREATE OR REPLACE FUNCTION CH_UNIQUE_ITEM_NAME
    (NUMBER OF P_ID, P_ITEM_NAME IN VARCHAR2)
    RETURN NUMBER
    AS
    NUMBER OF X_COUNT;
    -FUNCTION "CH_UNIQUE_ITEM_NAME" TO CHECK NOM_ELEMENT LIKE OTHER NOM_ELEMENT OR NOT.
    BEGIN
    SELECT COUNT (ITEM_NAME)
    IN X_COUNT
    OF T_ITEMS
    WHERE ID! P_ID =
    AND UPPER (ITEM_NAME) AS UPPER (P_ITEM_NAME);
    RETURN X_COUNT;
    END CH_UNIQUE_ITEM_NAME;

    2. I CREATED TRIGGER CALL TRG_CH_UNIQUE_T_ITEMS

    CREATE OR REPLACE 'TRG_CH_UNIQUE_T_ITEMS' before FIRING
    UPDATE
    ON T_ITEMS FOR EACH LINE
    DECLARE
    NUMBER OF X_CHECK;
    BEGIN
    SELECT CH_UNIQUE_ITEM_NAME (: OLD.ID,: NEW.) NOM_ELEMENT) IN DOUBLE X_CHECK;
    IF (: NEW.) NOM_ELEMENT DISLIKES: OLD. Nom_element AND X_CHECK > 0)
    THEN RAISE_APPLICATION_ERROR (-20007, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
    END IF;
    END;

    NOW WHEN I UPDATE ANY ITEMS FOUND ERROR "ERROR / T_ITEMS in the TABLE is changing, function of triggering/can not see ORA-06512.

    Form on T_ITEMS22222.png

    Please help me TO RESOLVE THIS ERROR. I TIRED TO SOLVE...

    Thank you

    You don't realize that you have just set a UNIQUE INDEX of several columns?

    create unique index index_name_uq on table_name( user#, upper(item_name) );
    

    In addition, a GUI Design point, (using the terms of the APEX) that you want to validate the data before submit you.

    (use a Page-level Validation)

    MK

  • How to align paragraphs in parallel columns

    Hello

    I have two parallel columns in indesign cc.  Currently, paragraphs are not aligning with each other.

    You know a way to align them vertically without adding a table or manually break lines?

    Here is a picture of what I have now, with red lines showing the paragraph which should correspond to the top-

    1.png

    Any tips are appreciated

    Thank you

    Christopher

    I would just use a base grille combined with a half dozen paragraphs... style that I would probably have a set for each language.

    A couple of points. I was already in QXP, so that what I used for the screenshot rather than from code. It is almost the same process in the ID, however. There are paragraph styles 5 here - I was not duplicate them for I can have both languages to check spelling (that's why I would duplicate them). You can probably do what paragraph style names.

    There could be a paragraph style less simply by using a return where they are needed to force a gap between paragraphs. I would use the base line (because it is not technically necessary to) are one of the reasons for an absolute visual reference, and it is easy to force a paragraph using the keyboard shortcuts for the space above and once the threshold is crossed, paragraphs align on the next baseline.

    Yep, it's not automatic. Yep, it's a thing of page by page. I presented a bilingual publication once this way years ago. It's stupid, almost mind-numbing work. Mount the stereo for this last pass by looking for places to lower.

    Mike

  • Trigger that avoids "is changing, function of triggering/can not see ' error

    Version Oracle 11.2.0.2

    I have a problem where I try to avoid duplicates in a table using a trigger.  Data looks like:

    EQUIP LO ACCT

    ---------- -- ----

    1000000000 0

    1000000001 0

    1000000002 0

    1000000003 0

    1000000004 0

    Equipment = equipment identifier

    Location = location number

    Acct = account associated with the equipment

    I need avoid the same account to have 2 pieces of equipment are allocated to the same location.

    for example

    EQUIP LO ACCT

    ---------- -- ----

    1000000000 1 1234

    1000000001 1 1234

    1000000002 0

    1000000003 0

    1000000004 0

    I can't create a unique index for this table that when there is no assigned equipment (first example) I couldn't have uniqueness through the location and number.  So, I wrote the following:

    CREATE or REPLACE TRIGGER TEST_TRG before update of test WE acct

    Old SEO AS OLD AS new NEW

    for EACH LINE

    DECLARE

    v_chk number: = 0;

    BEGIN

    Select count (*) in the test v_chk where acct =:new.acct and rental =:new.location;

    IF v_chk > 0 then raise_application_error ("-20001, ' multiple devices at the same location not allowed");

    END IF;

    END;

    /

    .. but of course that I'm shot in the table that is being updated, I get the error of mutation:

    setting a day of test set acct = "1234", location = '1' where equip = '1000000001'

    *

    ERROR on line 1:

    ORA-04091: table xxx. TEST is changing, function of triggering/can not see

    ORA-06512: in "xxx. TEST_TRG', line 4

    ORA-04088: error during execution of trigger ' xxx. TEST_TRG'

    I tried this split into two pieces where a trigger calls another procedure to perform the check and write error, but results were inconsistent and end-user demand does not pick up the error for a reason - it seems to process the transaction very well even if the update was not made at the table level.

    Are there other ways in addition to a trigger to achieve?

    Thank you!

    Adam

    Monty77 wrote:

    ... I can't do this, acct is not a null value, it is ' '.  Right or wrong it is not editable as integrated in application logic.

    Thank you!

    Adam

    Then also consider this value in your index of function according to:

    create table test

    (

    equip the varchar2 (10),

    location varchar2 (2),

    ACCT varchar2 (4)

    );

    CREATE a UNIQUE INDEX TestLocationAcct_UK ON Test

    (case when the ACCT is not null ACCT AND! =' ' then location |) « ; » || end of the ACCT);

    Insert test values ('1000000000 ', ' 0',' ');

    Insert test values ('1000000001 ', ' 0',' ');

    Insert test values ('1000000002 ', ' 0',' ');

    Insert test values ('1000000003 ', ' 0',' ');

    Insert test values ('1000000004 ', ' 0',' ');

    Update test set acct = "1234", location = '1' where equip is '1000000000';.

    Update test set acct = "1234", location = '1' where equip is '1000000001';.

    Error on line 1

    ORA-00001: unique constraint (SYSADM. TESTLOCATIONACCT_UK) violated

    Kind regards.

    Al

    Name of the index has changed to testlocationacct

  • To find a value that does not move to columns

    Version of database 11g (11.2.0.3.0)
    AIX OPERATING SYSTEM

    I'm writing some SQL/PLSQL, who selects a value in a table that is not always in the same column. I need to find which column is on a table, then use this place of the column to find its value coresponding on another table.

    Example:
    CREATE TABLE TIMES (RUN_ID  NUMBER(10),TIME1 NUMBER(10), TIME2 NUMBER(10), TIME3 NUMBER(10), TIME4 NUMBER(10),TIME5 NUMBER(10));
    CREATE TABLE VALS (RUN_ID  NUMBER(10),VAL1 NUMBER(10), VAL2 NUMBER(10), VAL3 NUMBER(10), VAL4 NUMBER(10),VAL5 NUMBER(10));
    
    INSERT INTO TIMES VALUES (1000, 1,2,3,4,5);                          
    INSERT INTO TIMES VALUES (1001, 2,3,4,5,6);                          
    INSERT INTO TIMES VALUES (1002, 3,4,5,6,7);                          
    
    INSERT INTO VALS VALUES (1000, 101,102,103,104,105);                          
    INSERT INTO VALS VALUES (1001, 106,107,108,109,110);                          
    INSERT INTO VALS VALUES (1002, 111,112,113,114,115);                          
    
    SQL> select * from times;
    
        RUN_ID      TIME1      TIME2      TIME3      TIME4      TIME5
    ---------- ---------- ---------- ---------- ---------- ----------
          1000          1          2          3          4          5
          1001          2          3          4          5          6
          1002          3          4          5          6          7
    
    SQL> 
    select * from vals; 
    
        RUN_ID       VAL1       VAL2       VAL3       VAL4       VAL5
    ---------- ---------- ---------- ---------- ---------- ----------
          1000        101        102        103        104        105
          1001        106        107        108        109        110
          1002        111        112        113        114        115
    So for a time-say 3, I want to be able to find first the rows and columns, it appears in on the TIME table and the upward gaze of the WALTZ in the same places of the column in the table VALS.

    Thus, for example the time 3 above, I want to be able to return:

    1000 103 RUN_ID
    1001 107 RUN_ID
    111 1002 RUN_ID

    I got a database that stores values like that so I can't change the way the data is unfortunately inspired. Is there one clever way to do other than look at each TIME column by Union them together, then creating some dynamic sql statements to get the values of the VALS table?

    This is a simplified example, but the table has 98 columns!

    Any help will be greatly appreciated.

    Published by: 991224 on March 1st, 2013 07:13

    Hello

    Welcome to the forum!

    Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

    If you cannot permanently normalize the data, then you can normalize it on the fly.
    Here's one way:

    WITH   unpivoted_times     AS
    (
         SELECT     run_id
         ,     col_num
         ,     t_val     -- If wanted
         FROM     times
         UNPIVOT ( t_val
                FOR  col_num IN ( time1  AS  1
                                        , time2  AS  2
                                        , time3  AS  3
                                        , time4  AS  4
                                        , time5  AS  5
                                )
              )
         WHERE     t_val     IN (3)     -- or whatever
    )
    SELECT   v.run_id
    ,      CASE  t.col_num
                WHEN  1  THEN  val1
                WHEN  2  THEN  val2
                WHEN  3  THEN  val3
                WHEN  4  THEN  val4
                WHEN  5  THEN  val5
          END   AS v_val
    FROM      unpivoted_times  t
    JOIN      vals            v  ON  v.run_id  = t.run_id
    ;
    

    If the same number of target may occur more than once on the same line at the time, then the above query generates multiple lines with the same run_id. For example, if we change your data a little examples:

    -- Don't use this row:
    -- INSERT INTO TIMES VALUES (1002, 3,4,5,6,7);
    -- Use this row instead:
    INSERT INTO TIMES VALUES (1002, 3,3,3,6,7);                          
    

    Leave all other sample data, as you have it posted, then the output is:

    `   RUN_ID      V_VAL
    ---------- ----------
          1000        103
          1001        107
          1002        111
          1002        112
          1002        113
    

    If you have 98 (not just 5) columns that need to be compared, then you will need to list all 98 of these columns at the time in the UNPIVOT clause and all 98 of vals in the expression BOX. Sorry; I don't see any way around that. You could write dynamic SQL statements to the parts of code for you.

  • InDesign self-treatment of parallel texts in parallel columns

    Everyone that I asked this question said-"I don't know exactly what you are trying to do..." "So please READ CAREFULLY.

    I was told that Indesign can handle this easily.  Support of the East Indies from Adobe had no idea what I was talking about.  Their U.S. office did not.

    When you develop a project of book length (400 pages or almost) of 4 parallel texts, there is any REASON NO founded why you want pages PAIRS to wrap on ODD pages.  You usually 2 columns holding 2 * different * texts on the (same) left page and you have also 2 completely different columns now another 2 totally * different * texts on the (odd) right of the pages.  So to deal with the mode of the page, you see 4 texts different ALL in parallel with each other.

    The consequences of this seems SO hard for most people to understand.  This means that the 2 columns of text on the LEFT page (even) will ALWAYS stay on the left page, any page of the book turn you to, and the 2 columns of text on the page will ALWAYS remain on the right-hand pages.

    There is NO PACKAGING of same do pages on odd pages and vice versa.  What's in column 1 of the same page THAT ALWAYS remains in column 1 of each page in the book.  When you turn the pages of the book, everything aligns perfectly - the left 2 texts are in parallel with the texts of law 2.

    I don't see why people have so much problem understand this SIMPLE layout book, of 4 parallel texts spread over 2 pages face to face - which is VERY common in scholarly texts. However, they do.  So if you don't see what I am asking, please re-read above until you do.  Now, told me that Indesign can do this easily, but Adobe staff have failed.  So let me ask you Indesign experts in this forum the crucial question-

    If you set a 4 page layout, where the 2 columns in the left page (even) of page 2 cables up to the left page (even) of page 4 (no, not page 3) - and the 2 columns in the right-hand (odd) page to say page 3 wraps on page 5 (no, not the 4 page) - you can get the program to do this presentation persist more than 400 pages unless the user create laboriously, page by page, link each page to the next page and each subsequent odd page to the odd page?

    Specifically, if I have 4 columns spread over 2 pages, front and I tell Indesign this film of columns page 2 page 4 columns (no, don't not on page 3 columns), and I have a link page 3 columns to page in 5 columns (no, not the page 4 columns)-INDESIGN realize it is a pattern that repeats throughout the entire book , and do it automatically for me?  My people are simply NOT going to understand how to link to odd and even odd pages even.

    for example, I need to implement a 4 page layout, which gives the sequence of peer-to-peer and odd-odd to link, and after the PROGRAM himself should be smart enough to understand that this is the layout that you want for 4 parallel columns... and it replicates it on all pages, until you decide.

    So the question is - Indesign cela or not?  It's a simple YES / NO answer.  InDesign can recongize the presentation of 4 pages (i.e. two face-to-face replicated on the 2 pages from the front) and maintain this provision applies to the length of the book - or it may not.  It is one or the other.

    If I have laboriously link EACH picture of odd page in the book to every odd page, more than 400 pages and I have to each image page in the book link to each subsequent pair page – then we have a serious mental deficiency with the developers of the program.  Anyone who has worked with several parallel texts knows that it is the NORM for several parallel book texts.  The problem I have is finding a program that developers understand that.

    Please be aware, I've traveled about 30 programs, and YES, I'm frustrated.  If Indesign can do it easily without creating stupidly 400 page-image of repetitive image page links that should be obvious to the program (and its developers) so please tell me: "YES he can do that for you."

    Thank you for your knowledgeable help - without being upset I've struggled in the 2 months to make people realize this simple need.

    Those last few words you said: ' as you type, you guessed it DONE!

    It seems that you need to type, so you must have CS4 and Auto-Flow Pro.

  • Process of page does not work when column for APEX_ITEM. HIDDEN is not displayed

    I created a region of report based on an SQl query. In the query that I have three columns that should be in a table, but 2 of the 3 columns should not be visible on the report. Therefore, I don't have to Show checked for them in column of the report region attributes.

    In my tests, if I do not display the columns that are in the tables in the report and run the process of page to insert records into a table, I get the error "no data found". Conversely, if I show columns, my insert is successful.

    That's how work bays? Or is there something that I did not properly.

    Here is the query for the report:
    SELECT APEX_ITEM. ASSISTED BY CHECKBOX (1, ROWNUM, "CHECKED");
    APEX_ITEM. Hidden(2,C.PARTY_ID) ID-this is the column I want to hide.
    APEX_ITEM. Hidden(3,C.PARTY_TYPE_CODE) PTYP-this is the column I want to hide.
    C.PARTY_TYPE_CODE,
    S.PERSON_ID,
    S.PERSON_FIRST_NAME AS THE NAME,
    C.PARTY_CASE_ID

    OF THE CASE. C PARTY
    JOIN INTERNAL DN. PERSON S
    ON C.PARTY_ID = S.PERSON_ID

    WHERE C.PARTY_CASE_ID =: P18_CDBCASE_ID
    AND C.PARTY_SEQ_NO =: P18_SEQ


    Thank you
    Keisha

    Published by: user4579720 on 16 Sep, 2009 14:30

    Keisha,

    If you uncheck the "Show" option, then the HTML corresponding to this element is not rendered on the page. Thus, when you try to inspect this element through APEX_APPLICATION. G_F02, it does not exist.

    A trick I use when I want to have hidden items on the page, but does not make them take all space, is to concatenate them to the items that will be visible.

    Using your query for example, I would like to re - write like this:

    SELECT APEX_ITEM.CHECKBOX(1,ROWNUM,'CHECKED')ATTENDED,
    APEX_ITEM.HIDDEN(2,C.PARTY_ID)
      || APEX_ITEM.HIDDEN(3,C.PARTY_TYPE_CODE)
      || C.PARTY_TYPE_CODE PARTY_TYPE_CODE,
    S.PERSON_ID,
    S.PERSON_FIRST_NAME AS NAME,
    C.PARTY_CASE_ID
    
    FROM CASE.PARTY C
    INNER JOIN DN.PERSON S
    ON C.PARTY_ID = S.PERSON_ID
    
    WHERE C.PARTY_CASE_ID = :P18_CDBCASE_ID
    AND C.PARTY_SEQ_NO = :P18_SEQ
    

    Thus, the second report APEX column will contain the HTML code for the PARTY_ID & PARTY_TYPE_CODE hidden items, as well as the value of PARTY_TYPE_CODE. When you submit the page, you should not have problems.

    Thank you

    -Scott-

    http://sumnertechnologies.com/
    http://spendolini.blogspot.com/

  • FRM-40508: could not insert the record

    Hi guys,.

    I'm FRM-40508 when I press the ok button on my form.

    My ok button code is:

    BEGIN
    Do_Key ('Commit_Form');

    IF Form_Success THEN
    Hide_Window ('RELOAD_WINDOW');
    Go_Block ('CREATE_PLANS');
    ON THE OTHER
    RAISE Form_Trigger_Failure;
    END IF;
    END;

    Before going to the ok button, a when-validate-trigger fires in my block "CACHE_RELOAD".
    I launch my form in the debugger and found that there is no error in when-validate-trigger...

    It does not in a when-validate-trigger is:

    UPDATE system_parameters
    SET sysp_refdata_expires =: cache_reload.dsp_refdata_expires;

    But after it passes when-validate-item trigger, is faling in the trigger when-button-pressed the OK button.

    Strange thing, this is where he tries to update the system_parameters table, but when I check the display error in help, it shows the error:

    INSERT INTO SYSTEM_PARAMETERS (DSP_REFDATA_EXPIRES) VALUES (: 1).

    ORA-00904: invalid identifier of "DSP_REFDATA_EXPIRES".

    Now I'm confused why he tries to INSERT into the table of system_parameters rather than update as it appears in my query above.

    Why, he's trying to insert into the column dsp_refdata_expires when I am trying to update the sysp_refdata_Expires column in the system_parameters table.

    Table of System_parameters is not any column of dsp_refdata_expires.

    I ask all you form gurus for it please help me with this.

    The insert statement is generated by forms. I imagine that your block is based on a database table, and you insert new values. When you do the commit_form, this new record is sent with an insert statement in the database.
    I guess that this DSP_REFDATA_EXPIRES is not a table column.

  • Popup do not insert in the table and not refreshing called page...

    Greetings



    Environment: APEX 3.1.1.00.09 on AIX 5.3 with 10 gr 2



    I read a lot of threads about my question and I think I'm getting closer to the answer but in some sort have combined a too big number of suggestions and am tripping over my own code.



    Please look at my sample application on apex.oracle.com:



    Workspace: galway

    User: gwicke

    Password: gwicke



    Please start by Page3, select any agency and then click on "add a new contract."

    There are currently a label "BOLD" < facilities > < strong > 'Add new Builder' which is a link that should open a popup window. Type a name in the field, and then click 'Create Builder'. This should INSERT the row into the table builder, close the pop-up window, assign the new name of the generator to the item page calling "Name Builder" and fill the screen element.



    In current state, the application will open the pop-up, allow entry and close by clicking on the button "create Builder." However, the new constructor is NOT inserted into the table and the calling page element is not met.



    Looking at the Page elements and Session State, I can see the correct values assigned to the elements "Pn_BULDER_NAME" on the popup page (4) and the calling page (2), but the value does not appear on the screen.



    I read here where there really two parallel universes, not forgiveness, Articles of two versions of the screen, a State of Session and the other which is displayed in the browser and there are measures to be taken to be sure that is displayed is updated to state of Session I want in this case.



    I entered the Javascript code on Page4 - header to set the 'passBack2()' function and the code in the section "Option URL Redirect" to the button "Add Builder" if all goes well perform protocol ARP for the INSERT, assign items to page 2 and close the pop-up window. He gets not quite everything.



    Any helpp is greatly appreciated. Thanks to Dene for most of the suggestions I have followed by code.



    -gary

    Hi Gary,.

    I think that there is a very simple solution to this topic - is not this spot really last night.

    First, Yes, you could use a "button" to manage the call for the popup - make sure that the button is a type of URL 'button', which is actually an A tag with the appeal under target URL. Otherwise, you could take you existing a tag and use the same class for one of your buttons attribute because this should make it look like a button.

    More importantly, however, I think we could do as:

    1. on your call popup page 2, clear cache for page 4 (the popup page) - I already did in your application by updating the url

    2. on page popup, allow the user to enter their desired P4_BUILDER_NAME value (not sure if you want to do something to make it unique?)

    3 let the user click on create on the shortcut menu. He will submit the page, that will make your P4_BUILDER_RANK (pk) value and insert a new record in the table (you might consider the creation of a sequence and a trigger to handle the creation of new value PK?).

    4 - assuming that the P4_BUILDER_RANK then exist (it would not if there is a mistake somewhere), then conditionally display a region that had a piece of javascript submit page 2 and closes then itself - we don't need to move everything back to page 2 (see below)

    5. as the P4_BUILDER_NAME and the P4_BUILDER_RANK exist in the session, to which page 2 be reloaded, (A) the selection list should be updated with the new generator (still not sure why all my entries appeared downstairs instead of in alphabetical?) and (B) the P2_BUILDER_NAME and the P2_BUILDER_RANK can have Post calculation calculations together (NVL) ((: P4_BUILDER_NAME,: P2_BUILDER_NAME) and NVL (: P4_BUILDER_RANK,: P2_BUILDER_RANK) respectively)-l' effect is, if there are the values stored in the page P4 elements, we use them, otherwise, we use whatever values were in the elements of page P2

    6 - Finally, to stop (5) that happens in all the loading of page 2, you would need to clear the cache of page 4 in as many places as possible - for example, branches for a 2 page or buttons on page 2

    The reason why we cannot pass values back to page 2, it is one of the elements is a list of selection. The value we want to select will appear not on the selection list until the page has been sent. So, we can set the value and submit because the value is not there. We can introduce and define the value, because the javascript don't know when the page has been updated (or, at least, you need an independent mechanism to identify, which can get complicated).

    So, in other words, as long as we know that if the values are in the session, we can use Post calculation calculations to set our fields to these values. The only thing to keep in mind is that we must ensure that these session values only exist when in need - so we empty the cache. This principle should work for any type of terrain - but as you have no doubt seen, simple text fields can be updated by the popup directly as the field must accept any value that we give.

    My only recommendation would be to completely remove the MRU of the page process because they are not necessary (they simply confuse the issue) and you could make your fetch PK and record insert into a single process - just to keep things clean and tidy, you understand!

    When I finished last night with your app, I will leave so that javascript can create an option on the select list, and then set the value. But the method described above seems to be much simpler.

    Andy

  • battery is not inserted in its cradle

    I had problems both with windows 7, freezing all the Web sites, the Panel configuration, cursor/mouse, keyboards, etc. that I had to remove the battery several times, about 6 - 7 times. The last time that the battery will not be reinserted. I have used the cleaning Jet of air compressed on the computer all the more, had even used oil of coconut on the latch of the battery to lubricate... but the battery is still not inserted into its cradle. Help, please. What should I do? I'm not even battery check.

    Thank you.

    Looks like you need to a professional, the good reputation of repair service take a look.

  • My array is not having that columns every time I ran the OAF page in Jdev wife who wants mandatory columns how to override that columns?

    My array is not having that columns every time I ran the OAF page in Jdev wife who wants mandatory columns how to override that columns?

    That add columns to your table, it is necessary for the audit also. It is a preferred method of creating custom table. It will do no harm.

    If you want to continue to move forward with the recommended not method, take a look to follow the link.

    iWiDi - EO without columns that

    See you soon

    AJ

  • Pivot lines not converted into columns?

    Hello

    I did pivot amount lines successfully.

    But the lines not converted into columns while I'm working on the lines of pivot columns.


    err1.jpg


    err2.jpg


    Please help me.

    Thanks in advance,

    A.Kavya

    Hello

    Take a look at this link:

    ODI gurus: ODI PIVOT - ROWS to COLUMNS

  • Insert / * + parallel * / performance index

    Insert / * + parallel * / performance index

    Hello

    I performed the procedure below

    CREATE OR REPLACE PROCEDURE bulk_collect

    IS

    SID TYPE TABLE IS NUMBER;

    Screated_date TYPE IS an ARRAY OF DATE;

    Slookup_id TYPE TABLE IS NUMBER;

    Surlabasedesdonneesdufabricantduballast ARRAY TYPE IS VARCHAR2 (50);

    l_sid sid;

    l_screated_date screated_date;

    l_slookup_id slookup_id;

    l_sdata surlabasedesdonneesdufabricantduballast;

    l_start NUMBER;

    BEGIN

    l_start: = DBMS_UTILITY.get_time;

    SELECT id, created_date, lookup_id, data

    BULK COLLECT INTO l_sid, l_screated_date, l_slookup_id, l_sdata

    FROM big_table;

    -dbms_output.put_line (' after collection in bulk: ' | systimestamp);

    FORALL indx IN l_sid. FIRST... l_sid. LAST

    INSERT / * + parallel (big_table2, 2) * / INTO big_table2 values (l_sid (indx), l_screated_date (indx), l_slookup_id (indx), l_sdata (indx));

    -dbms_output.put_line (' after FORALL: ' | systimestamp);

    COMMIT;

    Dbms_output.put_line ('Total elapsed:-' |) (DBMS_UTILITY.get_time - l_start) | "hsecs");

    END;

    /

    DISPLAY ERRORS;

    I want to confirm if the query is running in parallel. I checked the tables below to confirm if the insert statement is run in parallel, but none of them returns all the rows.

    Select * from V$ PX_SESSION where sid = 768

    Select * from V$ PX_SESSTAT

    Select * from V$ PX_PROCESS

    Select * from V$ PX_PROCESS_SYSSTAT

    Select * from V$ PQ_SESSTAT

    Please may I know how to find out the parallel execution of / * + parallel (table_name, 2) * / reference

    Thank you

    I'd go for the SQL insert/selection option as suggested.

    Bulk insert is the APPEND_VALUES of 11r2 trick that will lead to a direct path load. Parallel is to directly load path, but if you are bench marking may include this as an additional test.

Maybe you are looking for