update the values, the NULL values by another value

Hi all

Item_Id Item_Flag    

1               Y

NULL       Y


If the Item_id values are like above(1,), will have to update with Item_Id = 2


How to do this?


Thank you

Update t set item_id = 2 where nvl(item_id,1) = 1

Tags: Database

Similar Questions

  • Try to update the user interface with another thread

    Hello

    Start a class JavaFX from another application, and then I want to change the UI of it components. I tried to use Platform.runLater to do.

    But the GUI crashes at the start (does not display anything) for the first 5 seconds (sleep time) changes and shows.

    I want to display the GUI at first, and then after 5 seconds the GUI should be updated with the message, but with the code it hangs just first and screens below everything after 5 seconds.

    Here sampleGUI is a an application javafx with inside text fields.

    + / public class StartGame extends Application {+
    +@Override+
    + public void start (steps) riser Exception {+
    final sampleGUI gui = new sampeGUI();
    GUI. Start (training);

    + Platform.runLater (new Runnable() {+)
    +@Override+
    + public void run() {+
    + try {+
    System.out.println ("sleep now...");
    Thread.Sleep (5000);
    System.out.println ("sleep above!");
    gui.updateText ("new message");
    +} catch (InterruptedException ex) {+
    System.out.println ("exception" ex); +
    +}+
    +}+
    +});+
    +}+
    +}+
    Platform.runLater(new Runnable() {
      @Override
      public void run() {
       // ...
      }
    });
    

    causes the run method of the executable to run on the Thread of the FX Application. Since you put Thread.sleep (5000) inside the run method of your executable, sleep occurs on the Thread of the FX Application.

    The call to runLater (...) can be called from any thread, including the Thread of Application FX.

    So, if you are not in the FX Application thread, you want to:

    // any long-running task, for example
    System.out.println("Sleeping now");
    Thread.sleep(5000);
    System.out.println("Sleep over");
    Platform.runLater(new Runnable() {
      @Override
      public void run() {
        // update UI:
        gui.updateText("New Message");
      }
    });
    

    If you are on the thread of the Application of FX, which is the case in your Application.start (...) method, you must create a new thread to run your code of long duration. You can do this "manually", creating a Thread and a workable for it to run, but it is probably best to use the simultaneity of JavaFX API, which has many hooks useful for updating the user interface on the Thread of the FX Application.

    In this case, the code would look like this:

    public class StartGame extends Application {
      @Override
      public void start(Stage stage) throws Exception {
        final SampleGUI gui = new SampleGUI();
        gui.start();
        final Task waitingTask = new Task() {
          @Override
          public String call() throws Exception {
            System.out.println("Sleeping");
            Thread.sleep(5000);
            System.out.println("Sleep over!");
            return "New Message" ;
          }
        };
    
        waitingTask.setOnSucceeded(new EventHandler() {
          @Override
          public void handle(WorkerStateEvent event) {
            gui.updateMessage(waitingTask.getValue());
          }
        });
    
        ExecutorService executor = Executors.newSingleThreadExecutor();
        executor.submit(waitingTask);
      }
    }
    

    There are (probably of dozens of) other ways to use a task to do. See the API documentation [url http://docs.oracle.com/javafx/2/api/javafx/concurrent/Task.html] for the task for more information.

  • Equium A60: Is it possible to update the graphics card?

    Because the graphics card in the A60 Equium is not very good and I was wondering if I could get a different graphics card and plug it into the back and used instead.

    If someone could tell me if I can I would be very grateful

    Hello

    No, it s not possible to update the graphics card to another.
    As you certainly know, the laptop technology is not the same as the desktop PC simply. It s the motherboard technology all just different. You know that heat is a bigger problem for every laptop and generally of designer, developer and manufacturing. In addition, the various interfaces are not equal.

    For example: what do you think, why Intel doesn't produce chips with speeds of 10 GHz, 100GHz, or 1000GHz. Because of the heat.

    I think that the graphics card performance will produce more heat, and this could lead to overheating problems.
    The other graphics card needs another module of cooling and the cooling module must be compatible with the motherboard. Everything needs to be changed (the case design, interfaces, etc.) before the upgrade might be possible. In my view it is simply not possible at the moment.

  • Remove the NULL values and update the value according to the logic

    Hello

    The problem data

    CREATE TABLE VOLA (SRNO, NUMBER, zeroNUMBER, ANUMBER);

    INSERTION of REM in VOLA

    TOGETHER TO DEFINE

    Insert in VOLA (SRNO, ONE) values (1,237.94);

    Insert in VOLA (SRNO, ONE) values (2, null);

    Insert in VOLA (SRNO, ONE) values (3,203.565);

    Insert in VOLA (SRNO, ONE) values (4,170.69);

    Insert in VOLA (SRNO, ONE) values (5,113.67);

    Insert in VOLA (SRNO, ONE) values (6,93.6);

    Insert in VOLA (SRNO, ONE) values (7,82.03);

    Insert in VOLA (SRNO, ONE) values (8,66.675);

    Insert in VOLA (SRNO, ONE) values (9,63.59);

    Insert in VOLA (SRNO, ONE) values (10,61.415);

    Insert in VOLA (SRNO, ONE) values (11,60.015);

    Insert in VOLA (SRNO, ONE) values (12,58.235);

    Insert in VOLA (SRNO, ONE) values (13,57.805);

    Insert in VOLA (SRNO, ONE) values (14,56.965);

    Insert in VOLA (SRNO, ONE) values (15, null);

    Insert in VOLA (SRNO, ONE) values (16, null);

    I have to remove the NULL values in column 1, the problem is that the position of the NULL values are not fixed, and it can be any position. If all the lines of the columns are null, then throw it away.

    If multiple NULL values are here so I have to do the math as follows to update null with the eigenvalues

    1. If the first line is null then take the 2nd value in row and update it.

    2. If the lines between both is null then take avg of prev and next value not null and refresh it.

    3. If the last value in the column is null, then then take prev and update, in this case last two are null, so I have to take value of prev 14 value line update in

    15th and 16th ranks.

    I want to put this pl/sql logic, somehow, that I thought have loop and counter aapproach and loops through the elements and check and update.

    But always looking for something better before looking to write code. No idea or help will be useful for me.

    I * think * you are looking for something like:

    WITH VOLA (SRNO, ONE)

    AS (select 1,237.94 from all the double union)

    Select 2, union null value double all the

    Select 3,203.565 from all the double union

    Select 4,170.69 from all the double union

    Select 5,113.67 from all the double union

    Select 6,93.6 from all the double union

    Select 7,82.03 from all the double union

    Select 8,66.675 from all the double union

    Select 9,63.59 from all the double union

    Select 10,61.415 from all the double union

    Select 11,60.015 from all the double union

    Select 12,58.235 from all the double union

    Select 13,57.805 from all the double union

    Select 14,56.965 from all the double union

    Choose 15, null of union double all the

    SELECT 16, NULL FROM dual)

    GET_VALUES (SELECT SRNO, ONE ACE,

    , LAST_VALUE (WE IGNORE NULLS) (ORDER BY SRNO CSA ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING) AS PREVIOUS_VALUE

    , first_VALUE (ONE IGNORE NULLS) over (ORDER OF SRNO CSA ROWS BETWEEN 1 SUITE AND FOLLOWS without TERMINALS) AS NEXT_VALUE

    FROM VOLA)

    SELECT SRNO, ONE, CASE

    WHEN IT IS NOT NULL, THEN WE

    OTHER CASES

    WHEN PREVIOUS_VALUE IS NOT NULL AND IS NOT NULL THEN (PREVIOUS_VALUE + NEXT_VALUE) NEXT_VALUE / 2

    WHEN THE PREVIOUS_VALUE IS NOT NULL, THEN PREVIOUS_VALUE

    WHEN THE NEXT_VALUE IS NOT NULL, THEN NEXT_VALUE

    END

    END AS NEW_VALUE

    OF GET_VALUES

    /

    HTH

  • Update the values in the Table from another Table containing historical data

    So, I have two tables, a table and a master table.  The current table is updated each week and at the end of the week, is copied to the main table to keep historical data.  I have update the table in progress early in the week and want to take the latest data from the master table and update the current table with the data.  The current table could have additional IDs or some of the IDS could have deposited (these lines would receive data in the main table).  I want to only update the rows in the current table that have existing data to the attr1, attr2, attr3 columns.  A particular ID may have more than one record in the primary table, I want only the last disk to use for updating the current table.  The data from a different database where no direct connection is possible then I have to import data every week.  Here are some statements of create/insert:

    create table current_T (ID1 varchar(100),adate date,attr1 varchar(100),attr2 varchar(100),attr3 varchar(100))
    

    create table Master_T (ID1 varchar(100),adate date,attr1 varchar(100),attr2 varchar(100),attr3 varchar(100))
    
    

    begin
    insert into current_T (ID1,adate)
    values ('IE111','08/02/13');
    insert into current_T (ID1,adate)
    values ('IE112','08/02/13');
    insert into current_T (ID1,adate)
    values ('IE113','08/02/13');
    
    insert into master_T (ID1,adate,attr1,attr2,attr3)
    values ('IE111','08/01/13','yes','abc','123');
    insert into master_T (ID1,adate,attr1,attr2,attr3)
    values ('IE112','08/01/13','no','dgf','951');
    insert into master_T (ID1,adate,attr1,attr2,attr3)
    values ('IE113','08/01/13','no','dgf','951');
    insert into master_T (ID1,adate,attr1,attr2,attr3)
    values ('IE113','07/01/13','no','dgf','951');
    end;
    

    This has been a scratcher for me head and any help would be greatly appreciated.  I'm coding in Apex 4.1

    Thank you

    -Steve

    Not tested

    merge into current_t c

    using (select *)

    Of

    (select m.*

    row_number() over (partition by m.id1 m.adate DESC order) rn

    of master_t m

    )

    where rn = 1

    ) u

    on (c.id1 = u.id1)

    When matched then update

    Set c.adate = u.adate

    c.attr1 = u.attr1,

    c.attr2 = u.attr2,

    c.attr3 = u.attr3,

    When not matched then insert

    (c.id1, c.adate, c.attr1, c.attr2, c.attr3)

    values

    (u.id1, u.adate, u.attr1, u.attr2, u.attr3)

    ;

  • Update the value of the column based on another value of the column to another table

    Hi all

    I have something very confused me and need your help.

    Having two tables A and B.

    Table A have 2 column (+ id + and desc1)

    Table B have column 2 also (+ transnum + and desc2)

    Now, I want to update the column desc2 of table B identical desc1 of table was where transnum of Table B same as the id of the table has.

    I use this SQL

    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1

    but this error occurs

    Error from line 5 in order:
    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1
    Error in the command line: 5 column: 35
    Error report:
    SQL error: ORA-00933: SQL not correctly completed command
    * 00933. 00000 - "command not properly ended SQL."
    * Question: *.

    * Action. *

    Hope someone can help me. TQ for help...
    SQL> create table a1 (id number(2),des varchar2(10));
    
    Table created.
    
    SQL> create table b1 (transnum number(2),des varchar2(10));
    
    Table created.
    
    SQL> insert into a1 values (1,'maran');
    
    1 row created.
    
    SQL> insert into b1 values (1,'ram');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> update b1 set des=(select des from a1 where b1.transnum=a1.id);
    
    1 row updated.
    
    SQL> select * from b1;
    
      TRANSNUM DES
    ---------- ----------
             1 maran
    
  • update the value of the column to the next value

    Hi all

    create table xxc_test (date of from_date, to_date date, amount, number incr_amount);

    Select 2014, 2015, 3000, the double null

    If suppose if input data in the incr_amount then let say 1000 I want to update the value with incr_amount column amount

    Select 2014, 2015, 4,000 of the double

    If not even though it is as

    Select 2014, 2015, 3000, the double null

    and must be updated to the year

    Note: I spend the year, amount,incr_amount manually (run-time)

    Post edited by: Rajesh123 Note added in the subect

    Hello

    : new.incr_amount: = 0; also use it in code.

    The condition " If : new.incr_amoun is > 0" then (sure fire or change the value only if the increment is positive. ).

    ,....

    ..

    end if;


    -Thank you

    Pavan Kumar N

  • Oracle apex 5.0: not update the values in the Collection.

    Hello again,

    I have a problem in IR where content comes from the collection query.

    Now the question is when I update the value of the column in the report and click on the custom button, that it will update the value of collection and insert the updated values of the collection member in another table that works well according to my condition, but when I will apply to any word in the search bar (say books in order not to update the values of books) and tries to update the value as a result of research above requirement does not work I mean the collection is not updated. Apex. Oracle.com

    testdump/developer/Office

    All of the Suggestions!

    Thank you

    Pranav.

    Pranav.Shah wrote:

    I have a problem in IR where content comes from the collection query.

    Now the question is when I update the value of the column in the report and click on the custom button, that it will update the value of collection and insert the updated values of the collection member in another table that works well according to my condition, but when I will apply to any word in the search bar (say books in order not to update the values of books) and tries to update the value as a result of research above requirement does not work I mean the collection is not updated. Apex. Oracle.com

    testdump/developer/Office

    The "coll update" process fails with a ORA-01403: no data found error. This happens in line 11 because of the access attempt to the wwv_flow.g_f01 using the variable array subscript c who has been incremented beyond the size of the table, which is now smaller because of the IR filter applied.

    begin declare
      c pls_integer := 0;
    begin
    for c1 in (
      select seq_id,c001 from apex_collections
      where collection_name = 'MATRIX2'
      ) loop
    c:=c+1;
    apex_debug.message(c);
      apex_collection.update_member_attribute (p_collection_name=> 'MATRIX2',
      p_seq=> c1.seq_id,p_attr_number =>'2',p_attr_value=>wwv_flow.g_f01(c));
    
    end loop;
    end;
    end;
    

    I agree with fondant tabular forms on interactive reports, but you can meet your requirement as follows. In your application, see page 2.

    1 Add a column of form element hidden IR containing the sequence number of collection:

    select
        c001 col1
      , apex_item.text(2, c002) col2
      , apex_item.hidden(1, seq_id) seq
    from
        apex_collections
    where
        collection_name = 'MATRIX2'
    

    2 place the question of the hidden form in the report using the COL1 Expression HTML attribute:

    #COL1##SEQ#
    

    3. change submit to the process if it is driven by the subject table, not the existing collection:

    begin
    
      for i in 1..apex_application.g_f01.count
      loop
        apex_collection.update_member_attribute(
            p_collection_name=> 'MATRIX2'
          , p_seq=> apex_application.g_f01(i)
          , p_attr_number => '2'
          , p_attr_value=> apex_application.g_f02(i));
      end loop;
    
    end;
    
  • Is it possible to access AMX element using the AMS item ID and then update the value of the AMX?

    I created a prototype - where I need to create a static Page AMX element. I have a bean that will have a method of UPDATING: the user interaction with the element AMX fires this UPDATE method, and the method will determine the value of another node AMX. The example is as follows

    <? XML version = "1.0" encoding = "UTF-8"? >

    "< amx:view xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    < amx:panelPage id = "pp1" >

    < amx:facet name = "header" >

    < amx:outputText value = "Header-XXX" id = "ot1" / >

    < / amx:facet >

    "< amx:selectOneChoice label = '1' id = 'soc1" value = ""valueChangeListener ="#{SolverLogic.Update1}" > "

    "< amx:selectItem label =" "id ="si667803"value ="-1"/ >"

    < amx:selectItem label = 'O1' id = 'si667804' value="667800.667803.667804"/ >

    < amx:selectItem label = "O2" id = "si667805" value="667800.667803.667805"/ >

    < amx:selectItem label = "O3" id = "si667806" value="667800.667803.667806"/ >

    < / amx:selectOneChoice >

    "< amx:selectOneChoice label ="2"id ="soc753865"value =" ">."

    "< amx:selectItem label =" "id ="si2"value ="-1"/ >"

    < amx:selectItem label = "Ø21" id = "si753866" value="667800.753865.753866"/ >

    < amx:selectItem label = "Ø22" id = "si753867" value="667800.753865.753867"/ >

    < amx:selectItem label = "O23" id = "si753868" value="667800.753865.753868"/ >

    < / amx:selectOneChoice >

    < / amx:panelPage >

    < / amx:view >

    When the user selects 'O1' - 'SolverLogic.Update1' bean - will calculate 'Ø21' must be selected. Is there a way to access the node AMX 'amx:selectOneChoice label is '2' ' - using the ID - id = "soc753865" sound, and then set the value as "value = 'Ø21' '"

    My requirement is that I don't need a DataController object, I have a binary file that contains the business logic, what I need is to create a static page and then use business logic to determine the result of user interaction and then update the user interface accordingly.

    Thank you

    Shailendra

    There is no label but value.

    You must have the below for the value of selectonechoice:

  • Update the xml string values.

    Hello

    I'm on 11.2.0.2 and got table with column nclob that stores the long xml string.

    {code}

    "<? XML version = "1.0" encoding = "UTF - 8"? >

    <? Fuego version = "6.5.2" build "101272 =? >

    < Game >

    < configuration name = "TEST database" type = subtype "SQL" = "DDORACLE" >

    < name = "jdbc.pool.idle_timeout property" value = "5" / > "

    < name = "jdbc.pool.entry.max property" value = "10" / > "

    < name = "oracle.dateEqualsTimestamp property" value = "false" / > "

    < name = "jdbc.schema property" value = "user1" / > "

    < name = "jdbc.host property" value = "hostname" / > "

    < property name = "user" value = "user1" / >

    < name = "jdbc.port property" value = "1521" / > "

    < name = "jdbc.pool.min property" value = "0" / > "

    < name = "jdbc.pool.maxopencursors property" value = "50" / > "

    < name = "oracle.sid property" value = "dbsid" / > "

    < property name = "password" value = "user101" / >

    < name = "jdbc.xa property" value = "false" / > "

    < name = "jdbc.pool.max property" value = "10" / > "

    < / configuration >

    < configuration name = 'TEST base2' type = subtype "SQL" = "DDORACLE" >

    < name = "jdbc.pool.idle_timeout property" value = "5" / > "

    < name = "jdbc.pool.entry.max property" value = "10" / > "

    < name = "oracle.dateEqualsTimestamp property" value = "false" / > "

    < name = "jdbc.schema property" value = "user2" / > "

    < name = "jdbc.host property" value = "hostname" / > "

    < property name = "user" value = "user2" / >

    < name = "jdbc.port property" value = "1521" / > "

    < name = "jdbc.pool.min property" value = "0" / > "

    < name = "jdbc.pool.maxopencursors property" value = "50" / > "

    < name = "oracle.sid property" value = "dbsid2" / > "

    < property name = "password" value = "user201" / >

    < name = "jdbc.xa property" value = "false" / > "

    < name = "jdbc.pool.max property" value = "10" / > "

    < / configuration >

    < / set >

    "

    {code}

    My goal is to update the value of the password so that it is equal to the value of jdbc.schema value < property name = "jdbc.schema" value = "user2" / > in this case user2 | " '01'

    < property name = "password" value = "user201" / > <-that's my goal.

    Concerning

    Greg

    Hello

    You can find a few methods here: How To: nodes of XML update with values from the same document. Oracle of Odie's blog

    They are not applicable to your options and version though.

    This is the first applied to your case:

    declare

    v_xmldoc xmltype.

    Start

    Select xmlparse (document to_clob (t.xmldoc))

    in v_xmldoc

    of my_nclob_table t

    where t.id = 1;

    for r in)

    Select idx, schema_name

    of my_nclob_table t

    xmltable)

    "/ game/configuration.

    passage v_xmldoc

    columns idx for ordinalite

    , schema_name varchar2 (30) path 'property[@name="jdbc.schema"]/@value '.

    )

    )

    loop

    Select updatexml)

    v_xmldoc

    , "configuration/game / ['|]» [to_char (r.idx) |'] Property[@name="password"]/@value'

    r.schema_name | '01'

    )

    in v_xmldoc

    Double;

    end loop;

    Update my_nclob_table t

    Set t.xmldoc = to_nclob (xmlserialize (dash, document v_xmldoc))

    where t.id = 1;

    end;

    /

    Here's another, using DOM:

    declare

    CLOB doc;

    p dbms_xmlparser. Analyzer;

    domdoc dbms_xmldom. DOMDocument;

    docnode dbms_xmldom. DOMNode;

    conf_list dbms_xmldom. DOMNodeList;

    conf_node dbms_xmldom. DOMNode;

    password_node dbms_xmldom. DOMNode;

    schema_name varchar2 (30);

    password_value varchar2 (256);

    Start

    Select to_clob (xmldoc)

    in the doc

    of my_nclob_table

    where id = 1;

    p: = dbms_xmlparser.newParser;

    dbms_xmlparser.parseClob (p, doc);

    domdoc: = dbms_xmlparser.getDocument (p);

    dbms_xmlparser.freeParser (p);

    docnode: = dbms_xmldom.makeNode (domdoc);

    conf_list: = dbms_xslprocessor.selectNodes (docnode, ' / game/configuration ');

    for i from 0... dbms_xmldom.GetLength (conf_list) - 1 loop

    conf_node: = dbms_xmldom.item(conf_list, i);

    dbms_xslprocessor.valueOf (conf_node, 'property[@name="jdbc.schema"]/@value', schema_name);

    password_node: = dbms_xslprocessor.selectSingleNode (conf_node, 'property[@name="password"]/@value');

    dbms_xmldom.setNodeValue (password_node, schema_name |) '01');

    end loop;

    dbms_xmldom.writeToClob (domdoc, doc);

    dbms_xmldom.freeDocument (domdoc);

    Update my_nclob_table t

    Set t.xmldoc = to_nclob (doc)

    where t.id = 1;

    end;

    /

    Post edited by: odie_63 - added DOM example

  • Run the function after the update of values

    I am writing a pretty basic plugin where I need to have a function to run after a point values have been updated.

    I do this to change the point values:

    params [POINT]-> u.td.x_value = FLOAT2FIX (pointX);

    params [POINT]-> u.td.y_value = FLOAT2FIX (pointY);

    params [POINT]-> uu.change_flags = PF_ChangeFlag_CHANGED_VALUE;

    This works very well for updating the values, but the code that goes after this block is executed until the values change really. Is there a way to force change to happen once I set new values or is there another place I can put the function so that it is executed after the values are actually changed?

    Hi Jesse Toula. Welcome to the forum!

    If you want to change is instantaneous, you can use AEGP_SetStreamValue() instead of the method that you use.

    There is no function that is guaranteed to be called when you change the values.

    UPDATE_PARAMS_UI could be called, and also a call of minutes is likely.

    You can set a flag in the sequence data to inform yourself of the pos - t change operations that must take place in such cases.

    personally, I'd go with the AEGP_SetStreamValue() solution.

  • Update the value Table B if table A the value of different

    Hi all
    I'm using Toad for Oracle and need assistance with a trigger. I have two tables tables A and B Table with some of the same fields. I want to only update the values in the array B, if the values in table A are not equal values in table B table A update. Don't update the record where the primary key of the Table equal to the foreign key in the Table B. I have a sample script below, I hope someone can give me an example, I can develop and test. Thanks for reading also.
    CREATE OR REPLACE TRIGGER AU_Table_A
    AFTER UPDATE ON Table_A
    FOR EACH ROW
    BEGIN
    If Table A :old.value != Table A :new.value
       then 
       update 
    --Update Table B value with Table A updated value
       Table B :old.value = Table A :new.value 
    where Table A primary key = Table B foreign key
    ............
    END IF;
    END;
    Published by: Nikki on December 6, 2011 07:50

    Hi Nikki,

    If I understand correctly, then maybe

    create or replace trigger au_table_a
      after update
      on table_a
      for each row
      when (old.value != new.value)
    begin
      update table_b
      set    table_b.value = :new.value
      where  table_b.foreign_key = :new.primary_key
          and table_b.value != :new.value;
    end au_table_a;
    /
    

    Note that the solution is not trying to handle NULL values. If you have NULL in to either A or B, we have to manage those specifically

    Concerning
    Peter

  • Process command API, update the value of the attribute FDF

    I use oe_order_pub.process_order to create a return order and as part of the logic that I need to fill attribute FDF, I see that value is updated in their respective fields once return order is created by API, when question and check the backend, I see the value of the attribute in the field. But when I check since before its is not visible in the field.

    Once I have change the value of the attribute of front end is visible, my question is why is not visible after API has created the return order.

    Attribute is a Date field and we have defined it for use the FND_DATE4 value in the configuration of the FDF, we in R12.

    Appreciate your help on this.

    Thank you!

    Edited by: User910243567 Sep 26, 2011 08:54

    Hello

    You update OE_ORDER_HEADERS_ALL. field of CONTEXT in your script to update the attributes? If you did not update that or somehow that's getting updated with null, then you won't be able to see the attributes of the front. Let me know.

  • Update the value of DataGrid

    I have a request - it can be found at http://reactorsoft.ath.CX/projects/Cygnus_v1/Cygnus_v1.html If a reference is required.

    In this application, I have a DataGrid. What I want to do update the rightmost 3 columns based on the data entered in the Act. Column of gains. Ideally, this will be row-by-row.

    The problem I encounter is that the value in the DataGrid control is not updated quickly enough when the itemEditEnd event is raised. If I return to this line and update the value is entered, the old value will be recovered. How can I work around this problem?

    In addition, another problem I encounter is that the triggerEvent itemEndEdit event value is not give me a value. This is supposed to tell me if the installation has ended due to a mouse event or keyboard. It is also essential to what I'm trying to accomplish.

    Can anyone provide me with an isight in this? It will be very much appreciated.

    A tip: use the method callLater to ensure that the dataProvider has been updated:


    http://www.Adobe.com/2006/mxml"layout ="absolute"creationComplete =" init () ">"
       
            Import mx.events.DataGridEvent;
    Import mx.collections.ArrayCollection;
               
    [Bindable]
    private var dp:ArrayCollection;
               
    private function init (): void
    {
    var da: Array = [{id: 1, amt: 0, c1:0, c2:0}, {id: amt 2: 0, c1:0, c2:0}];
    DP = new ArrayCollection (da);
    }
               
    private void calc(evt:DataGridEvent):void
    {
    var currObject:Object = [evt.rowIndex] dp;
    currObject.c1 = currObject.amt * 2;
    currObject.c2 = currObject.amt * 1.5;
    }
    ]]>
       

       
           
               
               
               
               
           

       

       

    Hope this helps,

    Dany

  • How to convert the Null value to 0 after the outer join?

    Hello guys

    My requirement is in fact 2 of outer join tables (that's how), and I got the outer join works very well, so in my report, I have values null of measures in another table of facts as a result of the outer join...

    Is there a way I can convert these nulls to 0?

    I realized that the null value is not stored in the table, it is just following the outer join because the NULL do not match records in other... So by default, I'm expected to get NULL values...

    Is there way to present these nulls to 0?

    Thanks a lot for your advice

    In response, the syntax will be:

    IFNULL (, 0)

    try and let us know how you go.
    See you soon
    Alastair

  • Update the value of a child node

    I work in the 10g database. I created an XML table by entering my XSD with Oracle. I can insert, read, and delete XML documents in the database. I've also seen on top of XML for another application to get the data. My XML looks something like this.

    < subproject >
    < WorkSetID > 1 < / WorkSetID >
    < objects >
    < object >
    < ObjectID > < / ObjectID >
    < ObjectMemberID > < / ObjectMemberID >
    ADDED < WorkAction > < / WorkAction >
    < / object >
    < object >
    < ObjectID > 123456789 < / ObjectID >
    < ObjectMemberID > 12345 < / ObjectMemberID >
    < WorkAction > SAME < / WorkAction >
    < / object >
    < object >
    < ObjectID > < / ObjectID >
    < ObjectMemberID > < / ObjectMemberID >
    ADDED < WorkAction > < / WorkAction >
    < / object >
    < / object >
    < / subproject >

    I have several of these documents in the XML table even if each with unique WorkSetID. I want to update the ObjectID tags and ObjectMemberID with a unique value (may be caused by a sequence) if the WorkAction = ADDED.

    I tried to do different ways, but he finally update all the columns in the intangible document what is the value of tag WorkAction. Has anyone already done this?

    Thanks for the help

    Don't forget the existsNode (or XMLEXists in GR 11, 1 material and later versions) controls only which documents are updated, not the nodes in the document are updated. This is the XPATH expression in the updateXML clause that controls the nodes in the selected document are updated. Also, you cannot use updateXML to add nodes, update only the nodes, so you'll need something like this...

    SQL> with WORKSET as
      2  (
      3  select XMLTYPE(
      4  '
      5     1
      6     
      7             
      8                     
      9                     
     10                     ADDED
     11             
     12             
     13                     AAAAAA
     14                     BBBBB
     15                     UNCHANGED
     16             
     17             
     18                     
     19                     
     20                     ADDED
     21             
     22     
     23  ') as OBJECT_VALUE from dual
     24  )
     25  select updateXML
     26         (
     27            OBJECT_VALUE,
     28            '/WorkSet/Objects/Object[WorkAction="ADDED"]/ObjectID',
     29            xmltype('123456789'),
     30            '/WorkSet/Objects/Object[WorkAction="ADDED"]/ObjectMemberID',
     31            xmltype('12345')
     32         )
     33    from WORKSET
     34   where existsNode(OBJECT_VALUE,'/WorkSet[WorkSetID="1"]') = 1
     35  /
    
    UPDATEXML(OBJECT_VALUE,'/WORKSET/OBJECTS/OBJECT[WORKACTION="ADDED"]/OBJECTID',XM
    --------------------------------------------------------------------------------
    
      1
      
        
          123456789
          12345
          ADDED
        
        
          AAAAAA
          BBBBB
    
    UPDATEXML(OBJECT_VALUE,'/WORKSET/OBJECTS/OBJECT[WORKACTION="ADDED"]/OBJECTID',XM
    --------------------------------------------------------------------------------
          UNCHANGED
        
        
          123456789
          12345
          ADDED
        
      
    
    
    SQL>
    

Maybe you are looking for

  • Digital keyboard problem

    Since the update to IOS10.0.2 of the keypad started to behave strangely on Web sites.  Already during the seizure of some numeric characters (for example, the ') returned to the keyboard characters keyboard letter immediately after use or after press

  • Disabling the automatic night time display mode

    night very my iphone goes into night time mode. How do I disable this so it is not automatic iPhone IOS 6 9.3.2

  • Upgrade Windows XP to Windows 7 can not find find the drivers

    I put my Windows XP to Windows 7 to level and when I get to the Custom Installation, he asks me where I want to install Windows 7. So I have to select a partition and nothing shows up, he said "no driver found". I need a partition to install Windows

  • How to get the emial address

    are there methods to retrieve the device email address?

  • I can't turn on the computer through the switch.

    I found an old pc with windows xp, I think, and the power up button do not work because diconected the motherboard, who knows where I put what? Original title: turn the button does not work.