Record is not inserted into the transparent Table Forms 10g

Hi all

I have the built in 10g (10.1.2.0.2) form.

Basically, the form has 2 blocks.
1 block with a single element, where we enter a value and press on enter (this place you block2 and run the query).
Block 2 (tabular) will get the records. This block2 have now 3 columns (caseid, userid, date).

Now when I insert a new record, I just need to get the caseid only. And username and date must be filled in automatically.
I can fill fields username and the DATE.
And when I enter a value element of the block 2 caseid and then Control + S(to insert the record and Save the transaction),.
I get the message saying FRM-40400: transactions: 1 applied and saved records.
But when I ask again for the same thing, I do not have is the record inserted into the table.
Why is this happening?

Help please...

Drop the trigger for INSERTION WE (do not comment code or write NULL) and move your code to INSERT before trying.

-Clément

Tags: Oracle Development

Similar Questions

  • FND_REQUEST. SUBMIT_REQUEST returns request_id, but documents are not inserted into the table AP_INVOICES_ALL

    simultaneous program returns request_id, but the lines are not inserted into the AP_INVOICES_ALL table.

    where can I check for errors? is there any error log written by simultaneous program?

    Please do not post any duplicates- FND_REQUEST. SUBMIT_REQUEST stores the error messages in the table

  • Data does not get inserted into the Hxt_Add_Assign_Info_F table

    Hello

    Can tell me regarding when the data is inserted into the Hxt_Add_Assign_Info_Ftable.
    Lately this table not get updates.

    Thank you
    Bitr

    When you enter the assignment of time information, this table is filled (responsibility of the OTL Application Developer > OTL time accounting > assignment of time information)

  • data not getting not inserted into the table in pl/sql

    Hi all

    Here is my code to the procedure:
    CREATE or REPLACE PROCEDURE GENERATE_SHIFTS (p_plant_fk_key in NUMBER,
    p_start_date IN this update,
    p_end_date IN DATE)
    IS
    -declation of local variable
    l_plant_fk_key NUMBER;
    l_sysdate DATE: = sysdate; - sysdate variable
    l_last_update_system_id NUMBER;
    l_last_update_date DATE;
    l_plant_pk VARCHAR2 (120);
    l_start_time varchar2 (8); - variable to store the start time
    l_end_time VARCHAR2 (8); - variable to store end_time
    l_graveyard VARCHAR2 (30);
    number of l_shift_num;
    l_shift_name VARCHAR2 (240);
    l_line_num NUMBER;
    l_start_date DATE;
    l_end_date DATE;
    l_equipment_fk_key NUMBER;
    NUMBER of l1_plant_fk_key;
    Number of N;
    l_creation_system_id NUMBER;
    l_organization_code VARCHAR2 (120);
    l_system_fk_key NUMBER;
    l_site_id NUMBER;
    l_entity_pk_key NUMBER;
    l_entity_name VARCHAR2 (100);
    l_entity_type VARCHAR2 (30);
    l_production_entity VARCHAR2 (1);
    l_shift_workday_pk_key NUMBER;
    DATE of l1_shift_date;
    l_from_date DATE;
    l_to_date DATE;
    BEGIN

    l_plant_fk_key: = p_plant_fk_key;
    l_start_date: = p_start_date;
    l_end_date: = p_end_date;

    DELETE FROM mth_workday_shifts_D WHERE plant_fk_key = l_plant_fk_key and shift_date > = l_start_date and shift_date < = l_end_date;

    Select value start_time, end_time, cemetery, shift_num, line_num, shift_name l_start_time, l_end_time, l_graveyard, l_shift_num, l_line_num, l_shift_name of

    mth_site_shift_definitions where plant_fk_key = l_plant_fk_key;
    Select plant_pk in the mth_plants_d l_plant_pk where plant_pk_key = l_plant_fk_key;
    SELECT organization_code, system_fk_key IN l_organization_code, l_system_fk_key FROM mth_organizations_l WHERE plant_fk_key is
    l_plant_fk_key;
    N: = l_end_date-l_start_date;

    because me in 1... N
    LOOP


    l_last_update_system_id: = - 99999.
    l_last_update_date: = l_sysdate;
    l_creation_system_id: = - 1;

    INSERT INTO mth_workday_shifts_D (shift_workday_pk_key, shift_workday_pk,
    shift_date, shift_date_julian, plant_fk_key, line_num, shift_type, graveyard_shift, from_date, to_date, shift_num, shift_name, source_org_code, system_fk_key,
    CREATION_DATE, last_update_date, creation_system_id,
    last_update_system_id)
    VALUES (mth.mth_workdays_shifts_s.nextval, l_start_date |) » -'|| l_shift_num | » -'|| l_plant_pk, l_start_date, TO_NUMBER (TO_CHAR (l_start_date, 'J')),
    l_plant_fk_key, l_line_num, null, l_graveyard, l_start_date + ((TO_NUMBER (SUBSTR (l_start_time, 1, 2)) + (TO_NUMBER (SUBSTR (l_start_time, 4, 2)) / 60) + (TO_NUMBER (SUBSTR (l_start_time, 7, 2)) / 3600)) / 24).
    l_start_date + ((TO_NUMBER (SUBSTR (l_end_time, 1, 2)) + (TO_NUMBER (SUBSTR (l_end_time, 4, 2)) / 60) + (TO_NUMBER (SUBSTR (l_end_time, 7, 2)) / 3600)) / 24), l_shift_num, l_shift_name, l_organization_code, l_system_fk_key,.
    l_sysdate, l_sysdate, l_creation_system_id, l_last_update_system_id);
    l_start_date: = l_start_date + 1;


    END LOOP;
    COMMIT;


    DELETE FROM mth_equipment_shifts_d WHERE availability_date > = l_start_date AND availability_date < = l_end_date
    AND equipment_fk_key IN (SELECT DISTINCT (Nvl(a.equipment_fk_key,0))
    OF mth_equipment_shifts_d a, b mth_equipments_d WHERE the b.equipment_pk_key = a.equipment_fk_key AND b.plant_fk_key = l_plant_fk_key);

    INSERT INTO mth_equipment_shifts_d (equipment_fk_key, availability_date, shift_workday_fk_key, from_date, To_Date, line_num, availability_flag, entity_type, creation_date, last_update_date, creation_system_id,
    (last_update_system_id)

    SELECT b.entity_pk_key entity_pk_key, a.shift_date shift_date, a.shift_workday_pk_key shift_workday_fk_key, a.from_date from_date, To_Date, line_num, 'Y', a.line_num a.to_date
    b.entity_type entity_type, SYSDATE-1, SYSDATE,-99999

    -IN l_site_id, l_entity_pk_key, l_entity_name, l_entity_type, l_production_entity,.
    -l_shift_workday_pk_key, l1_shift_date, l_from_date, l_to_date
    Mth_workday_shifts_d a.,
    (
    SELECT site_id plant_fk_key, entity_pk_key, entity_name, entity_type, production_entity production_entity
    OF mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, "Site", production_site production_entity
    OF mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, nom_entite resource_name, "Resource", production_resource production_entity
    OF mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, "Equipment", production_equipment production_entity
    OF mth.mth_equipments_d
    ) b
    WHERE b.site_id = l_plant_fk_key
    AND a.plant_fk_key = l_plant_fk_key
    AND shift_date > = l_start_date
    AND shift_date < = l_end_date);

    COMMIT;
    END GENERATE_SHIFTS;

    data are not get inserted in the camera moves d table. If I use the same query off 25000 procedure lines get inserted. Can someone tell me what is the problem with him.

    Kind regards
    Amrit

    The start date you passed is changed before EXECUTION of your insert on this table

    l_start_date := l_start_date+1;
    

    Maybe she go back to the original value before the isnert

    l_start_date := l_start_date-1;
    

    See you soon!
    Bobin

  • After the ship confirms delivery is not inserted into the table WSH_DOCUMENT_INSTANCES

    After ship confirm, sheet print Pack but the pages are not virgins no data.

    Then when I tried to submit the request manually, it did not allow the delivery name is set to the name of delivery.

    I checked and found that the delivery data are not there in the table WSH_DOCUMENT_INSTANCES.

    Can anyone here help to explain the data inserted in this table and in what scenarios, this problem may occur, where the data is inserted in this table.

    And how the pack slip can be reprinted.

    Found the Solution

    Profile of sequential numbering option was not setup at the level of the Application for the execution of the shipment.

    Defined as always used for executing shipment and that worked.

  • insert into the summary table of the table.

    I was wondering if there is a smart way to do it with SQL, but I'm not sure. I would like to consult you yo guys.

    I have a table like this
     CREATE TABLE "TEMPLE_FINANCE"."TEST" 
       (     "COLUMN1" VARCHAR2(10 BYTE), 
         "COLUMN2" VARCHAR2(10 BYTE), 
         "COLUMN3" VARCHAR2(10 BYTE), 
         "COLUMN4" VARCHAR2(10 BYTE)
       ) ;
    
    
    Insert into TEST (COLUMN1,COLUMN2,COLUMN3,COLUMN4) values ('1','2','50.00',null);
    Insert into TEST (COLUMN1,COLUMN2,COLUMN3,COLUMN4) values ('1','2','50.00',null);
    I would like to at the rate of an update and you end up with
    "COLUMN1"     "COLUMN2"     "COLUMN3"     "COLUMN4"
    "1"                  "2"          "100.00"     
    What update statement can run for this?
    I would enter in the summary of the lines based on the column 1 and column2 and get rid of repeative lines.
    I have try this insert statement, but it's bascially just adding an extra record in the table.
    INSERT INTO  TEST (SELECT COLUMN1, COLUMN2, SUM(COLUMN3), COLUMN4 FROM TEST GROUP BY COLUMN1, COLUMN2,COLUMN4);
    any help would be grateful.

    Published by: mlov83 on January 25, 2013 12:45

    Published by: mlov83 on January 25, 2013 13:03

    Hello

    I can't help but wonder if you have the best design of table for what it is, you need to do.

    The best solution would be to create a new table, using the SUM (TO_NUMBER (Column3)) and GROUP BY, and then delete the original table and rename a new one to the old name. While you're at it, change Column3 as a NUMBER and add a primary key.

    In collaboration with just the existing table, INSERT one won't work. INSERT always adds new lines. You want something that can INSERT new lines (or update some existing routes) and DELETE lines at the same time. FUSION can do it all. Here's a way to use the MERGE:

    MERGE INTO     test     dst
    USING   (
              SELECT column1, column2, column4
              ,      SUM (TO_NUMBER (column3))
                                 OVER (PARTITION BY  column1, column2, column4)
                                AS column3_total
              ,      ROWID             AS r_id
              ,      MIN (ROWID) OVER (PARTITION BY  column1, column2, column4)
                                          AS min_r_id
              FROM    test
         )          src
    ON     (src.r_id     = dst.ROWID)
    WHEN MATCHED THEN UPDATE
    SET     dst.column3       = TO_CHAR ( src.column3_total
                                , 'FM9999999.00'
                            )
    DELETE
    WHERE     src.r_id     != src.min_r_id
    ;
    

    Published by: Frank Kulash on January 25, 2013 16:07

  • Select values from the db1 table and insert into the DB2 table

    Hello

    I have three databases oracle running in three different machines. their ip address is different. among the DB can access databases. (means am able to select values and insert values into tables individually.)

    I need to extract data from the DB1 table (ip say DB1 is 10.10.10.10 and the user is DB1user and the table is DB1user_table) and insert the values into DB2 table (say ip DB2 is 11.11.11.11 and the user is DB2user and table DB2user_table) of DB3 that is to have access to the two IPs DB.

    How do I do this

    Edited by: Aemunathan on February 10, 2010 23:12

    Depending on the amount of data must be moved between DB1 and DB2, and the frequency at which this should happen, you might consider the SQL * COPY more control. I think it's very useful for one-off tasks little, so I can live within its limits of the data type. More http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/apb.htm#i641251.

    Change some parameter of sqlplus session are almost mandatory in order to get decent transfer rates. Tuning ARRAYSIZE and COPYCOMMIT can make a huge difference in flow. LONG change may be necessary, too, depending on your data. The documentation offers these notes on use:

    To activate the copy of data between Oracle and databases non-Oracle, NUMBER of columns is replaced by DECIMAL columns in the destination table. Therefore, if you are copying between Oracle databases, a NUMBER column with no precision will become a DECIMAL column (38). When copying between Oracle databases, you must use SQL commands (CREATE TABLE AS and INSERTION), or you must make sure that your columns have a specified precision.

    SQL * the VALUE LONGER variable limits the length of the LONG column you are copying. If all LONG columns contain data exceeds the value of LONG, COPY truncates the data.

    SQL * Plus performs a validation at the end of each successful COPY. If you set the SQL * variable more COPYCOMMIT DEFINED to a value positive n, SQL * Plus performs a validation after copying all lots n of records. The SQL * Plus ARRAYSIZE variable SET determines the size of a batch.

    Some operating environments require that the service names be placed between double quotes.

    From a SQL * Plus term on DB3, can resemble the command to move all content from my_table in DB1 to the same table in DB2

    COPY from user1/pass1@DB1 to user2/pass2@DB2 -
    INSERT INTO my_table -
    USING select * from my_table
    

    Note the SQL code * more line-continuation character ' - '. It is used to escape the newline character in a SQL * Plus command if you do not have to type all on one line. I use it all the time with this command, but I can't locate the documentation on that right now. Maybe someone else can put their finger on it.

    There are other ways to accomplish what the command copy and it is not without its quirks and limitations, but I find that there is usefulness in an Oracle Toolbox.

  • "missing the SELECT keyword" error during an insert into the temporary table using the blob value

    I'm trying to insert into an oracle temp table using select that retrieves data from a blob field but I get the error: "lack the SELECT keyword.

    How we store temporary in oracle result when we make this type of operation (extraction of data in fields and try to load them into a separate table on the fly.?)

    with cte as)

    Select user_id, utl_raw.cast_to_varchar2 (dbms_lob.substr (PREFERENCES)) as USER my_blob

    )

    create table new_table as

    SELECT user_id,EXTRACTvalue(xmltype(e.my_blob),'/preferences/locale') regional settings

    E ETC

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

    BLOB data - value - which is

    <? XML version = "1.0" encoding = "ISO-8859-1" ?>

    - < Preferences >

    < time zone > America/New_York < / > zone

    < displayscheduleinusertimezone > Y < / displayscheduleinusertimezone >

    < local > Spanish < /locale >

    < DateFormat > JJ/mm/aaaa < / DateFormat >

    < timeFormat > hh: mm aaa < / timeFormat >

    < longformat > Long_01 < / longformat >

    < doubleformat > Double_01 < / doubleformat >

    < percentformat > Percentage_01 < / percentformat >

    < currencyformat > Currency_01 < / currencyformat >

    < / Preferences >

    A WITH clause that must immediately precede the SELECT keyword:

    SQL > create table t:

    2 with the o as (select double dummy)

    3 select * West longitude;

    Table created.

  • Video will not insert into the timeline

    OK, so video and audio will be both be switched on timeline when I create a new sequence by dragging the "new item" icon.


    BUT


    When I drag a clip in one existing sequence that has the same parameters as the video I am dragging, inserts audio only in the timeline .


    Using images directly to the output of the GoPro camera. 1080 p @ 60 fps.

    Checks:

    > I tried dragging directly to the timeline

    > tried clicking on the button "insert."

    > tried to use option only drag "Video".

    > V1, V2 etc are highlighted / activated.

    > no video tracks are silent.

    > I tried all audio tracks to see if it would force to insert video or audio video insert inhibition.

    > if I create a new sequence with the clip of the said and then copy I can paste it into the original sequence clip said wouldn't drag/insert on to.

    > if I select several clips and drag on a new sequence with 'New element', they will insert all with video and audio.

    I found nothing on Google which approached except 2 people who have the opposite problem, which was not inserting audio but not their solution was that they have simply not A1. A2 has highlighted.

    Hi, its probably all in the source patch tracks.

  • 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!

  • delete all, then insert into the target table, two steps in one transaction?

    Hello

    We have the following two steps in one ODI package, it will be managed in a single transaction?

    procedure step 1): remove all of the target table.
    interface in step 2): insert data in the source table in the target table.

    our problem is that step 2 can take some minutes, and then the target table can temporary unusable for end users who try to access it, I'm good?

    Kind regards
    Marijo

    Hello

    It can be managed in a single transaction by selecting IKM as the Append and TRUNCATE/DELETEALL Option command in the FLOW of an interface tab.

    Thanxs
    Malezieux

  • Splitting words before inserting into the new table

    SQL> desc company
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     CO_ID                                     NOT NULL NUMBER(9)
     R_DATE                                             TIMESTAMP(0)
     CONAME                                             VARCHAR2(140)
     ESTYR                                              NUMBER(5)
     COUNTRY                                            VARCHAR2(32)
     PRODUCTS                                           VARCHAR2(3900)
    
    SQL> select unique(products) from company where rownum<6;
    
    PRODUCTS
    --------------------------------------------------------------------------------
    bars,tubes,pre-weld seams,isosceles and un-isosceles angles,special profiles,u-p
    rofiles,plates,t-profiles,flanges,tube fittings,round,hollow bars,double-t-profi
    les (ipe und ipb),pipe clamps,flat,special designs according to drawings for new
     products,profiles for floor covering,hexagon
    
    carbon steel bright bars,tool steel bright bars,alloy steel bright bars,stainles
    s steel bright bars
    
    cold rolled coil,e.g sheet,prepainted sheet,galvalume coil,copper scrap,stainles
    s steel sheet,shredded scrap,hms1 and 2,cobalt ore,rail scrap,hot rolled coil,ga
    lvanized sheet,iron ore
    
    PRODUCTS
    --------------------------------------------------------------------------------
    
    ferro alloy producer
    switch technology,special tubes,rails,steel strip,special steel
    I created another table:
    crate table keywords(
    k_id number(14),
    keywords varchar2(500) unique
    );
    
    create sequence keywords_pk_seq
    start with 3484 increment by 1;
    
    create or replace trigger keywords_pk_trig
    before insert on keywords
    referencing new as new
    for each row
    begin
    select keywords_pk_seq.nextval into :new.k_id
    from dual;
    end;
    /
    I want to:
    one) to split columns of company.products where is comma (,) for example, bars, tubes, pre-soudures, tubes will became 4 different as words:
    bars
    tubes
    welds
    tubes

    (b) then I want to insert these words in the table keywords.keywords with condition separated by ignoring the existing keywords.keywords (e.g. tubes came twice, let's get just a tubes) for example
    k_id keywords
    1 bars
    2 tubes
    3 before welding

    Thank you and best regards

    You can use the merge statement:

    for example

    merge into keywords
    using (
    with t as (select 'pipes,taps,spanner,spade,tubes' as txt from dual)
    -- end of sample data
      select distinct REGEXP_SUBSTR (txt, '[^,]+', 1, level) kw
      from t
      connect by level <= length(regexp_replace(txt,'[^,]*'))+1
      ) x
     on (keywords.keyword = x.kw)
    when not matched then insert (id, keyword) values (key_seq.nextval, x.kw)
    /
    

    But keep in mind that the sequence in this example will be updated for each line independently to know if she gets inserted or not.
    If you set the ID using a sequence triggered when inserting then this will solve this problem.

  • error when insert into the xmltype table

    Hi expert,

    I'm in I'm in Oracle Enterprise Manager 11 g 11.2.0.1.0.
    SQL * more: Production of release 11.2.0.1.0 killed him Feb 22 11:40:23 2011

    I correctly applied several .xml files in the table xmltype DOCUMENT by using this PROCEDURE.
    But only received the error, because he understood "the House of McVay.
    My codes and messages are listed below:

    SQL > CREATE or REPLACE PROCEDURE loadxml IS
    77
    EXCEPTION 78
    79, SO THAN OTHERS THEN
    raise_application_error 80 (-20101, ' Exception occurred in a procedure loadxml :'||) SQLERRM);
    LoadXml END 81;
    82.

    CAUTION: Procedure created with compilation errors.

    SQL > show the error;
    LOADXML PROCEDURAL errors:

    LINE/COL ERROR
    -------- -----------------------------------------------------------------
    18/31 PLS-00103: encountered the symbol "S" when expecting one of the
    Next:
    * & = - + ; <>/ is mod remains not rem
    < an exponent (*) > <>or! = or ~ = > = < = <>and like2 or
    like4 likec between | submultiset of type multiset Member

    Is there someone can help?

    Thank you!

    Cow

    Published by: cow on March 22, 2011 21:50

    Basic SQL/PLSQL: Given that you create a string a single quotation mark is represented by two "characters...

    However, you should probably use & apos; rahther as a single quote

    Published by: mdrake on March 18, 2011 15:44

  • Inserting into the table of the apex report log

    Hi all

    I have an interactive report with check boxes for each line, when I select a checkbox one according to the report and click the button submit that the first records of departure in the report are getting inserted into the table
    the lines that I select in the report is not getting inserted into the table.

    For example, if I select all 4 records in the box and click submit button 4 first records will be inserted into the table. Not the selected records.

    I put all the attributes attribute of standard report columns.

    Here is my code I wrote for the process to insert in the journal table.
    declare
    v_index varchar2(2000);
    begin
     
    FOR i in 1..APEX_APPLICATION.G_F21.COUNT LOOP
    --v_index := APEX_APPLICATION.G_F21(i);
    
    insert into eptlog(ptr , cat , pgroup , splptr,gisv ,
              mptr , hip , oml ,wa_type , stl_acc,last_updated_by )
    values(apex_application.g_f22(i), A-Cat,P-Group,
    'N',
    'Y',
    'N',
    'Y',
    'HIP',
    'APC',
    'N',
    apex_application.g_user);
    
    END LOOP;
    end;
    For the report query
    -------------------
    select 
    apex_item.checkbox(21,'#ROWNUM#','UNCHECKED')||APEX_ITEM.HIDDEN(22,p.cc||'-'||p.name) ptr,
    p.row_id,
    p.cc,
    c.ctrdesc,
    p.name,
    p.cat,
    ptr.onumber,
    p.c_id,
    apex_item.select_list_from_query(23,ptr.ecat, 'select catdesc,cat from ptrcatmst') cat1,
    apex_item.select_list_from_query(24,ptr.partner_group, 'select pgroup,gid from APTNRGROUP') pgroup,
    apex_item.select_list(25,p.gisv,'Y;10,N;20') iv,
    apex_item.select_list(26,p.splptr,'Y;10,N;20')  splptr,
    sum(rate)
    from aptr p
    left outer join aptr_a s on p.name = s.pname and p.cc = s.cc
    left outer join lcomp c on s.cc = c.cc
    where rate>0 and p.cat1<>'D' and s.cc ='10'
    group by rownum,p.row_id,
    p.cc,
    c.ctrydesc,
    p.name,
    p.cat,
    p.onumber,
    p.cid,
    p.cat1,
    p.pgroup,
    p.iv,
    splptr,
    order by rate desc
    Please guide me on what I need on urgent basis.

    Thank you

    Hello

    I have fixed the bothe insert and update now procs.

    Here's what I changed.

    Changed the sql report to render the rownum as the value for the column in the box.

    Edited the page processes to use the value of rownum.

    Please check and mark the correct answer

    Thank you

  • 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

Maybe you are looking for

  • Air play works, but its hit or miss...

    Hi all: I'm sure that this issue is not unique, but if you can give me any advice or let me know what I am doing wrong that would be great. OK, so I use Amazon Premium Video on my iPhone and I'm trying to cast to my Apple TV. When I select the Apple

  • TC speed

    Hello I want to know how much of latest generation of TC internal hard drive read and write speed gigabit and wifi ac? If I connect a NAS (like WD my cloud), what is read and write speed too?

  • Satellite C660-108 - fan keeps running

    I just bought a Satellite C660-108 and pleasure keeps running all the time. Is this normal?

  • Is an update of Java with Java certificates has expired without danger?

    I saw a warning that updates Java were used to add malware, etc. on computers and verify that the certificate was valid.   I continue to receive notifications to update Java, however the certificate expired in July. What should I do?

  • How will I know if a program must be bypassed through firewalls (SNMP Trap)

    My computer is having trouble, the upgrade from vista to windows 7. the Adviser to implementation level keeps stopping and when it finds solutions, none is found... Im going through my stuff Aureano and firewall and there is something called SNMP tra