Problem replacing  chart axis title  with &string. syntax

Apex 4.1.1
Hi,
I am having a problem replacing a chart axis title with substitution syntax &P5_MYFIELD., where P5_MYFIELD is an item with Source Type PL/SQL Function Body:
begin
return web_message.show('LASTNAME', 'dk');
end;
The Item is defined on the same Page as the chart in a different region. I can see that function is working ok, because the return value is displayed in P5_MYFIELD.
There is a second item in an other region on the same page where the source value is defined with substitution syntax &P5_MYFIELD. It also displays the expected value. But when I use the string &P5_MYFIELD. as axis title it is not displayed.
I also defined a field P0_MYFIELD on Page Zero with the same function, when I reference that with &P0_MYFIELD. as axis title on Page 5 the value is displayed correctly. I tried the same with a field on Page 1, &P1_MYFIELD. and it is displayed correctly.
I think, the chart axis title must be substituted before the item P5_MYFIELD is executing the PL/SQL function body to get its value. Can anyone tell me why?
We want to use string substitution syntax to translate all our labels in different languages. I would like to create hidden items with source type PL/SQL function body for all labels on a page and reference these values as label definitions. I would like to place them on the same page as the labels.
Thanks
Anne

I started the application again and now also the Items are not displayed, only the message 'Label not defined', so I probably did something wrong with the computation. Why the correct values were shown during the first run, I do not know, maybe i did not logout in between.
Here is the debugging information, but I cannot see any error message:
0.02844 0.00038 Computation point: Before Header 4
0.02881 0.00032 ...Perform computation of item: P5_CYCLE, type=FUNCTION_BODY 4
0.02913 0.00060 ...Performing function body computation 4
0.02973 0.00464 ...Execute Statement: declare function x return varchar2 is begin begin return web_message.show('CYCLE','de'); end; return null; end; begin wwv_flow.g_computation_result_vc := x; end; 4
0.03437 0.00042 ......Result = Wurf 4
0.03479 0.00046 ...Session State: Save "P5_CYCLE" - saving same value: "Wurf" 4
0.03526 0.00027 Processes - point: BEFORE_HEADER 4
0.03553 0.00027 ...close http header 4
0.03580
Edited by: Anne-Marie Rosa on Jun 8, 2012 10:09 AM
Now the correct value is displayed again in the P5_MYFIELD, because I had to set the item source back to PL/SQL Function body, but I am still getting the chart error and the chart is not displayed.
Edited by: Anne-Marie Rosa on Jun 8, 2012 10:17 AM

Similar Messages

  • Chart axis titles disappearing with image capture

    I have the following code which generates a png file from a
    UIComponent (a panel with a chart in it). I have two different
    methods which are called to generate the image. One is
    automatically generated every few minutes, the other generates the
    image when a user hits a button to "save" the image. Both generate
    the chart fine, except that the automated version cuts the axis
    titles off for some reason. What is going on?

    "Cr99" <[email protected]> wrote in message
    news:gklm8k$2d7$[email protected]..
    > I've made some progress. If I add this code:
    >
    > chartPanel.addEventListener(FlexEvent.CREATION_COMPLETE,
    imgExport);
    >
    >
    > // method: imgExport (Event)
    >
    >
    > public function imgExport(e:Event):void {
    > var cp:ChartPanel = e.currentTarget as ChartPanel;
    > captureImg(cp, cp.title);
    > }
    >
    > The axis gets drawn, but only on the INITAL rendering of
    the chart
    > (obviously). The
    addEventListener(FlexEvent.UPDATE_COMPLETE, imgExport)
    > does
    > not seem to register properly because the chartPanel
    doesn't ever get
    > updated,
    > just the data in the chart element whithin the panel.
    How do I get the
    > update
    > to register as an event as well?
    Maybe you need to register for the event on the chart, not
    the panel that
    creates it.

  • Problems replacing BT Hub 5 with Airport Extreme using Airport Utility 6.3.2

    Hi
    I have spent all afternoon trying to connect to BT infinity using the Airport Extreme router. I have a BT Hub 5 which is OK apart from the fact that it cannot hold more than 3 wireless devices connected at any one time and keeps dropping wi fi connections.
    I am using OSX 10.9.4 (Mavericks), Airport Utility v. 6.3.2 and a iMac 2013 base model.
    I had some instructions but these refer to the previous version of Airport Utility which is quite different from the current one, so I had to improvise a little
    This is what I have done so far:
    1. I have connected the LAN1 port from the Openreach modem to the Gigabit ethernet WAN port of Airport Extreme and I have connected my iMac ethernet to one of the Gigabit Ethernet LAN ports of Airport Extreme
    2. I have named and passworded the network and given the base station a name as required
    3. In the Internet tab I have put in the account name as [email protected] and put in a space in the password box (I also tried writing BT in it with no result). I have set the PPoE connection as  local link only.
    The problem I have is that when I click on the internet icon on Airport Utility is shows disconnected and amber light, no matter what changes I make to the Airport Extreme which has a green light. I have noticed that in the new version of Airport Utility it doesn't seem to be possible to set the PPoE connection to be always on.
    In desperation I have disconnected the Airport Extreme router and reconnected the Home Hub 5 which works.
    What do I need to do?

    Your connection is Openreach Modem -> BT Home Hub 5 -> iMAC.
    After a bit of reading - http://www.broadbandchoices.co.uk/guides/hardware/bt-home-hub
    Openreach Modem - Optical Network Terminal (ONT).
    HH5 - is a 4-port Ethernet Router/Switch
    It looks like BT may be locking the MAC addresses of the modem and hh5 with access control lists, so customers cannot connect a device to replace the HH5.
    You have an option. Connect one of the HH5 LAN ports to the WAN port of the Airport.
    Set the Airport to Bridge mode, no DHCP address distribution, Create a Wireless Network.
    You can just ignore  the HH5 SSID(s) completely and just connect to the ones you create on the Extreme. The iMac can connect to any LAN port on the Extreme or one of the remaining HH5 LAN ports.
    The only challenge you may have is, if the number of IP addresses the HH5 can allocate is limited to 4 (by BT's configuration). It can be verified using more than four (4) devices.
    If this works, then there are alternatives where a new LAN within a LAN can be created if the IP address limitation becomes an issue.

  • Problem in Storing ByteArray(Value) with String (Key) using put method

    Hello Folks:
    I wish to store a byte array with associated with a String. For this I use the put method in Java which stores put(Object key, Object value). I have written a piece of code which works but I am not able to understand it. Its not outputing what I want but something else.
    I guess, I have some ignorance.
    When I compile using
    $javac testing.java propsput.java
    $java testing
    I get the following output.
    Bytes Array:[B@1372a1a
    I understand that B stands for Bytes array. Also, If I change the String I get the same thing. If I modify the code for Integer array
    and store some Integer array I get [I@1372a1a.
    I fail to understand why I am getting this 1372a1a again and again.
    Instead where is my array.
    May be I am not using the method getValue correctly.
    Thank You very much for your help
    Regards
    //testing.java
    import java.io.*;
    import java.util.*;
    public class testing{
    public static void main(String args[]){
    propsput headers=new propsput();
    String s="Let me See how you do it";
    byte buf[]=s.getBytes();
    headers.put("Bytes Array",buf);
    //propsput.java
    import java.util.*;
    import java.io.*;
    public class propsput{
    public void put (String key, byte[] value) throws IllegalArgumentException{
    HashMap _props =new HashMap();
    _props.put(key, value);
    Set set =_props.entrySet();
    Iterator i=set.iterator();
    while(i.hasNext())
    Map.Entry me=(Map.Entry) i.next();
    System.out.print(me.getKey()+":");
    System.out.println(me.getValue());
    ----------------------------------------------------------------

    Hi Thanks for your help.
    But I have included your method in the propsput class and also using it like this in the propsput class.
    while(i.hasNext())
    Map.Entry me=(Map.Entry) i.next();
    System.out.print(me.getKey()+":");
    byte a[]=me.getValue();
    showBytes(a);
    But while compiling with javac I get the following error:
    propsput.java:24: incompatible types
    found : java.lang.Object
    required: byte[]
    byte a[]=me.getValue();
    Please let me know how should I use it so as to print my String.
    Well, its still not clear in the previous code (my First Message) that why I am gettinng "1372a1a" everytime. (Even if I change the String. When I change the array to be an Integer array I get [I@1372a1a )
    Othewise in the case of Strings I get ( [B@1372a1a)
    Bytes Array:[B@1372a1a
    Thanks and Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Chart Axis Title

    When a title is added, Flex selects a title which is oriented
    vertically and pointing downward. How can I set the orientation of
    the title, for examle, to be 180 degrees rotated?

    I don't think you can. But you can use a text box instead of the chart title.

  • OVI problem replace calender and tasks with those ...

    hi all,
    I have a brand new Nokia C2-01 that I love. But I am struggling with the OVI suite and beg for your help
    Using the latest version of OVI (3.1.1.85), I want to keep the calender on the mobile up to the date with those in my Outlook. As I mainly change my dates in Outlook, I want this calender as the only source for the mobile calender.
    here is the problem: whenever I sync the calender with the C2-01, it does not recognize the changes made in Outlook. it simply mixes the dates both calenders and creates a mess in both (same when I allow to delete dates)
    in the old nokia pc suite - which, unfortunately, does not suppert the C2-01; I already tried - there was this nice feature that first deleted all entries on the mobile phone and then but the content of the Outlook calender in there. OVI, for whatever reason, does not have it anymore
    what can I do to make this work?
    thanks a lot!
    harry

    Yes I've checked the link too. But I still can't sync the notes (and only the notes) from my Nokia E65.
    OVI Suite will happily copy all other content at start up but failes when it starts to copy the notes each time giving the "Reconnect USB...." message with error number 83860005 (if that means anything to anyone).
    After many attempts yesterday I copied the notes to my Outlook, but again I now get the same mesage and it won't update! The only thing that I can think of is that some of my notes are pretty long and that there maybe a limit to the number of characters copied befor the process terminates???

  • Replacing Window Title with other value

    Hi to everyone
    Can anyone tell me how can I replace the window title with other values...for example with active record...mean client name should appear instead of window title.
    Thanks in advance

    Here is the code I use from a simple form. You can see it handles three separate environments, Client/Server, Web separate frame, and Web inside browser window.
    I like to remove the "Oracle Forms Runtime" from the main window, only in Client/Server, you cannot remove the brackets. So you are left with - [ Your Title ]Here is the code. It can be put into either the Pre-Form or When-New-Form-Instance trigger. But note that once you do this, EVERY form must set its title, or the one you set last will show up on all your subsequent forms:
        DECLARE
          WINDOW_ID        WINDOW := FIND_WINDOW('WINDOW0');
          WTitle           Varchar2(100) := 'My Test Form';
        BEGIN
          Set_Window_Property(Window_Id,Window_State,Maximize);
          If Get_Application_Property(User_Interface) = 'WEB' then
            --Web forms:  set MDI title, erase W0 title.
            Set_Window_Property(Window_Id,Title,' ');
            Set_Window_Property(Forms_MDI_Window,Title,' ' || WTitle);
            --- Check if running SeparateFrame=False (form within browser)
            If get_window_property(forms_mdi_window,title) is null then
              --SeparateFrame=False:  running inside browser window.
              --Cannot set browser title; need to set Window0 title
              Set_Window_Property(Window_Id,Title,' ' || WTitle);
            end if;
          Else -- client/server forms
            Set_Window_Property(Forms_MDI_Window,Title,' ');
            Set_Window_Property(Window_Id,Title,' '||WTitle||' ');
          End if;
        END;

  • Chart with vertical Y-axis title having horizontal letters?

    I've edited the XML on the Chart Attributes page but I don't find atrtributes to rotate the y-axis title (<text>TITLE</text>) nor the letters themselves in the title. What I'd like is something very close to
    T
    I
    T
    L
    E
    But what I get is a horizontal title rotated -90 degrees. I've looked at lots of Anychart documentation but don't find anything that seems to fit with the XML already given on the Chart Attributes page. I've seen the "rotate" attribute but I don't know where it would go and even then, I'm sure it only rotates the title as a unit and not the individual letters.
    Howard

    That makes sense. So I thought maybe this following script
    would work, but it doesn't. Any ideas?
    onClipEvent (load)
    xcenter=400;
    speed=1/200;
    onClipEvent (enterFrame)
    var distance=xcenter-_root._xmouse;
    _x+=(distance*speed);
    if (_x > 0) _x=-1550;
    if (_x < -1550) _x=0;
    if (_ymouse < 450) speed=1/200;
    else
    speed=1/80;
    }

  • Problem with Font Embed for vertical axis title

    Dear Friends,
    I have embedded a truetype arial font to rotate the vertical axis title, It works fine in xcelsius design mode(canvas) , but when i click preview button i coudln't see the vertical axis title.
    Should i change any font settings in xcelsius? or Should i have licence to my fonts? Please help me to fix this issue.
    Thanks in advance,
    Manimaran.

    cannot be rendered...that's odd. But becoming unrendered is standard. When you render the text on top of the video it makes one renderd file out of the two layers, If you change one of the layers, then the rendered file is no longer current and it has to make a newly rendered file with the current settings (in this case the altered text.) It's no different than if you were to change a setting on a filter, even one tiny notch, or change the duration of a transition. If you want to limit the amount of the render, cut the bottom clip at the beginning of the text clip and the end and it will only need to re-render the area overlapped by the text.

  • Financial Reporting Studio - Chart 2nd Axis Title

    I have a Financial Reporting Studio (9.3.1) report including a chart (combo) and have "checked" secondary axis and subsequently set a secondary axis title. Upon opening the report the secondary axis title does not show. The font color is black and the font angle is set to 0. Is this a bug or am I missing setting a property or something? If this is a bug is there a feasible workaround? Thanks in advance for any assistance.

    This has turned out to be a rather obscure 'problem or feature'. Primary axis titles can include multiple words, single words or special characters and do not require single quotes around the title. Secondary axis title on the other hand require single quotes around the string whether it is a single word, multiple words or contains special characters. This is not contained in the Financial Reporting Studio documentation.

  • Little problem with Strings.

              I have an little problem with Strings, i make one comparision like this.
              String nombre="Javier";
              if( nombre.equalsIgnoreCase(output.getStringValue("CN_NOMBRESf",null)) )
              Wich output.getStringValue("CN_NOMBRESf",null) is "Javier" too, because I display
              this before and are equals.
              What I do wrong?.
              

    You are actually making your users key in things like
    "\026"? Not very user-friendly, I would say. But
    assuming that is the best way for you to get your
    input, or if it's just you doing the input, the way to
    change that 4-character string into the single
    character that Java represents by '\026', you would
    use a bit of code like this:char encoded =
    (char)Integer.parseInt(substring(inputString, 1),
    16);
    DrClap has the right idea, except '\026' is octal, not hex. So change the radix from 16 to 8. Unicode is usually represented like '\u002A'. So it looks like you want:String s = "\\077";
    System.out.println((char)Integer.parseInt(s.substring(1), 8));Now all you have to do is parse through the String and replace them, which I think shouldn't be too hard for you now :)

  • Problem with String to Int conversion

    Dear Friends,
    Problem with String to Int conversion
    I am having a column where most of the values are numeric. Only 4 values are non numeric.
    I have replaces those non numeric values to numeric in order to maintain the data type.
    CASE Grade.Grade  WHEN 'E4' THEN '24'  WHEN 'E3' THEN '23'  WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' ELSE Grade.Grade  END
    This comes the result as down
    Grade
    _0_
    _1_
    _10_
    _11_
    _12_
    _13_
    _14_
    _15_
    _16_
    _17_
    _18_
    _19_
    _2_
    _20_
    _21_
    _22_
    _23_
    _24_
    _3_
    _4_
    _5_
    _6_
    _7_
    _8_
    _9_
    Refresh
    Now I want to convert this value to numeric and do some calculation
    So I changed the formula as below
    cast (CASE Grade.Grade  WHEN 'E4' THEN '24'  WHEN 'E3' THEN '23'  WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' ELSE Grade.Grade  END as INT)
    Now I get the following error
    View Display Error
    _     Odbc driver returned an error (SQLExecDirectW)._
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    _State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1722, message: ORA-01722: invalid number at OCI call OCIStmtFetch. [nQSError: 17012] Bulk fetch failed. (HY000)_
    SQL Issued: SELECT cast ( CASE Grade.Grade WHEN 'E4' THEN '24' WHEN 'E3' THEN '23' WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' ELSE Grade.Grade END as Int) saw0 FROM "Human Capital - Manpower Costing" WHERE LENGTH(CASE Grade.Grade WHEN 'E1' THEN '20' WHEN 'E2' THEN '21' WHEN 'E3' THEN '22' WHEN 'E4' THEN '23' ELSE Grade.Grade END) > 0 ORDER BY saw_0_
    Refresh
    Could anybody help me
    Regards
    Mustafa
    Edited by: Musnet on Jun 29, 2010 5:42 AM
    Edited by: Musnet on Jun 29, 2010 6:48 AM

    Dear Kart,
    This give me another hint, Yes you are right. There was one row which returns neither blank nor any value.
    I have done the code like following and it works fine
    Thanks again for your support
    Regards
    Code: cast (CASE (CASE WHEN Length(Grade.Grade)=0 THEN '--' ELSE Grade.Grade END) WHEN 'E4' THEN '24' WHEN 'E3' THEN '23' WHEN 'E2' THEN '22' WHEN 'E1' THEN '21' when '--' then '-1' ELSE Grade.Grade END as Int)

  • Problems with INSERT  syntax ?

    Dear programmers,
    I am have a problem with INSERT Syntax,
    I have a table with 11 fields out of which one is auto_increment field(id), Now my problem is, Do i need to specifiy autoincrement field in INSERT statement. I dont thinks ?
    My Insert statement is as follows ,
    int result = st.executeUpdate("insert into tablename"
              +"(name, user_group, lage, preis, anmerkung, exp_uri, timestamp, nummer)"
              +"values +Objekt+"','"+Kategoriekey+"','"+Lage+"','"+Preis+"','"+Anmerkung+"','"+Dateiname+"','"+date.getTime()+"','"+ObjektID+"')");
    thanks in advance
    bye

    The answer to your question is maybe. Each database handles autoincrements differently. What database are you using?
    I also noticed that you are doing an insert using the standard Statement. You should look into using PreparedStatements for performance reasons and issues such as single quotes from within a string.
    Matt

  • Adding custom axis titles for Bubble Chart

    How to add custom axis titles (for each group of axis values) as shown in the attached figure to a bubble chart ?
    - Sen

    I'm trying to do essentially the same thing with a LineChart and I think I've got part of it figured out.
    I've subclassed CategoryAxis and overridden reduceLabels to return only certain labels (the "group" labels). Then I create a new axis by adding a LineSeries to the chart's <series> element with the new axis within the LineSeries. Then I have an AxisRenderer in the chart's horizontalAxisRenderers tag that refers to the new axis from within the LineSeries.
    Subclassed axis:
        public class MonthCategoryAxis extends CategoryAxis
            public function MonthCategoryAxis()
                super();
            override public function reduceLabels(intervalStart:AxisLabel, intervalEnd:AxisLabel):AxisLabelSet
                var currentLabels:AxisLabelSet = this.getLabels(0); // Param is ignored by super class
                var newLabels:Array = []; // Labels to keep
                var label:AxisLabel;
                var previousLabel:AxisLabel;
                for (var i:int = 0; i < currentLabels.labels.length; i++)
                    label = currentLabels.labels[i];
                    if (i == 0) // Keep the first label
                        newLabels.push(label);
                    else if (label.value.month != previousLabel.value.month)
                        // Only keep a label if the previous label has a different month
                        newLabels.push(label);
                    previousLabel = label;
                // Return a new AxisLabelSet with just the labels we want
                var newLabelSet:AxisLabelSet = new AxisLabelSet();
                newLabelSet.labels = newLabels;
                return newLabelSet;
    New series to create the subclassed axis in.
                <mx:LineSeries>
                    <mx:horizontalAxis>
                        <charts:MonthCategoryAxis id="MonthAxis" labelFunction="calendarMonthAxisLabelFunction"/>
                    </mx:horizontalAxis>
                </mx:LineSeries>
    The AxisRenderer. canDropLabels must be "true".
                <mx:AxisRenderer axis="{MonthAxis}" canDropLabels="true" showLine="false" tickPlacement="none">
                    <mx:labelRenderer>
                        <mx:Component>
                                <mx:Label width="100%">
                                <mx:Script>
                                    <![CDATA[
                                    override public function set data(axisLabel:Object):void
                                        this.text = outerDocument.getMonthLabel(axisLabel.value);
                                    ]]>
                                </mx:Script>
                                </mx:Label>
                        </mx:Component>
                    </mx:labelRenderer>
                </mx:AxisRenderer>

  • Problem replacing Null nodes with real values in XML documents...

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    Our friends in Java land are insisting on passing data between Java and PL/SQL using fairly small XML documents (don't ask). I then need to extract the input parameter values and pass them, on to the stored procedures that actually do the work. These return a result which needs to be returned to the java layer in the output XML document.
    Here is a cut down version of the input XML...
    <ParameterList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Parameter>
    <Id>1</Id>
    <Result xsi:nil="true"/>
    </Parameter>
    <Parameter>
    <Id>2</Id>
    <Result xsi:nil="true"/>
    </Parameter>
    </ParameterList>
    and this is an example of what I am expected to return...
    <ParameterList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Parameter>
    <Id>1</Id>
    *<Result>SUCCESS</Result>*
    </Parameter>
    <Parameter>
    <Id>2</Id>
    *<Result>WARNING</Result>*
    </Parameter>
    </ParameterList>
    i.e. I am expected to replace the value of the Result node with a string indicating the succes or otherwise of the underlying PL/SQL process.
    I am extracting the input values using the DBMS_XMLDOM functions and naively assumed that DBMS_XMLDOM.SETNODEVALUE could be used to update the value in the Result node - It didn't work so I resorted to reading the documentation which revealed that it will not work for a null node.
    Am I going to have to use XSLT to generate the output XML from the Input and incorprate the result? Or is there a simpler way?
    I have used XSLT in Oracle before and still have the nervous tick...

    Thanks A Non,
    With your suggestion and a bit of help from the w3schools.com xml dom tutorial I eventually managed to work out how to do this.
    Here is the code (with all my debug stuff in so it looks worse than it is...)
    create or replace
    PROCEDURE ExtractXMLValues (p_inXml IN CLOB ) IS
    l_string VARCHAR2(4000);
    l_value VARCHAR2(4000);
    l_DOM_doc dbms_xmldom.DOMDocument;
    l_DOM_node dbms_xmldom.DOMNode;
    l_new_DOM_node dbms_xmldom.DOMNode;
    l_new_element dbms_xmldom.DOMElement;
    l_new_DOM_nodevalue dbms_xmldom.DOMNode;
    l_value_Node dbms_xmldom.DOMNode;
    l_parameter_Node dbms_xmldom.DOMNode;
    --l_DOM_nodelist    dbms_xmldom.DOMNodeList;
    l_Result_DOM_node dbms_xmldom.DOMNode;
    BEGIN
    l_DOM_doc := dbms_xmldom.newDomDocument(p_inXml);
    l_DOM_node := dbms_xmldom.makeNode(l_DOM_doc);
    dbms_xmldom.writeToBuffer(l_DOM_node, l_string);
    dbms_output.put_line('1 ' || l_string);
    l_parameter_node := dbms_xslprocessor.selectSingleNode(l_DOM_node,'//Parameter');
    -- get the current values in the XML document for Id and Result
    l_Result_DOM_node := dbms_xslprocessor.selectSingleNode(l_DOM_node,'//Id');
    l_value_Node := dbms_xmldom.getFirstChild(l_Result_DOM_node);
    l_value := dbms_xmldom.getnodevalue(l_value_Node);
    dbms_xmldom.writeToBuffer(l_Result_DOM_node, l_string);
    dbms_output.put_line('2 ' || l_string || ' : ' || l_value);
    l_Result_DOM_node := dbms_xslprocessor.selectSingleNode(l_DOM_node,'//Result');
    l_value_Node := dbms_xmldom.getFirstChild(l_Result_DOM_node);
    l_value := dbms_xmldom.getnodevalue(l_value_Node);
    dbms_xmldom.writeToBuffer(l_Result_DOM_node, l_string);
    dbms_output.put_line('3 ' || l_string || ' : ' || l_value);
    -- create new Result node
    l_new_DOM_node      := dbms_xmldom.makenode(dbms_xmldom.createElement(l_DOM_doc, 'Result'));
    dbms_xmldom.writeToBuffer(l_new_DOM_node, l_string);
    dbms_output.put_line('4 New node : ' || l_string);
    -- create a value for it
    l_new_DOM_nodevalue := dbms_xmldom.makenode(dbms_xmldom.createtextnode(l_DOM_doc, 'SUCCESS'));
    dbms_xmldom.writeToBuffer(l_new_DOM_nodevalue, l_string);
    dbms_output.put_line('5 New node value : ' || l_string);
    -- add the value to the new Result node
    l_new_DOM_nodevalue := dbms_xmldom.appendchild(l_new_DOM_node,  l_new_DOM_nodevalue);
    dbms_xmldom.writeToBuffer(l_new_DOM_node, l_string);
    dbms_output.put_line('6 New node : ' || l_string);
    -- replace the old node with the new one
    l_Result_DOM_node := dbms_xmldom.replaceChild(l_parameter_node, l_new_DOM_node, l_Result_DOM_node);
    dbms_xmldom.writeToBuffer(l_parameter_node, l_string);
    dbms_output.put_line('6 parameter node : ' || l_string);
    dbms_xmldom.writeToBuffer(l_DOM_node, l_string);
    dbms_output.put_line('7 Updated document ' || l_string);
    dbms_xmldom.freeDocument(l_DOM_doc);
    END ExtractXMLValues;
    and the output...
    1 <ParameterList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Parameter>
    <Id>1</Id>
    <Result xsi:nil="true"/>
    </Parameter>
    </ParameterList>
    2 <Id>1</Id> : 1
    3 <Result xsi:nil="true"/> :
    4 New node : <Result/>
    5 New node value : SUCCESS
    6 New node : <Result>SUCCESS</Result>
    6 parameter node : <Parameter>
    <Id>1</Id>
    <Result>SUCCESS</Result>
    </Parameter>
    7 Updated document <ParameterList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Parameter>
    <Id>1</Id>
    *<Result>SUCCESS</Result>*
    </Parameter>
    </ParameterList>
    One question, why do the dbms_xmldom functions return the Old value? I was expecting the returned value to be the updated node.
    Edited by: Lone voice on May 14, 2009 11:24 AM

Maybe you are looking for

  • Using Java Model In Web Dynpro

    Hi I have  a Java Bean. I have created a JAR file for this DC. A public Part si created for this DC and the JAr file has been added to it. In the Web Dynpro DC, i add it in the used DCs. But when i go for Add Used Components, iam not able to see it t

  • How to get the document structure with the document number"?"

    Hello experts, I have now a big trouble. There is a document with the number '?' in our syste. And for this document a document structure was builded. Now I can't acess the document structure, because the system doesn't accept '?' as a document numbe

  • BI Reports Performance

    Hi All, Very Good Morning...... In my client already implemented Production sever in BI, write know getting problem for BI reports open and running it's taking more time..around 10 to 15 mins... In my client following this not build a. Aggregates ia

  • Attaching binary arrays to a menu ring

    I have been playing around with the menu rings and can't seem to get it to do the function that I want.  I am looking to making a pull-down menu for some user options for different resoultion modes for an intrument.  So for example one option will be

  • Ora- shared memory segment

    Hello, gurus! I can connect this way: oracle@mypc sqlplus sys/sys1@mydatabase While trying to connect this way: oracle@mypc sqlplus sys/sys1 I am getting an error: ORA-01034: Oracle not available ORA-27123: unable to attach to shared memory segment L