How to use a variable to browse the XML data

My chart has xml data that looks like this:

< getViewResponse >

< getViewResult >

< DocumentElement >

< ColumnChart >

< month >

"Dec".

< NetIncome >

1000

< ColumnChart >

etc.

etc.

the following lines in actionscript work perfectly for the table:

resultxml = event.result.getViewResult.DocumentElement.ColumnChart as XMLList

chart data provider

_chartDP = new XMLListCollection (resultxml);

The last argument of Colum graphic in DocumentElement.ColumnChart will change. I want to make this variable instead.

I tried DocumentElement +'. ' + this. [ColumnChart] but I get an error telling me that the property does not exist.

The following almost works:

event.result.getViewWithTitlesResult.DocumentElement. *.

but my card has a series of additional data empty.

How can I adjust the latter to a variable?

If the data that currently say you XMLList has a single point, just cast to XML with XML (myXMLLIST) or "myXMLLIST in Xml format.

If this post answers your question or assistance, please mark it as such.

Tags: Flex

Similar Questions

  • How to use a variable to specify the color when you set an attribute

    Hello

    We use BI Publisher (OPE) embedded in the e-Business Suite. So we are actually on version 5.6.3.

    I'd like to conditionally set the cell background color attribute in a table by using a variable reference. something like this (the sense in which I tried):

    <? attribute@InContext:background-color;$exEmpBGColor? >
    <? attribute@InContext:background-color;' {$exEmpBGColor}'? >

    The 'standard' to do this way:
    <? attribute@InContext:background-color; '#CCCCFF'? >

    Can someone please help? (i.e. is it even possible?)

    http://winrichman.blogspot.com/2008/09/how-to-set-dynamic-color-based-on-XML.html

    http://winrichman.blogspot.com/search/label/formatting

    http://winrichman.blogspot.com/2009/09/column-formatting.html

  • How to use a variable out of the nested &lt; fx:component &gt; tag?

    Hi flex community.

    I'm trying to reach the House of the label of the component variables. But I am still getting this error when I press the button:

    Error #1009: Cannot access a property or method of a null object reference.

    Here is my code:

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:WindowedApplication ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" >
    < fx:Script >
    <! [CDATA]

    private var newWindow:MyNativeWindow;
    public var home: String = "wooden house";

    private function openNewWindow (): void {}
    If (newWindow! = null) newWindow.close ();
    newWindow = new MyNativeWindow();
    newWindow.width = 200;
    newWindow.height = 200;

    Try
    {
    newWindow.open ();
    }
    catch (err: error)
    {
    trace (Err.message);
    }
    }

    []] >
    < / fx:Script >

    < fx:Declarations >
    < fx:Component className = "MyNativeWindow" >
    < mx:Window horizontalAlign = "center" verticalAlign = "middle" backgroundColor = "blue" >
    < fx:Script >
    <! [CDATA]
    protected function button1_clickHandler(event:MouseEvent):void
    {
    trace (outerDocument.House);
    }
    []] >
    < / fx:Script >
    < mx:Button label = "yes" click = "button1_clickHandler (event)" / > "
    < mx:Button label = "close" click = "this.close ()" / >
    < / mx:Window >
    < / fx:Component >
    < / fx:Declarations >

    < s:VGroup horizontalCenter = "0" top = "10" >
    < s:Button label = "open a new fenΩtre" color = "black" click = "openNewWindow ()" / >
    < / s:VGroup >
    < / s:WindowedApplication >

    Import mx.core.FlexGlobals;

    protected function button1_clickHandler(event:MouseEvent):void

    {

    trace (FlexGlobals.topLevelApplication.House);

    }

    now?

  • How to use bind variable to update the DB 11 GR 2 access data

    Hello Experts,

    By DB version 11 GR 2

    Operating system Windows Server 2012 - 64 bit

    I want to update some data base record Access to oracle with database link. Here is my SQL, which works.

    UPDATE Transaction@DB_LINK
    SET "WorkCode"=1
    WHERE "WorkCode"=0; 
    

    But, I need to change that to

    UPDATE Transaction@DB_LINK
    SET "WorkCode"=1
    WHERE "DateTime"=:VARIABLE_DATE_TIME; 
    

    and a 2nd does not.

    Any code help or example?

    Ask2Learn

    Hello

    Use DBMS_HS_PASSTHROUGH

    try something of

    DECLARE
      c       BINARY_INTEGER;
      nr      NUMBER;
    BEGIN
    
      c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@DB_LINK;
    
      DBMS_HS_PASSTHROUGH.PARSE@ATTD_ENVOYF(c,'UPDATE Transaction@ATTD_ENVOYF SET "WorkCode"=1
      where "DateTime" = '||''||VARIABLE_DATE_TIME||'');
      nr:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@DB_LINK(c);
      DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@DB_LINK(c);
    
    END;
    

    Hope this helps

    Hamid

  • How to use substitution variables, as in Microsoft Word using Hyperion Smart view

    Can we use the Substitution Variables to copy data points and cool off in Microsoft Word? I tried and it does not dynamically (copy the data points only copies what was in excellent cell right there). It copies only the static value of this variable for this cell. I want to use dynamically in Word so that if I change the value of this variable in Essbase, it is updated in Word on refresh. Any idea?

    We need this notification feature in microsoft word and keep using data points every year (instead of copy the cells of excellent on new)

    Any help or suggestion is appreciated.

    Thank you

    You may not use substitution variables, as with the copy data points. I tried a while back (after 111.1.2.1.102) and it wouldn't work.  I checked with Oracle development and they said that I is not available

  • How to use windows search to search the contents of a bunch of files with random names / extensions?

    How to use windows search to search the contents of a bunch of files with random names / extensions? Plain txt files say 1,000 with random name of file extensions?

    You can always search within those, but you need to add extensions to the file system so that it knows to look inside these files.  You said that you have a lot, so it's perhaps tedious.  Here's How to search within several types of files.

    One thing you could try is rather to make a copy of this file, rename all the files to the same extension (even an extension false for example something.bill) and perform your search on this band.  Just an idea.

  • How to use windows update with browser firefox4

    How to use windows update with browser firefox4

    You MUST use Internet Explorer to access http://windowsupdate.microsoft.com.

  • How to use a form created on the Capture of a vector

    People, I'm having difficulties to find out how to use a form created on the Capture of a vector. For example, I open Illustrator on my desk and, although the form is saved in a creative library of clouds, I can't find how to open this archive as a vector. I tried everything from capture, but then I can just export the shape as a bitmap image. I'm really lost on this.

    Hello Cristina,

    In Illustrator, simply drag the shape of your library panel in an open document. That's all there is to it.

    Mike

  • How to use setViewportBounds (Bounds value) to the ScrollPane?

    How to use setViewportBounds (Bounds value) to the ScrollPane? This method is, visually, what for? I tried to put a specific Bounds.minY to have a precise scrolling in the axis Y in vain. I use the setVvalue() method to scroll, but it is not convenient to exactly locate a position in the coordinates of the node content listed in the scroll pane.

    The viewportBounds are the limits of the viewport (i.e., the visible part of the content) in the scrolling pane itself, if I understand correctly. The way to access programmatically is by setting the vValue property.

    I have not tried, but if you do something like

    scrollPane.setVmin(0);
    DoubleBinding vmax = new DoubleBinding() {
         { super.bind(scrollPane.viewportBounds(), content.heightProperty()); }
         @Override
         public double computeValue() {
            return content.getHeight() - scrollPane.getViewportBounds().getHeight() ;
         }
    };
    scrollPane.vmaxProperty().bind(vmax);
    

    to configure your component to scroll, then you can call setVvalue (...) and just pass a location of coordinates for your content node. This assumes that your content node is a region or a control; you will have to perhaps a little logic in the method computeValue() to deal with the cases where the display window is greater than the additional content.

  • How to extract data using the xml data type

    Hello
    I tried the following example using the xml data type, but not the desired output.
    could you please correct the query in order to obtain the necessary
    CREATE TABLE TEST.EMP_DETAIL
    (
      EMPNO       NUMBER,
      ENAME       VARCHAR2(32 BYTE),
      EMPDETAILS  SYS.XMLTYPE
    )
    Insert into EMP_DETAIL
       (EMPNO, ENAME, EMPDETAILS)
     Values
       (7, 'Martin', XMLTYPE('<Dept>
      <Emp Empid="1">
        <EmpName>Kevin</EmpName>
        <Empno>50</Empno>
        <DOJ>20092008</DOJ>
        <Grade>E3</Grade>
        <Sal>3000</Sal>
      </Emp>
      <Emp Empid="2">
        <EmpName>Coster</EmpName>
        <Empno>60</Empno>
        <DOJ>01092008</DOJ>
        <Grade>E1</Grade>
        <Sal>1000</Sal>
      </Emp>
      <Emp Empid="3">
        <EmpName>Samuel</EmpName>
        <Empno>70</Empno>
        <DOJ>10052008</DOJ>
        <Grade>E2</Grade>
        <Sal>2530</Sal>
      </Emp>
      <Emp Empid="4">
        <EmpName>Dev</EmpName>
        <Empno>80</Empno>
        <DOJ>10032007</DOJ>
        <Grade>E2</Grade>
        <Sal>1200</Sal>
      </Emp>
    </Dept>
    '));
    I need to get the record for Empid = '2'
    Then tried the following query with no expected o/p
    SELECT a.empno,a.ename,a.empdetails.extract('//Dept/Emp/EmpName/text()').getStringVal() AS "EmpNAME",
         a.empdetails.extract('//Dept/Emp/Empno/text()').getStringVal() AS "EMPNumber",
          a.empdetails.extract('//Dept/Emp/DOJ/text()').getStringVal() AS "DOJ",
          a.empdetails.extract('//Dept/Emp/Grade/text()').getStringVal() AS "Grade",
          a.empdetails.extract('//Dept/Emp/Sal/text()').getStringVal() AS "Salary",
          a.empdetails.extract('//Dept/Emp[@Empid="2"]').getStringVal() AS "ID",
          a.empdetails.extract('//Dept/Emp[EmpName="Coster"]').getStringVal() AS "CHK"
         FROM emp_detail a 
         where empno=7  
               AND a.empdetails.existsNode('//Dept/Emp[@Empid="2"]') =1
    Thank you...

    Karthick_Arp wrote:
    I'm not very good at that... But if your XML code should not be more like this

    SQL> Insert into EMP_DETAIL
    2     (EMPNO, ENAME, EMPDETAILS)
    3   Values
    4     (7, 'Martin', XMLTYPE('
    5    
    6      1
    7      Kevin
    8      50
    9      20092008
    10      E3
    11      3000
    12    
    .. cut ..
    

    Why? It is perfectly valid to data as attributes rather than elements and also quite common for key values.

  • How to build a unique identifier of the XML?

    I have a fairly simple XML structure as in the example below. I'm storing XML data in XMLTYPE table without changes and the construction of a set of views for XML SQL data in addition to this access. It is very basic and indicated for example in Breaking Up several levels of XML data: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e23094/xdb03usg.htm#autoId58

    The problem is that the XML data is missing an identifier for the order items that could be used as a primary key when document splitting audit (items) relational perspective.

    Currently I intend to construct such an identifier by combining a high level (which is unique) identifier to the ordinal position of the elements of order. Unfortunately I do not know how to do (see below). My second question is if it's a good idea at all or if something's substitute.

    I'm under Oracle 11.2.0.1.0.
    create or replace view orders_view as
    with xmldata as (select xmltype('<batch id="batch1">
    <order>
      <orderer>Joe</orderer>
      <items>
        <item>Standard widget</item>
      </items>
    </order>
    <order>
      <orderer>Jack</orderer>
      <items>
        <item>Regular widget</item>
        <item>Cooling widget</item>
      </items>
    </order>
    <order>
      <orderer>John</orderer>
      <items>
        <item>Super+ widget</item>
        <item>Super+ widget</item>
      </items>
    </order>
    </batch>') object_value from dual)
    select x1.batchid,
           (select x1.batchid || '-' || x2.orderid from dual) as orderid,
           x2.orderer_name,
           x2.nbr_of_items
    from xmldata,
    xmltable('$doc/batch' passing xmldata.object_value as "doc"
             columns
             batchid varchar2(10) path '@id',
             orderlist xmltype path 'order') x1,
    xmltable('/order' passing x1.orderlist
             columns
             orderid varchar2(20) path '"?"', /* What to put here to get expected results ? */
             orderer_name varchar2(10) path 'orderer',
             nbr_of_items number path 'count(items/item)') x2;
    
    column batchid format a10
    column orderid format a10
    column orderer_name format a10
    
    select * from orders_view;
    Expected results:
    BATCHID    ORDERID    ORDERER_NA NBR_OF_ITEMS
    ---------- ---------- ---------- ------------
    batch1        batch1-1   Joe                   1
    batch1        batch1-2   Jack                  2
    batch1        batch1-3   John                  2
    Where ORDERID is built like BATCHID + '-' + the position of the < order > element in the batch.

    Hello

    The clause for ORDINALITE does exactly what you want:
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/functions253.htm#SQLRF06232

    select x1.batchid,
           x1.batchid || '-' || x2.orderid as orderid,
           x2.orderer_name,
           x2.nbr_of_items
    from xmldata,
    xmltable('$doc/batch' passing xmldata.object_value as "doc"
             columns
             batchid varchar2(10) path '@id',
             orderlist xmltype path 'order') x1,
    xmltable('/order' passing x1.orderlist
             columns
             orderid for ordinality,
             orderer_name varchar2(10) path 'orderer',
             nbr_of_items number path 'count(items/item)') x2
    ;
    
  • How to write the xml data to a file

    Hi all

    We have a requirement of writing, the xml data in a file in the data directory in the server. Generate xml data using the SQL below.

    SELECT XMLELEMENT ("LINE",
    XMLELEMENT ('CELL', xmlattributes (LIKE 'column name', ' EBIZCZMDL_01'), inventory_item_id).
    XMLELEMENT ('CELL', xmlattributes (AS 'Name of COLUMN', ' EBIZFFMT_01'), attribute29).
    XMLELEMENT ('CELL', xmlattributes ("COMMON" AS "Name of COLUMN"), inventory_item_id |) '' || attribute29 | "ITM")
    "XMLDATA" AS "PRODUCE")
    OF apps.mtl_system_items_b

    When we try to write this query data in a file using UTL_FILE.put_line, the script gives error
    PLS-00306: wrong number or types of arguments in the call to "PUT_LINE '.

    If anyone can help pls...

    Thanks in advance

    The call to dbms_xslprocessor.clob2file is in the cursor for the specific SQL loop.

    This is obviously the problem.
    The file is replaced with each iteration.

    Do not use a cursor at all.

    See the example below, it should be close to your needs:

    DECLARE
    
       l_file_name      VARCHAR2 (30);
       l_file_path      VARCHAR2 (200);
    
       l_xmldoc         CLOB;
    
    BEGIN
    
       l_file_path := '/usr/tmp';
       l_file_name := 'TEST_XREF4.xml';
    
       SELECT XMLElement("xref", xmlattributes('http://xmlns.oracle.com/xref' as "xmlns"),
                XMLElement("table",
                  XMLElement("columns",
                    XMLElement("column", xmlattributes('EBIZFFMT_01' as "name"))
                  , XMLElement("column", xmlattributes('COMMON' as "name"))
                  , XMLElement("column", xmlattributes('EBIZQOT_01' as "name"))
                  , XMLElement("column", xmlattributes('EBIZCZMDL_01' as "name"))
                  , XMLElement("column", xmlattributes('EBIZCZGOLD_01' as "name"))
                  ),
                  XMLElement("rows",
                    XMLAgg(
                      XMLElement("row",
                        XMLElement("cell", xmlattributes('EBIZCZMDL_01' AS "colName"), inventory_item_id)
                      , XMLElement("cell", xmlattributes('EBIZFFMT_01' AS "colName"), attribute29)
                      , XMLElement("cell", xmlattributes('COMMON' AS "colName"), inventory_item_id || '' || attribute29 || 'ITM')
                      )
                    )
                  )
                )
              ).getClobVal()
       INTO l_xmldoc
       FROM apps.mtl_system_items_b
       WHERE attribute29 IS NOT NULL
       ;
    
       dbms_xslprocessor.clob2file(l_xmldoc, l_file_path, l_file_name, nls_charset_id('UTF8'));
    
    END;
    /
    

    BTW, the directory in DBMS_XSLPROCESSOR parameter. CLOB2FILE must be an Oracle Directory object, not a literal path.

  • Update the XML data store

    Hello experts,

    I've created an interface when an xml file is reversed in the form of a source data store. Xml data are pumped into a target of oracle db. All this goes well.

    I'm creating a scenario where I get an xml file from a ftp server on a daily basis (with agent). This new xml file has the same structure as that already used in the interface. The question is: How can I update the data in the xml data store?

    I tried to replace the original xml file, but it does not work and cdc does not seem to apply here, I searched for quite a while now.

    Thank you very much!

    Yves

    Hello

    See if that helps
    XML for the interface Oracle even insert County regardless of input XML file

    Thank you
    Fati

  • R12 payment process Request Status Report add additional columns to the XML data.

    In 11i, we had modified the preliminary report of payment to include additional columns (distributions of invoice). R12, this report is obsolete and Oracle introduced a new report 'Payment process Request Status Report'. This query uses BI Publisher to generate the release of the final report. I can't edit the template for the output XML to the report has not
    contains data for distribution invoice account. We need to know how we can modify the XML data to include additional columns.

    For the disbursement of funds (payment instructions file) process, Oracle provides extensibility IBY_FD_EXTRACT_EXT_PUB package to build the custom XML element structure that can be added to the extracted XML payment generated by the Oracle payments. Do we have something similar to this report? Are there other options available?

    Thank you

    Hello

    The same "IBY_FD_EXTRACT_EXT_PUB" package also works for the payment request process status report. Please add the logic to get the distribution data in this package, and you'll see the new XML tags in this report also.

    I hope this helps.
    Serge

  • loading the XML data in password protected URLs

    Using Flash Professional 8...

    I have an application that loads the XML data in remote servers.

    It works fine, except that the company provide me with the data decided to protect their files. It seems they use IIS or .htaccess protection of password for the style.

    I have a valid user name and password, but I do not know how to integrate those when calling the URL to authenticate.

    I think I need to use loadVars objects, but I've not been able to find examples where people use this method for this style of security. I see most of the examples deal with submit a name of user and password on a URL and then receive a response.
    The security of this type does not follow this pattern. The URL is blocked unless a name of user and password is entered in a box even before see pages.

    LoadVars to use for this?

    If Yes, are there an example or something that I can see?

    If this is not the case, how Flash authenticates this style of security?

    This seems like a fairly standard issue, and I am puzzled that I can't yet find other examples. Am I stupid?

    Thank you
    Joe

    Maybe it helps.
    http://www.martijndevisser.com/blog/article/using-HTTP-authorization-headers

Maybe you are looking for

  • HDD making noise

    Hello My hard drive makes a 'click '. Checked the activity monitor and there is nothing strange going on. How can I solve this? Thank you

  • SD card will not rise unless I have restart

    My SD card will not rise unless I restart the computer, can someone help?

  • You are able to load the plugin settings after that put 10.1.1 to level?

    After the last update of GB that I am not able to load the settings of plug-in via .pst files - they are greyed out in the standard dialog box - and they are still same after copy them in the standard folder (under /Music). I am able to save the new

  • Folder path with all of the listed files dialog box

    Hello Someone here is an ActiveX control, or a workaround to have a folder of dialogue path which also shows the files in the folders? File LV dialog box displays only records if limit you the selection of records. Ideally, the browser would look lik

  • Optical Spectrum Analyzer

    Hi all I have problems relating to the control of optical spectrumAnalyzer of... I followed exactly the commands in the programming but user guideIt turns out that a lot of mistakes. Yes, is there anyone here have someexperiences with controller OSA?