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>

Tags: Database

Similar Questions

  • XML - ORA-19025: EXTRACTVALUE returns the value of a single node

    Hello

    I'm new to XML DB. Can someone help me with the below XML

    I use the following XML... (I pasted a part only of it coz I need data only up to this article)

    XML
    --------------------

    <? XML version = "1.0" encoding = "UTF-8"? > < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-."
    example"container ="http://www.w3.org/2001/XMLSchema"> < SOAP - ENV:Body >
    < ns:PicklistWS_GetPicklistValues_Output xmlns:ns = "urn: crmondemand/ws/list dropdown /" >
    < ListOfParentPicklistValue xmlns = "urn: / xml/crmondemand/list of choices" >
    < ParentPicklistValue >
    < language > ENU < / language >
    < ParentFieldName > plProduct_Team < / ParentFieldName >
    < ParentDisplayValue > Marketing On Demand < / ParentDisplayValue >
    < ParentCode > Marketing On Demand < / ParentCode >
    < Disabled > N < / disabled >
    < ListOfPicklistValue >
    < PicklistValue >
    Escalation of OCP/SME < code > < code >
    Escalation of OCP/SME < DisplayValue > < / DisplayValue >
    < Disabled > N < / disabled >
    < / PicklistValue >
    < PicklistValue >
    Ask fusion < code > < code >
    Merge request < DisplayValue > < / DisplayValue >
    < Disabled > N < / disabled >
    < / PicklistValue >



    Code
    ---------




    SELECT distinct
    EXTRACTVALUE (value (SR), ' / ParentPicklistValue/ListOfPicklistValue/PicklistValue/Code ','xmlns = "urn: / crmondemand/xml/list of choices"') AS display.
    Return EXTRACTVALUE (value (SR),'/ ParentPicklistValue/ListOfPicklistValue/PicklistValue/DisplayValue ',' xmlns = "urn: / crmondemand/XML/picklist"'),.
    EXTRACTVALUE (value (SR), '/ ParentPicklistValue/ParentDisplayValue','xmlns = "urn: / crmondemand/XML/picklist"') AS parent_display,
    EXTRACTVALUE (value (SR), '/ ParentPicklistValue/ParentCode','xmlns = "urn: / crmondemand/XML/picklist"') AS parent_return
    TABLE (XMLSEQUENCE ((EXCERPT)
    WEB_SERVICE (' <? xml version = "1.0" encoding = "UTF - 8" standalone = "no"? > < envelope soap: xmlns:soap = "http://schemas.xmlsoap.org/soap/envelope/")
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" >
    < soap: Body >
    < PicklistWS_GetPicklistValues_Input xmlns = "urn: crmondemand/ws/list dropdown /" >
    Type < FieldName > < / FieldName >
    Service request < RecordType > < / RecordType >
    < / PicklistWS_GetPicklistValues_Input >
    < / soap: Body >
    "< / envelope soap: >.
    (' document / urn: crmondemand/ws/list dropdown /: ' GetPicklistValues, Id_de_la_session).
    "/: soap envelope / soap: Body / * / * / * ',' xmlns:soap ="(http://schemas.xmlsoap.org/soap/envelope/'))) SR "


    ERROR
    ---------

    ORA-19025: EXTRACTVALUE returns the value of a single node


    UNDERSTANDING
    ---------------------------

    As my Xpath only points until the node - ParentPicklistValue and not the child nodes under it. That's why, when I try to interview the child nodes - / ParentPicklistValue/ListOfPicklistValue/PicklistValue/Code, I get the error mentioned above.

    REQUIREMENT
    -----------------------

    Can someone help me to receive the values of the mother and child values based on xml and query above.

    Hello

    It's a classic ;)

    You need a second XMLSequence who shreds the collection of PicklistValue in relational lines:

    select extractvalue(value(sr2), '/PicklistValue/Code', 'xmlns="urn:/crmondemand/xml/picklist"') AS Display
         , extractvalue(value(sr2), '/PicklistValue/DisplayValue', 'xmlns="urn:/crmondemand/xml/picklist"') AS Return
         , extractvalue(value(sr1), '/ParentPicklistValue/ParentDisplayValue', 'xmlns="urn:/crmondemand/xml/picklist"') AS parent_display
         , extractvalue(value(sr1), '/ParentPicklistValue/ParentCode', 'xmlns="urn:/crmondemand/xml/picklist"') AS parent_return
    from table(
           xmlsequence(
             extract( WEB_SERVICE( ... )
                    , '/soap:Envelope/soap:Body/ns:PicklistWS_GetPicklistValues_Output/ListOfParentPicklistValue/ParentPicklistValue'
                    , 'xmlns="urn:/crmondemand/xml/picklist"
                       xmlns:ns="urn:crmondemand/ws/picklist/"
                       xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"' )
           )
         ) sr1
       , table(
           xmlsequence(
             extract( value(sr1)
                    , '/ParentPicklistValue/ListOfPicklistValue/PicklistValue'
                    , 'xmlns="urn:/crmondemand/xml/picklist"' )
           )
         ) sr2
    ;
    

    What is your version of the database BTW?
    10.2 and upward, you can use the XMLTable.

  • 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;
    
  • Help! Try to update the values of Member - but does not (completely).

    We are trying to resolve a calculation in the middle of the update of business cycle. There is a push to update existing values for an account specific forecast time scenario.

    Essentially, we want to update the value of forecast current account 56400 to 0.33 * ("56100" + "56110" + "56300" + "56310" + "56320").

    The solution is to make sure only rest of the current year, Apr - Dec, updated forecasts to date.

    Currently the rule runs, but handful of values is never get updates - I'm not doing correctly?

    relatively small cube BSO, Account (dense).

    Here is the rule of this task running

    SET CACHE HIGH;

    FIX (& those 'Forecasts', 'the current iteration","F_00000");

    "56400")

    IF (@ISMBR (& NextMonth: "Dec"));

    0.33 * ("56100" + "56110" + "56300" + "56310" + "56320");

    ENDIF ;)

    ENDFIX;

    -followed by a calc all

    I expect to update all occurrences 56400 in the fix above...

    Thanks in advance!

    Himanshu-

    You probably need...

    UPDATECALC OFF SET;

    .. Smart calc or .in there will prevent 'own' blocks to be recalculated.

  • How update the values in ValueChangeEvent...

    Hello world

    I use Jdeveloper 11.1.2.0.0.

    I have a scenario as follows. I have 2 fields like password and Confirmpassword.

    I wrote a ValueChangeListener for the password field to make some validations and I wrote an other ValueChangeListener for the field Confirmpassword inorder to compare values entered in the two fields.

    But here..., event in ValueChangeListener field Confirmpassword, iam cannot retrieve the password field value to compare.


    The reason is... ValueChangeListener is located in ApplyRequestPhase/ProcessValidationsPhase and updated the values in UpdateModelPhase values are so not updated and impossible to get in the ValueChangeListener event.


    In order to update the values of the tree of components in case of ValueChangeListener, I tried to use code below

    valueChangeEvent.getComponent () .processUpdates (FacesContext.getCurrentInstance ());


    But the values are not updated... Please suggest me to complete my scenario. Do what is necessary. Thanks in advance.


    Concerning

    Leprince















    Hello

    Change the scope of the bean to viewScope.

    Kind regards

  • How to update the value of a value in a table

    APEX - 4.1.0.00.32
    Version of DB - 10 g
    Web - OHS server architecture
    Browser - IE8
    Theme - 9

    Hello

    I have a tabular form and I want to update the value of a field using a process based on an add-on.

    the name of the column in the form of tables is (name of column P22_PROJECT_ID)

    The error I get is

    ERR-1002 unable to find point item ID 'P22_PROJECT_ID' in the application "103".

    Error unexpected, unable to find the name of the option at the page or application level.

    The field is questioned as

    Select pt.project_id P22_PROJECT_ID

    The code I'm trying to use in the process is

    : P22_PROJECT_ID: =: P10_PROJECT_ID;

    I also tried without the colon (P22_PROJECT_ID), but the application does not recognize.

    Any help would be appreciated.

    Thank you

    the tables for is on page 22?
    the project in page 10

    I think you go to page 22 page 10
    Create a new item in page 22 as p22_project_id
    Since 10 passes as a parameter the page p1o_project_id and set p22_project_id

    by default as p22_project_id

  • 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

  • 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

  • DICOM metadata - extractvalue returns the value of a single node

    Hello

    I have difficulties in getting the value of the objects with repeated elements. Specifically, I need to get the value of spacing of pixels in the following excerpt from xml.
    <DICOM_OBJECT>
    ..
         <DECIMAL_STRING tag="00181063" definer="DICOM" name="Frame Time" offset="900" length="2">0.0</DECIMAL_STRING>
         <CODE_STRING tag="0018106A" definer="DICOM" name="Synchronization Trigger" offset="910" length="10">NO TRIGGER</CODE_STRING>
    ..
         <DECIMAL_STRING tag="00280030" definer="DICOM" name="Pixel Spacing" offset="1660" length="22">0.003562</DECIMAL_STRING>
         <DECIMAL_STRING tag="00280030" definer="DICOM" name="Pixel Spacing" offset="1660" length="22">0.003562</DECIMAL_STRING>
         <UNSIGNED_SHORT tag="00280100" definer="DICOM" name="Bits Allocated" offset="1690" length="2">8</UNSIGNED_SHORT>
        <UNSIGNED_SHORT tag="00280101" definer="DICOM" name="Bits Stored" offset="1700" length="2">8</UNSIGNED_SHORT>
    ..
    </DICOM_OBJECT>
    Normally, I use the following query to get the value of spacing of pixels:
     select EXTRACTVALUE(t.dicom.metadata
                          ,'/DICOM_OBJECT/*[@name="Pixel Spacing"]'
                         ,'xmlns=http://xmlns.oracle.com/ord/dicom/metadata_1_0')  scale_factor
       from my_dicom_object t
    It works, but not when there are two elements. Then I get the error: "ORA-19025: EXTRACTVALUE returns the value of a single node.


    All I really need is to get the value of the first node with the name of "spacing of pixels. Despite the many examples available to do with traditional xml paths, I was unable to find an example that makes using XPATH search strings rather than direct tag structure.

    Can someone give an example?

    Thank you!

    Published by: rcdev on August 10, 2009 15:20

    All I really need is to get the value of the first node with the name of "spacing of pixels.

    This? :

    select EXTRACTVALUE(t.dicom.metadata
                          ,'/DICOM_OBJECT/*[@name="Pixel Spacing"][1]'
                         ,'xmlns=http://xmlns.oracle.com/ord/dicom/metadata_1_0')  scale_factor
       from my_dicom_object t
    
  • Check the value of the attribute of a child node to xmltype data type.

    Hello

    I have a xml stored in the column with the data type as "XMLTYPE.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Settings>
      <Setting Name="A1" Value="N"/>
      <Setting Name="A2" Value="N"/>
      <Setting Name="A3" Value="SOMEVALUE"/>
      <Setting Name="A4" Value="N"/>
      <Setting Name="A5" Value="Y"/>
      <Setting Name="A6" Value="N"/>
    </Settings>
    I don't want to loop in each child node. But want to know if the value of the A5 parameter is Y or N? Is there a way I can find it without making the child node extract "Setting" and then a loop of each node to find the value?

    Kind regards

    You specify your Oracle version then here are two options. If 10.2 or higher, use XMLTable, otherwise use the option of ExtractValue.

    -- The WITH simply simulates your existing table that I do not have.
    WITH fake_tab AS
    (SELECT XMLTYPE('
    
      
      
      
      
      
      
    
    ') tab_col
      FROM dual)
    -- For 10.2 and higher use this SELECT
    SELECT a5
      FROM fake_tab,
           XMLTABLE('/Settings'
                    PASSING fake_tab.tab_col
                    COLUMNS
                    a5   VARCHAR2(10)  PATH 'Setting[@Name="A5"]/@Value');
    
    -- For 10.1 and before
    SELECT ExtractValue(tab_col, '/Settings/Setting[@Name="A5"]/@Value')
      FROM fake_tab;
    
  • Update the value of the node with particular attribute

    Hello
    Oracle 11g
    I have a table with the following structure:
    create table xml_test (test_id varchar2(12), xml_done xmltype);
    The xml_done column uses the following structure (example XML):
    <meas id="test">
      <data-elements>
        <data-element id="abc">
          <value>1</value>
        </data-element>
        <data-element id="def">
          <value>2</value>
        </data-element>
        <data-element id="ghi">
          <value>3</value>
        </data-element>
      </data-elements>
    </meas>
    I have a requirement to update the text in the < value > < / value > based on @attribute of the id in the data < item > which it is. In my code below, I'm updating the 1 value to be 'updated value'. I tried UPDATEXML without success:
    UPDATE xml_Test SET XML_DONE =
       UPDATEXML(XML_DONE,
       '/meas/data-elements/data-element/value','updated value')
       WHERE extract(xml_done, '/meas/data-elements/data-element/@id') = 'abc' 
       and test_id = 1;
    Any suggestions are appreciated, thank you very much!

    Published by: chris001 on April 25, 2013 10:14

    Hello

    The WHERE clause filters the rows in the table, not within the XML document.
    You must use an XPath predicate for this.

    SQL> create table xml_test (test_id varchar2(12), xml_done xmltype);
    
    Table created.
    
    SQL>
    SQL> insert into xml_test (test_id, xml_done)
      2  values ('1',
      3   xmlparse(document
      4  '
      5    
      6      
      7        1
      8      
      9      
     10        2
     11      
     12      
     13        3
     14      
     15    
     16  ')
     17  );
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> update xml_test
      2  set xml_done =
      3      updatexml(
      4        xml_done
      5      , '/meas/data-elements/data-element[@id="abc"]/value/text()'
      6      , 'updated value'
      7      )
      8  where test_id = '1' ;
    
    1 row updated.
    
    SQL> set long 5000
    SQL> set pages 100
    SQL> select xml_done from xml_test where test_id = '1';
    
    XML_DONE
    --------------------------------------------------------------------------------
    
      
        
          updated value
        
        
          2
        
        
          3
        
      
    
    

    If you also want to make sure that the line actually contains something to update, use XMLExists in the WHERE clause:

    SQL> roll;
    Rollback complete.
    SQL> update xml_test
      2  set xml_done =
      3      updatexml(
      4        xml_done
      5      , '/meas/data-elements/data-element[@id="abc"]/value/text()'
      6      , 'updated value'
      7      )
      8  where test_id = '1'
      9  and xmlexists(
     10        '/meas/data-elements/data-element[@id=$id]'
     11        passing xml_done
     12              , 'abc' as "id"
     13      )
     14  ;
    
    1 row updated.
    
    SQL> select xml_done from xml_test where test_id = '1';
    
    XML_DONE
    --------------------------------------------------------------------------------
    
      
        
          updated value
        
        
          2
        
        
          3
        
      
    
    

    If you are on 11.2.0.3, you can officially use XQuery Update instead.

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

  • How to access the attribute of the Parent of a child node?

    Hello

    I'm trying to accomplish something simple here, by accessing the value of the attribute of the node parent to a value of the child. I have the date given here, but I'll try to find the name of the event to the date, the name of the event or the attribute parent date.

    I have the code here, as in the following, but I kept getting #1009 error term undefined in line with parent() inside. Could someone please guide me on how to solve this problem?

    Thanks in advance.

    Alice

    "alice_data" wrote in message
    News:gr2fkh$CRE$1@forums. Macromedia.com...
    > Hi,.
    >
    > I am trying to accomplish something simple here, by accessing the parent company
    > value of the attribute of the node to a value of the child. I have the date given here,
    > but I
    > trying to find the name of the event of the day, including the name of
    > the
    > event is the attribute of date parent.
    >
    > I have the code here, as in the following, but I kept getting term #1009
    > not
    > set the error on line with parent() inside. Could someone please guide
    > me on
    > How do I fix this?
    >
    > Thanks in advance.
    >
    > Alice
    >
    > Excerpt from Actionscript:
    >
    > var resultC:XMLList;
    > resultC = searchResult... Book.schedule_item.date;
    > var resultD:XMLList;
    >
    > / * The following two lines kept giving me some bad mistakes #1009
    >
    > / / resultD = resultC.parent () .@type;
    > / / trace ("It's D" + resultD + "\n");
    >
    > / * End of error
    >
    > var resultC_collection:XMLListCollection = new
    > XMLListCollection (resultC.*);
    >
    > //Debug goal, print the string the result selected XML
    > trace ("this is the result:" + resultC);
    >
    > XML:
    >
    >
    > 20/03/2009
    > 22/03/2009
    >

    I think your problem is that resultC is an XMLList. Go to the parent company, you
    necessary to arrive at a SINGLE element in the list. Even if it is a list that contains
    a single element, which is not the same as a single element.

    Try

    Note that I do not book in your xml, so I doubt that is correct
    resultC is searchResult.child('book') .child ('schedule_item').child('date');.

    resultD resultC = [0] .attribute () .parent ('type');

    Note that the syntax that you used will break if no element has not one
    child or the attribute corresponding to your request, so I used the more verbose syntax.

    HTH;

    Amy

  • Update the values in the loop after pressing OK without a control

    Hello

    in a loop, a chain of control can be changed until the user clicks the ok button. This method works.

    But the button is also assigned to toggle with the return key.

    But now, the output is not updated any more.

    Is there a solution?

    THX

    Iliale wrote:

    Attached my VI that doesn't work here.

    If I stop the loop with key then return the s text not written

    Set the control to the value of update while typing.

Maybe you are looking for

  • Security Update for SQL SP4 KB970892

    Windows Update continually try to download and install the above without success. I ran MS Fix It which says everything is fixed, but the problem persists. When I try to install the update (showing as 0Ko & 0Minutes) update intall just locking the sc

  • Battery drain after update 5.0

    Hello Since I've updated the mobile, the battery would drain get it... not even lasting for 12 hours, even in light use. Less than 2 hours and it is already 82%. What could be the problem here? It has never drained this young before the update but I

  • Windows media player does not recognize that there is a charge cd, so still not eject cd

    How do I eject the CD?  Windows Media Player says there is not any CD loaded, so it will not eject the CD!  Help!  I need to remove the cd!

  • my mouse does not work on my laptop. Help, please

    I've only had my computer acer laptop for 5 months and my mouse has stopped working.  I normally always use a wireless mouse how it hurts my livelihood fingers touching the little bit of trim.  can anyone help me to get my touch mouse working again,

  • Bad signal wireless Dell Inspiron 1564 laptop 1397 WLAN Mini card

    I tried just about everything to improve wireless signal deteriorating strongly that the PC is moved a few feet of Belkin router.   Other members of the community of Dell have reported that switching from the driver provided to pilot Microsoft 'defau