update in tcDataSet query

Hi all

I wrote a code for an adapter where I want to update a particular column of a table.
for that I use:

tcDataSet tcdataset = new tcDataSet();
String query = "update UD_EDIR_USR set UD_EDIR_USR_USERID = '" + newCn + "' where UD_EDIR_USR_USERID ='" + Userid + "'";
tcdataset.setQuery (dataProvider, query); dataProvider is passed to the base of the adapter reference object
tcdataset.executeQuery ();

now when I perform the task it is to launch me following error on jboss console

tcDataBase/readpartialStatement a few problems: query doesnot contain "Select".
java.lang.IllegalArguementException: query doesnot contain "Select".

So how can I update a line through the adpater code?

Thank you.

If you make the statement within the IOM in an adapter, use the reference database as your variable passed in your adapter. tcDataProvider is the data type.

If you run in a scheduled task, you should be able to do getDataBase () .writeStatement (arg0) with your return.

-Kevin

Tags: Fusion Middleware

Similar Questions

  • How can improve on the slow update using the query / * + NO_XML_DML_REWRITE * /?

    We have an update query recently brought to my attention that turns very slowly on Oracle 11.2.0.1 against a secure XML binary files table using

    Update / * + NO_XML_DML_REWRITE * / set object_value = croutreach.action: 1 where actn_id =: 2.
    I am told the majority/close to the majority of the ~ 16 fields are updated. This table has also many predefined virtual columns with index fn based on them.

    My first inclination was to this redesign using updatexml Oracle. I was told, the / * + NO_XML_DML_REWRITE * / index would also be required here.

    Update / * + NO_XML_DML_REWRITE * /.
    < tble_name > a
    Set a.object_value = updatexml (a.object_value...).

    Last year our dba have been mandated by Oracle Support to use this trick, as the update has not been updated off any msgs of error records.

    + 1. Hoping to find out if anyone met with this indication in some capacity and what has their experience been? +

    Trying to optimizie this update statement, I'll start from scratch is not using the / * + NO_XML_DML_REWRITE * / hint and will take effect in using the updatexml with establishing a xmlindex.

    + 2. Hoping to receive suggestions on creating the good xmlindex - find an informal index. If getting a few good performance with the xmlindex; in an attempt to remove some of the use of the virtual column. +

    + 3. Any suggestions on living with virtual columns in conjunction with xmlindexes? See the definition of table action and Associates ivirtual columns and indexes. This picture seems more indexed... +.
    REATE
      TABLE "CROUTREACH"."ACTION" OF XMLTYPE
      (
        CONSTRAINT "ACTN_ID_PK" PRIMARY KEY ("ACTN_ID") USING INDEX PCTFREE 10
        INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT
        1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
        FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
        DEFAULT) TABLESPACE "ACME_DATA" ENABLE
      )
      XMLTYPE STORE AS SECUREFILE BINARY XML
      (
        TABLESPACE "ACME_DATA" ENABLE STORAGE IN ROW CHUNK 8192 CACHE READS LOGGING
        NOCOMPRESS KEEP_DUPLICATES STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1
        MAXEXTENTS 2147483645 PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT)
      )
      ALLOW NONSCHEMA ALLOW ANYSCHEMA VIRTUAL COLUMNS
      (
        *"ACTION_DEF_URN"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                 
    /action/srvContextPointer/outreachActionDefInfo/@actionDefUrn                                               
    '
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        *"STAT_DT"* AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
        SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                              
    /action/@status_dt'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
    WITH
      TIME ZONE))),
        *"ACT_DEF_ID"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                              
    /action/srvContextPointer/outreachActionDefInfo/@actionDefId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(20))),
        *"CORRL_ID"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                              
    /action/correlationId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        *"STAT_RSN"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                                  
    /action/statusReason'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(30))),
        *"ACT_APPNT_DT"* AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
        SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                  
    /action/actionAppointment/appointment_dt'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
    WITH
      TIME ZONE))),
        *"UPDT_DT"* AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
        SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                              
    /action/@update_dt'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
    WITH
      TIME ZONE))),
        *"CRET_DT"* AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
        SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                              
    /action/@create_dt'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
    WITH
      TIME ZONE))),
        *"ACT_SEQ"* AS (CAST(TO_NUMBER(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                    
    /action/srvContextPointer/outreachActionDefInfo/@sequence'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2)) AS NUMBER(10))),
        *"SERVICE_DEF_URN"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03";                                                          
    /action/srvContextPointer/serviceDefUrn'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(100))),
        *"ASSIGN_TEAM_CD"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                  
    /action/assignment/@teamCategoryCode'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        *"ASSIGN_STAFF_ID"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                  
    /action/assignment/staffProfileId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        *"ACTION_TYPE"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03"; (::)                                                      
    declare namespace xsi="http://www.w3.org/2001/XMLSchema-instance"; (::)                                                      
    local-name-from-QName(QName("http://www.cigna.com/acme/domains/actions/2010/03",/action/@xsi:type))                                                                  
    '
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        *"ACTN_ID"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03";/action/@id'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        *"STATUS"*AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03";/action/@status'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(20))),
        *"ACME_MBR_ID"* AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/actions/2010/03";/action/acmeMemberId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50)))
      )
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
      (
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
        FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT
      )
      TABLESPACE "ACME_DATA" ;
    CREATE UNIQUE INDEX *"CROUTREACH"."SYS_C0014547"* ON "CROUTREACH"."ACTION"
      (
        "SYS_NC_OID$"
      )
      PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
      (
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
        FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT
      )
      TABLESPACE "ACME_DATA" ;
    CREATE UNIQUE INDEX *"CROUTREACH"."SYS_IL0000082156C00003$$"* ON "CROUTREACH".
      "ACTION"
      (
        PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 NEXT 1048576
        MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST
        GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
        TABLESPACE "ACME_DATA" PARALLEL (DEGREE 0 INSTANCES 0) ;
    CREATE UNIQUE INDEX *"CROUTREACH"."ACTN_ID_PK"* ON "CROUTREACH"."ACTION" (
      "ACTN_ID") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(
      INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
      FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
      CELL_FLASH_CACHE DEFAULT) TABLESPACE "ACME_DATA" ;
      CREATE
        INDEX *"CROUTREACH"."ACTION_STAT_RSN_IDX"* ON "CROUTREACH"."ACTION"
        (
          "STAT_RSN"
        )
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        (
          INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE
          0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
          CELL_FLASH_CACHE DEFAULT
        )
        TABLESPACE "ACME_DATA" ;
      CREATE
        INDEX *"CROUTREACH"."ACTION_UPDT_DT_IDX"* ON "CROUTREACH"."ACTION"
        (
          "UPDT_DT"
        )
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        (
          INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE
          0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
          CELL_FLASH_CACHE DEFAULT
        )
        TABLESPACE "ACME_DATA" ;
      CREATE
        INDEX *"CROUTREACH"."ACTION_CRET_DT_IDX"* ON "CROUTREACH"."ACTION"
        (
          "CRET_DT"
        )
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        (
          INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE
          0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
          CELL_FLASH_CACHE DEFAULT
        )
        TABLESPACE "ACME_DATA" ;
      CREATE
        INDEX *"CROUTREACH"."ACTION_STAT_DT_IDX"* ON "CROUTREACH"."ACTION"
        (
          "STAT_DT"
        )
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        (
          INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE
          0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
          CELL_FLASH_CACHE DEFAULT
        )
        TABLESPACE "ACME_DATA" ;
      CREATE
        INDEX *"CROUTREACH"."ACTION_MBRID_TYP_STAT_IDX"* ON "CROUTREACH"."ACTION"
        (
          "ACME_MBR_ID",
          "ACTION_TYPE",
          "STATUS"
        )
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        (
          INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE
          0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
          CELL_FLASH_CACHE DEFAULT
        )
        TABLESPACE "ACME_DATA" ;
      CREATE
        INDEX *"CROUTREACH"."ACT_ACTDEF_URN_IDX"* ON "CROUTREACH"."ACTION"
        (
          "ACTION_DEF_URN"
        )
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        (
          INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE
          0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
          CELL_FLASH_CACHE DEFAULT
        )
        TABLESPACE "ACME_DATA" ;
      CREATE
        INDEX *"CROUTREACH"."ACTION_ACT_DEF_ID_STATUS_IDX"* ON "CROUTREACH"."ACTION"
        (
          "ACT_DEF_ID",
          "STATUS"
        )
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
        (
          INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE
          0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
          CELL_FLASH_CACHE DEFAULT
        )
        TABLESPACE "ACME_DATA" ;
    Any suggestions much appreciated.

    Kind regards
    Richard Blanchard

    Hi Rick,

    Thanks for adding the sample.

    First note: you use namespaces by default, different in the example of XML and the request - this a misspelling due to your mask real names?

    In any case, I see two problems with the UPDATE statement:

    (1) unless it is really part of the id, do not double-cover the value:

    @id="'888a80be-d69f-464d-b3f7-85b6209f918e'"
    

    must be:

    @id="888a80be-d69f-464d-b3f7-85b6209f918e"
    

    or as a variable binding (see below)

    (2) just like other XML features, XMLExists supports the names. You must declare any namespace as you lower to use XQuery in the expression (in this case, the default namespace).

    It works for me:

    SQL> create table action of xmltype
      2  xmltype store as securefile binary xml
      3  ;
    
    Table created.
    
    SQL> insert into action
      2  values (
      3   xmltype('
      4  
     13     abcdefghijklmnop
     14     qrstuvwxyz
     15     
     16        urn:coderunner:Medical:Definition:ServiceService:11111:7
     17        
     18           Access Profile~Why did you access the profile?~Reason for access?
     19        
     20     
     21  ')
     22  );
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> UPDATE action
      2  SET object_value =
      3      updatexml( object_value
      4               , '/action/@status'
      5               , 'triggered'
      6               , 'xmlns="http://www.xxxxxx.ddd/mmm/domains/actions/2010/03"' )
      7  WHERE XMLExists( 'declare default element namespace "http://www.xxxxxx.ddd/mmm/domains/actions/2010/03"; (::)
      8                   /action[@id=$action_id]'
      9                   passing object_value
     10                         , 'dfdfdfdfdfddfdfdfdfdfdf' as "action_id"
     11                   )
     12  ;
    
    1 row updated.
    
    SQL> SELECT XMLCast(
      2           XMLQuery('declare default element namespace "http://www.xxxxxx.ddd/mmm/domains/actions/2010/03"; (::)
      3                     /action/@status'
      4                     passing object_value returning content)
      5           as varchar2(30)
      6         ) as status
      7  FROM action
      8  ;
    
    STATUS
    ------------------------------
    triggered
    
  • Update in Access query

    Hello, I have just a question of straightforward access, but I can't seem to get my query to run correctly! I have two tables, reqStats and intent_pws. The intent_pws table contains two fields of Practicum_ID and banner, that unique id each record. ReqStats, I have only the bannerID field. I want to do is import the values of practicum_ID of intent_pws in the file reqStats with the corresponding value of the banner. Does make sense? I have two queries written right now, but when I try to launch updatePWs, he asks the getPWs.practicum_ID value and the getPWs.banner value, which is what I'm trying to avoid typing in it are individually, has nearly 1,000 records in the table. Any advice would be appreciated, thanks!

    Yes, I was afraid of this. This query works fine in Oracle, and was hoping that the usual access "weirdness" would not affect things, but I think that we should try to Plan B.

    How about this one?

    UPDATE reqStats r
    INNER JOIN intent_pws i ON r.bannerID = i.banner
    SET r.psrID = i.Practicum_ID;

    (Assumption: reqStats is a real table, NOT a view.)

    Phil

  • (Updated report) SQL query - may not know how to make one

    Hi people,

    Can someone tell me how to make a report where the data can be updated? Not an interactive report, SQL report that selects a single row. The only options in the menu dropdown I see are "SQL query" and 'SQL Query (body of function from PL/SQL returning SQL query)', but I have a report elsewhere that says: this type are "SQL Query (updated report)", but I do not remember how :(

    Thank you very much

    -Adam

    Hi Adam,.

    An updated report is a 'tabular form' - see: http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10497/frm_tabular.htm#CHDFBHDB

    Andy

  • Update using sub query behavior

    I have two table with parents relationship child

    script for the same are:-

    create table pt (number);

    create table pt_ch (number b, a);

    Insert into pt values (1);

    insert into pt_ch values (2,1).

    insert into pt_ch values (3,1);

    insert into pt_ch values (4.2);

    When I execute the below the update statement, it is showing three line Update where as a condition based on I expect two rows to get the update.

    in this case for the third row that does not it updates with null, can you please tell me, why this behaves like that

    Update pt_ch set b = (select one of pt

    where pt.a = pt_ch.a);

    Select * from pt_ch;

    If there is no WHERE clause in an UPDATE statement, the update occurs on all lines. No matching rows are updated with the value NULL. This is the reason why you must always include the WHERE clause in an UPDATE STATEMENT. Try this

    Update pt_ch

    b the value = (select one of pt where pt.a = pt_ch.a)

    where exists (select null from pt where pt.a = pt_ch.a);

    or

    merge into pt_ch

    using pt

    on (pt.a = pt_ch.a)

    When matched then

    update set pt_ch.b = pt.a;

  • What line has been activated in a (updated report) SQL query?

    I have an app with a report based on a query SQL (PL/SQL function...) defined on the Global Page.

    I want on the pages where the report is used, click on a particular column (TCKT_ID), and then pass the values of this line to another page for treatment.

    I would like to know things:

    (1) how to determine which line clicked?  The column is TCKT_ID and it is used as a link to another page.  The SQLis a significant (for me!) join the tables.

    (2) how to see the values of other columns in the same row?  Because I format with 'div', columns are named - no "f02", of "f03", etc.

    (3) how to pass multiple values (ENAME, JOB, MGR, SAL, COMM) to the target page?  You might ask: why not just re - query data using a unique key.  Great idea, but the unique key is four columns if I still need a way to pass these four values for this unique key.

    I built a 'pretty close' example of the situation in the present case:

    WS APEX_EXAMPLES_01

    Demo / demo

    Application: Line Info 10782 - Page 0 has the report.  Page 1 poster with a link (in red) on page 2.

    I think I can fill most of what I need if someone can just show me how to make, say, the ENAME of the line clicked on page 1, so I can use it to filter the query on page 2 for just this line clicked on page 1.

    From < tt > < /tt >, I tried show the actual line view - Source of the actual report than just let me but it comes out like this

    M F

    MM_O_BD_DAILY. CTL (D046 ftp) CMM_O_BD_DAILY.sh (ftp D046) 17:15

    10-13 JUNE AT 17:00:52
    10-13 JUNE AT 17:00:53

    17:15

    10-13 JUNE AT 17:00:52
    10-13 JUNE AT 17:00:53

    17:00

    10-13 JUNE AT 17:00:59
    10-13 JUNE AT 17:01
    THERE

    ARS003_TEST NEXT BUSINESS DAY

    I wonder if I'm not understanding something. This seems to be a very simple thing to do without 'tricks '.

    Take a look, I modified the column LINKING_NUMBER of the report of p0.

    Basically, you specify only the fields you want to fill and their assignments.  I added 4 fields of destination on p2 to receive assignments.  Then you can do whatever you want with them as editing a report, etc...

    The only trick here is to get more than 3 elements in the URL, you must change your Page link type in this URL request.  You can specify lost elements in this way.

    Thank you

    -Jorge

  • dynamic update with vars query

    Hello

    I have a dynamically generated, with x input fields, generated from x days
    so, if I have 3 days and each day contains 3 fields, I appoint dynamic my fields

    field1_1
    field1_2
    field1_3

    field2_1
    field2_2
    field2_3

    and so on...

    in my result page, I can capture these areas by

    < cfloop 1 to 3 of the index I have >
    < name cfparam = field1_ #i # >
    < / cfloop >

    but then I don't know how to upgrade my request, because I would have to use this syntax, which is not correct...

    < cfloop 1 to 3 of the index I have >
    UPDATE... 1(1)(a) field SET = field1_ # i # #.
    < / cfloop >

    is there another way?


    TNX for all help!

    Scoring table to use. Assume you are using POST:

    UPDATE... 1(1)(a) field SET = form [' field1_ #i # "]

  • (Updated report) SQL query

    Is it possible to convert an existing SQL query report area to an "application SQL (editable report)? If not, where should we do to create a SQL (editable report) region?

    I had the same problem.

    The way I ended up converting my sql to a (editable report) SQL query was:

    Create a new page with the type of form and tabular presentation, run through all the steps required Wizard.

    Once done, you can go back and modify the report and paste in your original sql code.

    Worked for me.

    It will be useful.

    Jen

    Published by: munsej on August 7, 2009 08:42

  • Unable to establish a connection with IDM DB

    Hello
    I have a java code which updates user table in the staging table. His task in process adapter. Please help me find the error - I am not able to establish a connection with IDM DB. The error I get is 12/02/27 03:31:36 nameIDM of IT resources
    DEBUG, February 27, 2012 03:31:36, 767, [XELLERATE. API], class/method: tcITResourceInstanceOperationsBean/findITResourceInstances entered.
    DEBUG, February 27, 2012 03:31:36, 774, [XELLERATE. API], class/method: tcITResourceInstanceOperationsBean/findITResourceInstances to the left.
    ERROR, February 27, 2012 03:31:36, 778, [COM ROSS. IAM. IOM. GENERATEUSERATTRIBUTE], could not initialize: Thor.API.Exceptions.tcAPIException: index of the line out of bounds


    Here is the code:

    package com.ross.iam.oim;

    import java.sql.Statement;
    import java.sql.Connection;
    to import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.HashMap;
    Import Thor.API.tcResultSet;
    Import Thor.API.tcUtilityFactory;
    Import Thor.API.Exceptions.tcAPIException;
    Import Thor.API.Exceptions.tcColumnNotFoundException;
    Import Thor.API.Exceptions.tcITResourceNotFoundException;
    Import Thor.API.Operations.tcITResourceInstanceOperationsIntf;
    Import Thor.API.Operations.tcUserOperationsIntf;
    import com.thortech.util.logging.Logger;
    import com.thortech.xl.dataaccess.tcDataProvider;


    public class changeUsrEndDate {}
    Private static final Logger log = Logger.getLogger (GenerateUserAttribute.class.getName ());
    private tcUserOperationsIntf usrOps;
    private tcITResourceInstanceOperationsIntf moITResIntf = null;
    private String DBDatabaseName;
    private String DBDriver;
    private String DBUser;
    private String DBPassword;
    private String DBURL;
    Connection con = null;
    String itResourceName = null;

    public changeUsrEndDate()
    {
    }

    public changeUsrEndDate (dataProvider tcDataProvider, String itResourceName, String UserID, String Password, String DatabaseName, String URL, String Driver) bird Exception {}
    try {}
    String hashkey = null;
    Dim hashvalue = null;
    String itResourceName = null;
    this.usrOps = ((tcUserOperationsIntf) tcUtilityFactory.getUtility (dataProvider, "Thor.API.Operations.tcUserOperationsIntf"));
    this.moITResIntf = ((tcITResourceInstanceOperationsIntf) tcUtilityFactory.getUtility (dataProvider, "Thor.API.Operations.tcITResourceInstanceOperationsIntf"));
    HashMap itResNameMap = new HashMap();

    itResNameMap.put ("TI Resources.Name", itResourceName);
    System.out.println ("Name of the resource IT" + itResourceName);
    tcResultSet itResourceRes = (itResNameMap) this.moITResIntf.findITResourceInstances;
    itResourceRes.goToRow (0);
    long itResKey = itResourceRes.getLongValue ("TI Resources.Key");
    System.out.println ("it resource key" + itResKey);
    HashMap itResKeyValueMap = new HashMap();
    tcResultSet itResKeyValue = (itResKey) this.moITResIntf.getITResourceInstanceParameters;
    System.out.println ("Value of the IT resource" + itResKeyValue);
    rowCount int = itResKeyValue.getRowCount ();
    for (int j = 0; j < rowCount; j ++) {}
    itResKeyValue.goToRow (j);
    System.out.println ("row" + j);
    hashkey = itResKeyValue.getStringValue ("IT Resource Type Definition.IT Type Parametr.Field resource name");
    HashValue = itResKeyValue.getStringValue ("IT resources Type parameter Value.Value");
    itResKeyValueMap.put (hashkey, hashvalue);
    }

    DBDatabaseName = ((String) itResKeyValueMap.get ("DatabaseName"));
    System.out.println ("DatabaseName" + DatabaseName);
    DBDriver = ((String) itResKeyValueMap.get ("Driver"));
    System.out.println ("Driver" + DBDriver);
    DBUser = ((String) itResKeyValueMap.get ("UserID"));
    System.out.println ("userid" + dbuser);
    DBPassword = ((String) itResKeyValueMap.get ("Password"));
    System.out.println ("password" + dbpassword);
    DBURL = ((String) itResKeyValueMap.get ('URL'));
    System.out.println ("URL" + DBURL);

    }
    catch (Exception e) {}
    log. Error ("failed to initialize the:" + e);
    }
    }

    public String usrRecords (String userEndDate, String ntLogonName) throws tcITResourceNotFoundException, tcAPIException
    {
    HashMap usrMap = new HashMap();
    Statement stmt = null;
    Instruction stmt1 = null;
    ResultSet results = null;
    ResultSet results 1 = null;
    ResultSet 2 = null;
    String result = null;
    usrMap.put ("USR_END_DATE", userEndDate);
    System.out.println ("end user date" + userEndDate);
    usrMap.put ("USR_UDF_NTLOGON", ntLogonName);
    System.out.println ("ntlogon username" + ntLogonName);
    try {}
    System.out.println ("before the get connection" + con);
    con = getConnection().
    System.out.println ("get connection" + con);
    results = stmt.executeQuery ("select * from ud_co_extn_q where udf_extn_ntlogon ='" + ntLogonName + "' and udf_extn_extended IS NULL");
    While (results.next ()) {}
    System.out.println ("inside any block");
    Results 1 = (stmt1) .executeQuery ("select USR_END_DATE from usr where udf_extn_ntlogon ='" + ntLogonName + "'");
    2 = (stmt1) .executeQuery ("update ud_co_extn_q set udf_extn_extended =" + userEndDate + "where udf_extn_ntlogon ='" + ntLogonName + "'");
    }
    }
    catch (SQLException to) {}
    log. Error ("Exception occurred - SQL Exception:" + se.getMessage ());
    se.printStackTrace ();
    log. Debug ("cleanup of resources DB");
    try {}
    Results.Close ();
    results2. Close();
    If (stmt! = null)
    stmt. Close();
    If (this.con! = null)
    This.con.Close ();
    } catch (SQLException ex) {}
    log. Error ("an error occurred during the cleanup of resources DB" + ex.getMessage ());
    }
    } return result;
    }

    Private connection getConnection () throws SQLException
    {
    Try
    {
    Class.forName (DBDriver) .newInstance ();
    } catch (InstantiationException e) {}
    } catch (IllegalAccessException e) {}
    } catch (ClassNotFoundException e) {}
    }

    Connection con = (Connection) DriverManager.getConnection (DBURL, DBUser, DBPassword);
    con.setAutoCommit (true);
    return con;
    }


    }



    Please suggest if anyone were facing a similar situation.


    Thank you
    Kalpana.

    two things I noticed here

    1. you don't have createStatement() call before executeQuery
    2. you must use executeUpdate() instead of executeQuery()

    use as below
    Statement st = con.createStatement ();
    ResultSet rs = st.executeUpdate (query);

    IF you are using 10 g and am trying to update DB why not try below

    dataSet tcDataSet = new tcDataSet();
    dataProvider = getDataBase() tcDataProvider;
    String oneTimeQuery = "SELECT count (*) AS the account OF UGP.
    + ' WHERE UPPER (UGP_NAME) =' "+ group +" ' ";
    dataSet.setQuery (dataProvider, oneTimeQuery);
    dataSet.executeQuery ();

    Look below at the link to update the db in 10g
    update in tcDataSet query

    -nayan

  • REST API updates

    I try to get the REST API of emails. I have the system of creating emails OK but when I try and update doing a query PUT with the ID of the email created in the URL and the ID in the JSON data (and noting of also changed) it blows upward with an internal server error.

    Any pointers people can give me?

    Hi Fred, I just went to get a few POST and PUT requests to see if I could spot anything and post it here.

    And this is now, works very well.

    * shrugs *.

    I'll keep an eye on it and post if I have more problems.

  • Group Rows\columns open on each update

    Hello

    Whenever I have updated a smartview query that grouped rows & columns open, is there a vision where I can avoid this?

    Thank you

    In Smart View options on the formatting tab uncheck adjust columnwidth

  • vo.setAttribute () does not display data on page OAF after DB update

    Hello

    We try to set search field values using vo.setAttribute (). It does not work as expected when there is NO update in the DB table, but it does not display the value on the screen of the OAF when we update the table DB (call parametrisee AM method in controller-> inside the AM by calling the update procedure)

    Query for VO:

    Select t_number, t_type, c_name, t_status, org, of xx_custom_tbl

    where org =: 1

    and c_name =: 2

    and t_status = 'EMPTY '.

    attribute1 is null

    Now we have a button, to the click, it will fill with data in the field list of choices for all ranks. We have made this requirement. But we don't want duplicates in all ranks. To do this, we update the column table as "USED" attribute1 Now, for the second row, when the original Version runs, will be will not display selected data in the first row (as call to the procedure to update the column Attribute1 is done for all ranks)

    We get the code snippet below:

    In the controller:

    If (pageContext.getParameter ("submitButtonClick")! = null) {}

    Vo = OAViewObject

    (OAViewObject) am.findViewObject ("LOVVO1"); Lov inside a Table of manual search VO

    Vo1 OAViewObject =

    (OAViewObject) am.findViewObject ("TableVO1");  Table VO

    While (vo1.hasNext ()) {}

    String org = pageContext.getParameter("Org2").toString ();

    int totalRecord1 = vo1.getRowCount ();

    Row1 row = vo1.first ();

    for (int i = 0; i < totalRecord1; i ++) {}

    String C_Nm =

    (String) row1.getAttribute ("CName");

    Org = string

    (String) row1.getAttribute ("Org");

    VO. Reset();

    vo.setWhereClause (null);

    vo.setWhereClauseParams (null);

    vo.setWhereClauseParam (0, Org);

    vo.setWhereClauseParam (1, C_Nm);

    vo.executeQuery ();

    While (vo.hasNext ())

    {

    Line = vo.first ();

    String T_Type = null;

    String T_Value =

    row.getAttribute("TNumber").toString ();

    Row1.SetAttribute ("Trail_Number", T_Value);

    pageContext.writeDiagnostics (this,

    «aaaI am here.3...» T_Value ' + '.

    T_Value, 1);

    If (row.getAttribute ("TType")! = null) {}

    T_Type =

    row.getAttribute("Trail_NumberType").toString ();

    Row1.SetAttribute ("Trail_NumberType", T_Type);

    }

    }

    Serializable RestrictData [] is {org, C_Nm, T_Value};.

    am.invokeMethod ("RestrictDataLOV",

    RestrictData);

    pageContext.writeDiagnostics (this,

    "After the update of the table ' +.

    Row1. GetAttribute ("Trail_Number"),

    (1);

    break;

    }

    Row1 = vo1.next ();

    }

    break;

    }

    throw new OAException ('updated Table values!',

    OAException.CONFIRMATION);

    }

    Analysis:

    About adding various debugging messages, we have experienced is not populate data in the screen when we update the Attribute1 to "USED". Otherwise, the vo.setAttribute () is working correctly and display the data in the form OFA (search-> row table).

    Can someone please help?

    Kind regards

    Zahid

    Hello

    The code above works fine, it just sets the table at the end of the record values. Since we have similar values, we could not recognize that we actually visualize the latest reports instead of the first 10 records; where vo.setAttribute () worked as expected.

    Also, the first 10 records are now shown by adding the following code to above:

    row = vo.first;
    vo.setCurrentRow(row1);
    

    Kind regards

    Zahid

  • Fast and slow when issued by app SQL query on the issue mnaually

    Hello

    I have a more general question concerning a specific behavior of Oracle.

    I update a feature of an application. The application is not responding and I finally put end. I checked Oracle if a request is long running by using the following statement:

    Select s.username,s.sid,s.serial#,s.last_call_et/60 mins_running, q.sql_text from v$ session s
    Join v$ sqltext_with_newlines q
    On s.sql_address = q.address
    When status = 'ACTIVE'.
    Type <>'BACKGROUND '.
    and last_call_et > 60
    order of sid, serial #, q.piece


    The result of the above query is:

    WITH CONNECTION AS (SELECT * FROM WW_CONN C WHERE (C.FID_FROM I))
    N (SELECT FID FROM WW_LINE WHERE FID_ATTR =: B1) AND C.F_CLASS_ID
    FROM = 22) OR (C.FIDto IN (SELECT FID FROM WW_LINE WHERE FID_AT))
    TR =: B1) AND C.F_CLASS_ID_TO = 22)) SELECT MIN (P.FID_ATTR) AS FI
    CONNECTION C, WW_POINT D_FROM P WHERE (P.FID = C.FID_FROM A
    C.F_CLASS_ID_FROM ND = 32 AND C.FLOW = 1) OR (P.FID = C.FID_TO
    C.F_CLASS_ID_TO ND = 32 AND C.FLOW = 2)

    I have another tool that shows me the connection parameter values. So I know that the value of: B1 is 5011 - the id of the feature updates. This query runs for 20 minutes and finally more time stops in front of him. The update process involves several sql statements - if it does not have the update, but is part of the process.

    Here's the bit I don't understand: when I run the query in SQL Developer with value 5011: B1 it takes 0.5 seconds to return a result.

    Why did the sql statement taking so long on the issue by the application, but takes less than one second when I run it manually?

    I sent a dump of the data to the vendor of the application that is not able to reproduce the problem in their environment. Could someone explain to me what is happening here or give me key words for the search?

    We use 11 GR 2, 64-bit.

    Thank you very much
    Rob

    Hi Rob,

    at least, you should see some differences in the statistics for the child cursor different (one for running the application must show at least a higher value for ELAPSED_TIME). I would like to use something like the following query to verify the information for the child cursors:

    select sql_id
         , PLAN_HASH_VALUE
         , CHILD_NUMBER
         , EXECUTIONS
         , ELAPSED_TIME
         , USER_IO_WAIT_TIME
         , CONCURRENCY_WAIT_TIME
         , DISK_READS
         , BUFFER_GETS
         , ROWS_PROCESSED
      from v$sql
     where sql_id = your_sql_id
    

    Concerning

    Martin

  • Need a solution to update values in the table

    My version of oracle is 11 and my table name is nit_xml in which column the name is cust_dtls

    Nit_xml table data


    < root >
    Nitesh < Cust_dtls > < / Cust_dtls >
    < / root >

    I want to just update Nitesh Nit...

    Its inserted i through this way, values

    INSERT INTO nit_xml
    VALUES)
    ' < root >
    Nitesh < Cust_dtls > < / Cust_dtls >
    < / root > '

    So I tried to update my way like like that



    UPDATE nit_xml
    SET cust_dtls = ' < root >
    Nitesh < Cust_dtls > < / Cust_dtls >
    < / root > '
    WHERE cust_dtls = ' < root >
    Nitesh < Cust_dtls > < / Cust_dtls >
    < / root > ';

    But not working if anyone can give me any ideas about XML as well as how it works and what is possible or not to update through query... His note I want to update the column cust_dtls based on the same value of the column and not any other data type number or varchar2 because that based on other datatype it works easily and the second thing her i use application TOAD while the manual update is possible which is very good, but I need to update directly through query...



    Kind regards
    Nitkhush...

    Niteshkhush wrote:
    But in this link and that updated the example is based on once again the string as warehouse_name as 'san fransciso', but I want to update based on the same datatype column in which I am faced with the difficulty of writing where the clause can u give some advice...

    Like this?

    update nit_xml
       set cust_dtls = updatexml(cust_dtls, '/root/Cust_dtls/text()', 'Nit')
     where trim(extract(cust_dtls, '/root/Cust_dtls/text()')) = 'Nitesh'
    
  • In a table by using the Collection update of nulls

    I use collections to create a form in a table. However, I can't get the code to work. Could you please look at my logic and let me know what I am doing wrong?
    Apex version: 4.1
    1 process name: load Collection
    a. process Point: On Load - before the header
    Condition (b) process:
    i. the condition Type: PL/SQL expression
    + ii.     Expression:
     not apex_collection.collection_exists(p_collection_name => 'STAKEHOLDERS_COL')
    +
    c. code:
    if apex_collection.collection_exists('STAKEHOLDERS_COL') = TRUE then
       apex_collection.delete_collection(
             p_collection_name =>'STAKEHOLDERS_COL');
    end if;
    apex_collection.create_collection_from_query(
        p_collection_name => 'STAKEHOLDERS_COL',
        p_query => 'select id
                   , stakeholder_name
                   , stakeholder_role_id
                   , primary_contact_yn
                   , receive_notification_yn
                   , ''O'' original_flag
                   , wwv_flow_item.md5(stakeholder_name, stakeholder_role_id, 
                     primary_contact_yn, receive_notification_yn) 
                   from eba_prjv_proj_stakeholders,
       p_generate_md5 => 'YES'
    );
    * 2.     Report on the collection:
    a. query:
    select 
    apex_item.hidden(1,c001) id,
    apex_item.popupkey_from_query(2,c002,'select user_name d, user_name r from eba_prjv_app_users order by 1', 10) name,
    apex_item.select_list_from_query(4,c003,'select role_description d, id r from eba_prjv_stkhlder_roles order by role_code', 10) role,
    apex_ITEM.SELECT_LIST(5,c004,'N','Yes;Y,No;N') primary_contact_yn,
    apex_ITEM.SELECT_LIST(6,c005,'N','Yes;Y,No;N') receive_notifications_yn,
    apex_item.hidden(7, c006) status,
    apex_item.checkbox(8, seq_id) chkbx,
    apex_item.hidden(9, seq_id) seq_id
    from apex_collections
    where collection_name = 'STAKEHOLDERS_COL'
    AND c006 IN ('O','N','U')
    * 3.     I have a button 'Add a line' add a blank line for inserts. The button "submit page" REQUEST As "ADD". *
    * 4.     The process of adding new line: *.
    a. process Point: after submit - by the calculation and Validation
    b. process of Condition: what key - add row
    c. code:
    begin
    apex_collection.add_member(
    p_collection_name => 'STAKEHOLDERS_COL',
    p_c006 => 'N',
    p_generate_md5 => 'YES' );
    end;
    * 5. I have a button Delete who submits the request page = 'DELETE '. *
    * 6.     Collection update process:
    a. process Point: after submit - by the calculation and Validation
    + b.     Condition of process:
    REQUEST != 'ADD'
    +
    c. code:
    DECLARE
    l_status VARCHAR2(1);
    l_seq_id NUMBER;
    l_original_md5 VARCHAR2(4000);
    l_array_md5 VARCHAR2(4000);
    
    BEGIN
    
    FOR i IN 1..apex_application.g_f01.count LOOP
    
    -- Check previous status of Collection Member
      
       SELECT c006, c007 INTO l_status, l_original_md5
       FROM apex_collections
       WHERE 
       collection_name = 'STAKEHOLDERS_COL'
       AND seq_id = apex_application.g_f09(i);
    
    IF l_status = 'N' THEN
       l_status := 'N';
       
    ELSE
       SELECT wwv_flow_item.md5(apex_application.g_f02(i)
       , apex_application.g_f04(i)
       , apex_application.g_f05(i)
       , apex_application.g_f06(i))
       INTO l_array_md5
       FROM DUAL;
       
       IF l_original_md5 != l_array_md5 THEN
          l_status := 'U';
       END IF;
    END IF;
    
    
    IF l_status IN ('N','U') THEN
       
       apex_collection.update_member(
       p_collection_name => 'STAKEHOLDERS_COL'
       , p_seq => apex_application.g_f09(i)
       , p_c001 => apex_application.g_f01(i)
       , p_c002 => apex_application.g_f02(i)
       , p_c003 => apex_application.g_f04(i)
       , p_c004 => apex_application.g_f05(i)
       , p_c005 => apex_application.g_f06(i)
       , p_c006 => l_status
       , p_c007 => l_original_md5
     );
    END IF;
    END LOOP;
    IF :REQUEST = 'DELETE' THEN
       FOR i IN 1..apex_application.g_f08.count LOOP
       -- Check previous status of Collection Member
     
      SELECT seq_id, c006 INTO l_seq_id, l_status
      FROM apex_collections
      WHERE collection_name = 'STAKEHOLDERS_COL'
      AND seq_id = apex_application.g_f08(i);
    
      IF l_status = 'N' THEN
         apex_collection.delete_member(
         p_collection_name => 'STAKEHOLDERS_COL'
         , p_seq => l_seq_id
        );
      ELSE
        apex_collection.update_member_attribute(
        p_collection_name => 'STAKEHOLDERS_COL'
        , p_seq => l_seq_id
        , p_attr_number => '6'
        , p_attr_value => 'D'
       );
      END IF;
     END LOOP;
    END IF;
    
    end;
    * 7.     Update the collection table
    a. process Point: present - according to calculation and Validation
    b. process of Condition: If the key (APPLY_CHANGES)
    c. code
    DECLARE
    l_table_md5 VARCHAR2(4000);
    l_collection_md5 VARCHAR2(4000);
    BEGIN
    
    FOR c1 IN (SELECT c001, c002, c003, c004, c005, c006, c007,seq_id
    FROM apex_collections
    WHERE collection_name = 'STAKEHOLDERS_COL'
    ) LOOP
    
    IF c1.c006 = 'N' THEN
       insert into eba_prjv_proj_stakeholders
                ( STAKEHOLDER_NAME,
                 STAKEHOLDER_ROLE_ID,
                 PRIMARY_CONTACT_YN,
                 RECEIVE_NOTIFICATION_YN
                 )
                values
                (c1.c002,
                 c1.c003,
                 c1.c004,
                 c1.c005            
                );
    ELSIF c1.c006 = 'D' THEN
       DELETE FROM eba_prjv_proj_stakeholders
       WHERE id = c1.c001;
    ELSIF c1.c006 = 'U' THEN
       -- Check the record hasn't been updated since the query
       -- Get MD5 checksum from the Table
      
     SELECT wwv_flow_item.md5(STAKEHOLDER_NAME, STAKEHOLDER_ROLE_ID, PRIMARY_CONTACT_YN, RECEIVE_NOTIFICATION_YN)
       INTO l_table_md5
       FROM eba_prjv_proj_stakeholders
       WHERE id = c1.c001;
       -- Compare the checksum values and if they are different, raise an error.
       IF l_table_md5 != c1.c007 THEN
          raise_application_error( -20001
          , 'Current version of data in database has changed '||
            'since user initiated update process.');
         return;
      END IF;
    
      UPDATE eba_prjv_proj_stakeholders set
      STAKEHOLDER_NAME = c1.c002,
      STAKEHOLDER_ROLE_ID = c1.c003,
      PRIMARY_CONTACT_YN = c1.c004,
      RECEIVE_NOTIFICATION_YN = c1.c005
      where id = c1.c001;
    end if;
    end loop;
    apex_collection.delete_collection( p_collection_name => 'STAKEHOLDERS_COL' );
    END;
    At the end of the process, I see null values inserted in my table. The report also displays null values.

    Published by: jaouad khalifi on August 17, 2012 04:26

    Published by: jaouad khalifi on August 17, 2012 04:42

    Published by: jaouad khalifi on August 17, 2012 04:46

    Published by: jaouad khalifi on August 18, 2012 02:03

    Hello

    I changed and then brought back to the State that you had.

    The problem here is that you have status and Seq_id returned with APEX_ITEM. HIDDEN, but you have not selected the Show check box for those columns attribute report tab.

    Thus there is no f06 and f09 only named elements in your HTML DOM and therefore no APEX_APPLICATION. G_F06 and G_F09. If your processes

    FOR correct here is what you do

    1. mark the status and Seq_id as indicated in the report attribute tab columns
    2. change the ACE status display hidden to report column Standard. Change display of the Seq_id also report Standard column

    Note that when a column is not marked to show in the report he becomes any and you don't see the associated items in the DOM HTML.

    See you soon,.

Maybe you are looking for

  • cannot access the internet after upgrading to firefox 30.0 on windows 7

    After the upgrade to firefox 30.0 on windows 7, cannot access the internet. FF 30.0 works OK under Vista

  • Cannot zoom plot unless I have add another parcel "dummy".

    I have a weird situation... I add programmatically to the plots in my nor: graph (c#) ChartCollection chartCollection = new ChartCollection(); Plot = new Plot (label); parcel of land. Renderer = new LinePlotRenderer() {Stroke = brush, StrokeThickness

  • Drag poles zeros of a bode plot curve

    Hi all, I have a program of field bode, who can draw magnityde vs frequency and phase frequency vs like this. This bode plot is based on the functions of the poles and zeros. Here is an example showing how to calculate Labview zeros/poles. All values

  • playback of videos on pc

    Hi I just got an Xperia Z2, turned to normal mode, 4 k videos and Timeshift. I can see them perfectly on the phone but when I transfer them to my PC they are of very poor quality, pixelled and against nature. I tried MPC - HC (x 64), QuickTime and VL

  • The Windows 7 product key sticker is torn.

    The product key sticker is torn, and I'm not able to activate Windows 7. I had it before, but I have upgraded to windows 10 and it died on me and I had to reinstall windows 7. Only 3 of the characters are missing. Is there a way always activate? Cont