Newbie: Problem populating DataGrid from CF created xml

Hi,
I'm new to Flex and I'm working my way through the chapter 'Using HTTPService components' so I can populate a DataGrid from CF created xml.
The Document on Live docs works only partially for me - ColdFusion section under (http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html#195458).
The insert part works and I'm able to write to the database without a problem, but the DataGrid is not being populated and stays empty? I'm working locally, so there shouldn't be any cross-domain issue?
Hope someone is able to point into the right direction.
Thanks.

Use the debugger and see if any data is received from the server on request ( I'm assuming that somewhere, you are making a request to the server that should read some data ). If data is received then you are not populating the DataGrid correctly ( most likely you are not giving the correct path to the elements that should appear in the DataGrid ); else, the server-side script is not reading any data and you should check why.

Similar Messages

  • Problems with datagrid from FXP, I did something, but I got problems with mysql...

    Good night My name is Michel.
    Right!, I have a challenge to myself. that is to relearn flash builder, I have a few years without touching it or anything.
    But I still have the ease of get these new things added.
    Going straight to the point, as I am Brazilian, some things from the file will be in Portuguese, I hope you can help me! I appreciate it. Well, I'm creating a Datagrid, this Datagrid was done in FXP, and imported into the FB, I did some workarounds and got where I wanted, only that there are problems.
    the scheme is this:
    MySQL database = NoticiasService
    Connected by Zend / PHP.
    Everything right until here.
    I have the file main.mxml> DatalistSinspebNoticias.mxml> DatalistSinspebNoticiasRepeatedItemSkin.mxml - just here.
    I will not make a closed file (FXP), because my file is just a mess and only I understand the way it was organized.
    The problem is:
    The datagrid is infinite, I want to limit it to eight items repeated.
    The link does not work with "TextConverter" to "HTML"
    FB lives showing me glitches.
    then I will initiate an implementation of other applications, such as adding data to the DB, and Update DB. Thanks Folks!
    Main.mxml ------------------------------------------------------------------------->
    <?xml version='1.0' encoding='UTF-8'?>
    <s:Application xmlns:ATE="http://ns.adobe.com/ate/2009"
                                     xmlns:ai="http://ns.adobe.com/ai/2009"
                                     xmlns:fc="http://ns.adobe.com/flashcatalyst/2009"
                                     xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                                     xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:lib="assets.graphics.caixa_feed_sinspeb.*"
                                     xmlns:flm="http://ns.adobe.com/flame/2008"
                                     xmlns:noticiasservice="services.noticiasservice.*"
                                     width="100%" height="100%" backgroundColor="#FFFFFF" preloaderChromeColor="#FFFFFF"
                                     fc:previewHeight="380" fc:previewWidth="430">
              <fx:Style source="Main.css"/>
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected function list1_creationCompleteHandler(event:FlexEvent):void
                                            getAllNoticiasResult.token = noticiasService.getAllNoticias();
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <s:CallResponder id="getAllNoticiasResult"/>
                        <noticiasservice:NoticiasService id="noticiasService" showBusyCursor="true"/>
              </fx:Declarations>
              <fx:DesignLayer d:id="2" d:userLabel="Layer 1">
                        <s:List id="list1" x="10" y="8"
                                            creationComplete="list1_creationCompleteHandler(event)"
                                            skinClass="components.DataListSinspebNoticias" labelField="conteudo_nt">
                                  <s:AsyncListView list="{getAllNoticiasResult.lastResult}"/>
                        </s:List>
              </fx:DesignLayer>
    </s:Application>
    ------------------------------------------------------------------------->
    DatalistSinspebNoticias.mxml ------------------------------------------------------------------------->
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                        xmlns:flm="http://ns.adobe.com/flame/2008"
                        xmlns:ai="http://ns.adobe.com/ai/2009"
                        width="407" height="374">
              <fx:Metadata>[HostComponent("spark.components.List")]</fx:Metadata>
              <s:states>
                        <s:State name="normal"/>
                        <s:State name="disabled"/>
              </s:states>
              <s:DataGroup id="dataGroup" x="0" y="0" width="407" height="353" clipAndEnableScrolling="true"
                                             itemRenderer="components.DataListSinspebNoticiasRepeatedItemSkin"
                                             height.normal="374" buttonMode.normal="true">
                        <s:layout>
                                  <s:VerticalLayout gap="1"/>
                        </s:layout>
              </s:DataGroup>
    </s:Skin>
    ------------------------------------------------------------------------->
    DatalistSinspebNoticiasRepeatedItemSkin.mxml ------------------------------------------------------------------------->
    <?xml version="1.0" encoding="utf-8"?>
    <s:ItemRenderer xmlns:s="library://ns.adobe.com/flex/spark"
                                            xmlns:fx="http://ns.adobe.com/mxml/2009"
                                            xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                                            xmlns:flm="http://ns.adobe.com/flame/2008"
                                            xmlns:ai="http://ns.adobe.com/ai/2009"
                                            width="402" height="39" autoDrawBackground="false">
              <fx:Script>
                        <![CDATA[
                                  import flashx.textLayout.conversion.ConversionType;
                                  import flashx.textLayout.conversion.TextConverter;
                        ]]>
              </fx:Script>
              <s:states>
                        <s:State name="normal"/>
                        <s:State name="hovered"/>
                        <s:State name="selected"/>
              </s:states>
              <s:Rect x="5" y="3" width="78" height="32">
                        <s:fill>
                                  <s:SolidColor color="#01557C"/>
                        </s:fill>
                        <s:stroke.hovered>
                                  <s:SolidColorStroke caps="none" color="#96F2FF" joints="miter" miterLimit="4" weight="2"/>
                        </s:stroke.hovered>
              </s:Rect>
              <s:Rect d:id="3" x="85.5" y="0.5" width="315" height="37" flm:variant="1"
                                  x.hovered="86" y.hovered="1">
                        <s:fill>
                                  <s:LinearGradient x="157.5" y="0" scaleX="32" rotation="90">
                                            <s:GradientEntry ratio="0" color="#FFFFFF"/>
                                            <s:GradientEntry ratio="0.488676" color="#E0EEF9"/>
                                            <s:GradientEntry ratio="1" color="#D6E9F7"/>
                                  </s:LinearGradient>
                        </s:fill>
                        <s:stroke>
                                  <s:SolidColorStroke caps="none" color="#666666" joints="miter" miterLimit="4" weight="1"
                                                                                    color.hovered="#999999" weight.hovered="2"
                                                                                    color.selected="#0065FF"/>
                        </s:stroke>
              </s:Rect>
              <s:Rect d:userLabel="Item Highlight Rectangle" x="5" y="0" width="396" height="33" alpha="0">
                        <s:fill>
                                  <s:SolidColor color="0xCED7EE"/>
                        </s:fill>
              </s:Rect>
              <s:RichText  x="20" y="12" width="48" height="14" ai:aa="2"
                                            color="#FFFFFF" columnCount="1" fontFamily="Myriad Pro" fontSize="14" kerning="on"
                                            tabStops="S0" text="{data.datada_nt}" flm:variant="2" whiteSpaceCollapse="preserve"/>
              <s:RichText x="89.95" y="8" width="309" height="24" ai:aa="2" color="#000000" columnCount="1"
                                            fontFamily="Arial Narrow" fontSize="11" kerning="on"
                                            tabStops="S0 S50 S100 S150 S200 S250 S300"
                                            textFlow="{TextConverter.importToFlow(data.conteudo_nt, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
                                            trackingRight="16%"
                                            flm:variant="3" whiteSpaceCollapse="preserve"
                                            buttonMode.normal="false" lineThrough.normal="false">
                        <s:filters>
                                  <s:GlowFilter alpha="1.0" blurX="0" blurY="0" color="#000000" inner="false"
                                                                  knockout="false" quality="2" strength="1"/>
                        </s:filters>
              </s:RichText>
              <s:Path includeIn="hovered" x="0.35" y="12.35" data="M 12.40 7.15 L 0.03 14.29 0.03 0.01 Z ">
                        <s:stroke>
                                  <s:SolidColorStroke caps="none" color="#666666" joints="miter" miterLimit="4" weight="1"/>
                        </s:stroke>
                        <s:fill>
                                  <s:LinearGradient rotation="90">
                                            <s:GradientEntry color="#FFFFFF" ratio="0"/>
                                            <s:GradientEntry color="#E0EEF9" ratio="0.488676"/>
                                            <s:GradientEntry color="#D6E9F7" ratio="1"/>
                                  </s:LinearGradient>
                        </s:fill>
              </s:Path>
    </s:ItemRenderer>
    ------------------------------------------------------------------------->

    The following says how to restore from backup.
    iOS: How to back up
    If you go to iTunes>Preferences>Devices you can see if you have an iTunes backup. You need one dated before or the exact time you started the restore.

  • Problem when printing from PDF created by InDesign

    Ok, here's the scenario!
    I have a flyer, created in InDesign. I have drawn a grey curve (in InDesign) which goes at the top of each page.
    I import a transparent logo in PSD format, and place it on top of the grey curve.
    In InDesign and when I PDF it, it looks fine (at any zoom level).
    However when I print it, there is a slight outline around the transparent logo and it has a slightly different shade of grey as its background (it stands out from the curve).
    Does anyone know why this could be?  I also tried importing the logo with the same grey background as in InDesign but the same problem occurs.
    Any help appreciated!

    If you can't select composite CMYK it means your printer isn't postscript, or you aren't using the postscript driver option if one is available.
    Since this is a printer-related function, not a property of the file itself, you don't want to do anything to your pdf to compensate. That's the printer's job, if necessary, when he processes your PDF.

  • Color problems when printing from PDF created in Pages

    I have created a newsletter in Pages, and have used the Export > PDF so that the file can be sent to a professional printer.  One of the graphics (created by an outside graphic designer and put into my Pages document as a jpg file) prints in all sorts of bizarre colors - nothing like how it displays on the screen.  Is there some sort of color formatting that I can do to make it print in the correct color?

    The Pages pdf will have many more problems than this case of mismatched color profiles.
    Unless you really know what you are doing avoid using Pages for commercial output. For a start all your bitmaps will have been rendered to a too low 72dpi resolution.
    Peter

  • Problem while Converting from PDf To XML

    hi everybody ,
                             By using interactive adobe forms i have
    done an application which has four text fields binded with data
    using Data Source property of interactive form through webdynpro.
    Now when iam trying to get the XML format of this PDF form
    located at server , i am getting a Exception as follows
    javax.xml.transform.TransformerException: Namespace fixup failed. Prefix 'xfa' used in attribute 'xfa:dataNode' is not declared anywhere
    can any one help me..if any queries please ask
    thanks
    Madhavi

    I had a similar problem and it was solved with
    factory.setNamespaceAware(true);

  • Problem populating textfields from sql query

    As seen in the code below I pass a String and a database connection to the constructor of this class. If I use the query commented out in the code the connection works fine and the values text fields get populated with the data. However if I use the uncommented query, the connection fails and so the query is not executed.(Connection code included as well)
    Anyone have any ideas why???
    public invInfoPanel(String name, DBConnection db)
              try
                   this.setBorder(
                        BorderFactory.createCompoundBorder(
                             BorderFactory.createCompoundBorder(
                                                 BorderFactory.createEtchedBorder(),
                                                 BorderFactory.createEmptyBorder(2,2,2,2)),
                             this.getBorder()));
                   panel1 = new JPanel();
                   panel1.setLayout(new GridLayout(0,2,10,10));
                   nameLabel = new JLabel("Name ");
                   panel1.add(nameLabel);
                   nameText = new JTextField(15);
                   panel1.add(nameText);
                   deptLabel = new JLabel("Dept ");
                   panel1.add(deptLabel);
                   deptList = new JComboBox(deptStrings);
                   deptList.setBackground(Color.white);
                   panel1.add(deptList);
                   extLabel = new JLabel("Ext ");
                   panel1.add(extLabel);
                   extText = new JTextField(15);
                   panel1.add(extText);
                   panel2 = new JPanel();
                   panel2.setLayout(new GridLayout(0,1,2,10));
                   saveButton = new JButton("Save");
                   panel2.add(saveButton);     
                   printButton = new JButton("Print ");
                   panel2.add(printButton);
                   cancelButton = new JButton("Cancel");
                   panel2.add(cancelButton);
                   panel3 = new JPanel();
                   blankLabela = new JLabel(" ");
                   panel3.add(blankLabela);
                   panel3.setLayout(new GridLayout(0,4,2,10));
                   searchButton = new JButton("Search by");
                   panel3.add(searchButton);
                   searchList = new JComboBox(searchStrings);
                   searchList.setBackground(Color.white);
                   panel3.add(searchList);
                   blankLabel = new JLabel(" ");
                   panel3.add(blankLabel);
                   this.add(panel1, BorderLayout.WEST);
                   this.add(panel3, BorderLayout.CENTER);
                   this.add(panel2, BorderLayout.EAST);
                   query = ("select STAFF_NAME, DEPT, EXT from INV_DETAILS where STAFF_NAME = " + name);
    //query = ("select STAFF_NAME, DEPT, EXT from INV_DETAILS where EXT = 320);
                   rs = db.runQuery(query);
                   display(rs);
              catch(java.sql.SQLException e)
                   System.out.println("Could not connect");
         public void display(ResultSet rs)
    try
              if(rs != null)
                   if(rs.next())
                        nameText.setText(rs.getString("STAFF_NAME"));
                        deptList.setSelectedItem(rs.getString("DEPT"));
                        extText.setText(rs.getString("EXT"));
              else
                   System.out.println("No record found");
         catch ( SQLException sqlex )
              System.out.println("*** Details Not In Database ***" );
    //----------------DBConnection.java----------------------//
    import java.sql.*;
    import java.util.*;
    public class DBConnection
    static String url =
    "jdbc:oracle:thin:@kiwi.isg.computing.dcu.ie:1521:kiwi";
    String username = getUser();
    String password = getPass();
    static String driver = "oracle.jdbc.OracleDriver";
    Connection connection;
    String status = "Not Connected";
    public DBConnection()
    try
    Class.forName(driver);
    status = "Found Oracle driver, starting to connect...";
    catch (java.lang.ClassNotFoundException e)
    status = "Driver not found";
    return;
    try
    connection = DriverManager.getConnection(url,username,password);
    status = "Connected to Oracle";
    catch(java.sql.SQLException e)
    status = "Could not connect";
    public String getStatus()
    return status;
         public static String getPass()
              String a;
              ResourceBundle myResources1 = ResourceBundle.getBundle("info");
              a = myResources1.getString("password");
              return a;
    public static String getUser()
              String b;
              ResourceBundle myResources1 = ResourceBundle.getBundle("info");
              b = myResources1.getString("username");     
              return b;     
    public ResultSet runQuery(String s) throws java.sql.SQLException
    Statement stmt = connection.createStatement();
    System.out.println(s);
    return stmt.executeQuery(s);
    }

    Actually...got it sorted out. Thanks anyway

  • Problem populating selectOneMenu from backing bean

    i want to populate my selectOneMenu with items from a backing bean, but items never show up.
    jsf code
    <h:selectOneMenu >
                          <c:forEach var="item" items="#{club.list}">
                              <f:selectItem itemLabel="#{item}" itemValue="#{item}"/>
                           </c:forEach>
                          </h:selectOneMenu>
                        faces-config.xml
    <managed-bean>
        <managed-bean-name>club</managed-bean-name>
        <managed-bean-class>entities.ClubController</managed-bean-class>
        <managed-bean-scope>application</managed-bean-scope>
      </managed-bean>bean code. i have omitted the unnecessary code
    public class ClubController {
        public ClubController() {
        private List<String> list;
        public List<String> getList()
             list=new ArrayList();
             list.add("item 1");
             list.add("item 2");
             return list;
    }

    This exception usually appears if your bean throws an exception in initializer/constructor. Try adding log statements top your constructor to see what's wrong.
    I believe getServiceLocator() or getServiceLocator().getAdministracionVirtualService() or getServiceLocator().getAdministracionVirtualService().getAllCategorias() is null.

  • Create XML file on application server (unix directory) from internal table

    Hallo everybody,
    I have got the following problem:
    I am working with <u><b>release 4.6C</b></u> and have got to create XML files from HR master data and organizational data respectively.
    This takes place in 3 steps:
    1.     Collect the data in an internal table
    2.     Convert the data to XML format using the function module 'SAP_CONVERT_TO_XML_FORMAT'
    3.     Download the data
    If I download the converted data, which are in an internal table, to the presentation server via the function module ‘WS_DOWNLOAD’ and open it with the Internet Explorer, everything is ok.
    If I download the converted data to the application server, i.e. into a unix directory via
    ‘open dataset’, ‘loop at internal table, ‘transfer working area to file’, ‘close dataset’
    and then try to open it, this is not possible, because after the last tag some unreadable characters, e.g. a square, appear that aren’t supposed to be there. That’s what my colleagues told me, for I haven’t got access to the server.
    I have no idea where these characters come from and how I can get rid of them. I guess that either I have to modify (how?) the table with the converted data before the download or I have to use another way to convert the data. For the second way I would probably have to work with an XML class or an XML interface. Unfortunately I’I am not an expert in working with classes so sample coding would have to be rather detailed.
    Here’s some more information about how I work with the conversion function module:
      call function 'SAP_CONVERT_TO_XML_FORMAT'
           exporting
                i_field_seperator    = lv_field_seperator
               i_line_header        = lv_line_header
               i_filename           = lv_xml_file
               i_appl_keep          = ' '
                i_xml_doc_name       = lv_xml_doc_name
           importing
                pe_bin_filesize      = lv_result
           tables
                i_tab_sap_data       = gt_data
           changing
                i_tab_converted_data = lt_tab_converted_data
           exceptions
                conversion_failed    = 1
                others               = 2.
    lv_field_seperator = ‘X’.
    lv_xml_doc_name = ‘Personalstammdaten Publikation’
    lv_result: type i
    gt_data: fields: PERNR, PERSG, PERSK etc.
      types:
      begin of truxs_xml_line,
        data(256) type x,
      end of truxs_xml_line.
      types:
      truxs_xml_table type table of truxs_xml_line.
    data:
    lv_tab_converted_data type truxs_xml_line,
    lt_tab_converted_data type truxs_xml_table
    open dataset lv_xml_file for output in binary mode.
    loop at lt_tab_converted_data into lv_tab_converted_data.
      transfer lv_tab_converted_data to lv_xml_file.
    endloop.
    close dataset lv_xml_file
    lv_xml_file: /usr/users/.../.../Personendaten_2004-11-02.xml
    Hope the information is detailed enough! Otherwise let me know. Thank you in advance.
    Message was edited by: Johannes Schwehm

    Hi Raja,
    tried the "TEXT" mode, but that didn't help.
    There are still characters after the last tag, that are not supposed to be there including a date that is not
    the creation date of the file.
    Thank you for your help.
    Regards
    Johannes

  • Please Help. Trying to create XML file from 2 tables.

    Step1: Target XML format
    Created an XML
    <DEPART>
    <DEPARTMENT_ID>10</DEPARTMENT_ID>
    <DEPARTMENT_NAME>Administration</DEPARTMENT_NAME>
    <MANAGER_ID>200</MANAGER_ID>
    <LOCATION_ID>1700</LOCATION_ID>
    <EMP><EMPLOYEE_ID>100</EMPLOYEE_ID>
    <FIRST_NAME>Steven</FIRST_NAME>
    <LAST_NAME>King</LAST_NAME>
    <SALARY>24000</SALARY>
    </EMP>
    </DEPART>Step 2. Created a target data server from the above mentioned xml. Specified the logical and physical schema.
    Step3.Logged into Designer and reverse engineered from the the schema created in step2.
    step 4. Following Hierarchy is created
    DEPART
    --> EMP
    Step 5. Reverse engineered 2 tables from oraclexe (HR ) Schema
    Employees
    Departments
    Step 6. Created an interface and made DEPART from step 4 as target
    and Departments from step 5 as source.
    Step 7. Staging area is different to the target.
    step 8. modified the IKM SQL Control Append to write to a file
    create xmlfile #filename from schema DEPART
    Step 9. Changed the DEPART PK Column in the TARGET to 0
    Step 10. File is created.
    Problem:
    1. When i view the file it has all the departments but the employees are also displayed eventhough i haven't done the mapping.
    2. All the employees are listed under every department.
    Please help as i have tried everything. I know i am missing something somewhere.
    Thanks a lot for reading it.
    Alvinder
    Edited by: alvinder on Jun 30, 2010 5:29 PM

    Hi Alvindar,
    Thanks u posted good issue,
    Can u clarify this about how your issue got ressolved. I am also trying with same XML as you have pasted here. I have following doubts.
    While setting up XML data server the ro option i have deleted as defalut value is false which allows both read/write & its look like this
    jdbc:snps:xml?f=../demo/XML/EMPDEPT.xml&s=SCH_EMPDEPT.
    I have mapped and written create XML commands in commit section of IKM which looks like this :CREATE XMLFILE #ExportXMLFileLoc FROM SCHEMA SCH_FLDEPT
    created the interface and executed,it went through fine,4 rows data transformed into target xml data store,file is generated in the given path .
    But in the generated file is same as which have EMPDEPT.xml with data change,but in the target xml data store depart i am able to view newly inserted records.
    i want generate an output xml for each of the target of the XML data store, how we can do that please explain me.
    this is my xml
    <?xml version="1.0" encoding="UTF-8"?>
    <REQUEST>
    <DEPART>
    <DEPARTMENT_ID>10</DEPARTMENT_ID>
    <DEPARTMENT_NAME>Admin</DEPARTMENT_NAME>
    <MANAGER_ID>200</MANAGER_ID>
    <LOCATION_ID>1700</LOCATION_ID>
    </DEPART>
    </REQUEST>
    tried only with DEPART table.
    Waiting for ur repply,
    Thanks,
    MNK

  • Creating XML doc from DTD using jDOM

    Hi...
    I want to create empty XML Document from the DTD using JDOM or JAXP & then want to populate that xml document with the values from the database.
    The problem is :-
         How can we create an XML document by simply reading the DTD using JDOM or JAXP.?
    or
    first of all how am i going to parse the DTD from jDOM or JAXp & then how will i create the empty XML Document from it..?
    Please revert back soon... & thanx in advance for helping..
    regards
    Shoorya

    Yes i've also got teh same problem this day...
    Can somone help us ?
    Thanks
    Math

  • Problem while creating xml with cdata section

    Hi,
    I am facing problem while creating xml with cdata section in it. I am using Oracle 10.1.0.4.0 I am writing a stored procedure which accepts a set of input parameters and creates a xml document from them. The code snippet is as follows:
    select xmlelement("DOCUMENTS",
    xmlagg
    (xmlelement
    ("DOCUMENT",
    xmlforest
    (m.document_name_txt as "DOCUMENT_NAME_TXT",
    m.document_type_cd as "DOCUMENT_TYPE_CD",
    '<![cdata[' || m.document_clob_data || ']]>' as "DOCUMENT_CLOB_DATA"
    ) from table(cast(msg_clob_data_arr as DOCUMENT_CLOB_TBL))m;
    msg_clob_data_arr is an input parameter to procedure and DOCUMENT_CLOB_TBL is a pl/sql table of an object containing 3 attributes: first 2 being varchar2 and the 3rd one as CLOB. The xml document this query is generating is as follows:
    <DOCUMENTS>
    <DOCUMENT>
    <DOCUMENT_NAME_TXT>TestName</DOCUMENT_NAME_TXT>
    <DOCUMENT_TYPE_CD>BLOB</DOCUMENT_TYPE_CD>
    <DOCUMENT_CLOB_DATA>
    &lt;![cdata[123456789012345678901234567890123456789012]]&gt;
    </DOCUMENT_CLOB_DATA>
    </DOCUMENT>
    </DOCUMENTS>
    The problem is instead of <![cdata[....]]> xmlforest query is encoding everything to give &lt; for cdata tag. How can I overcome this? Please help.

    SQL> create or replace function XMLCDATA_10103 (elementName varchar2,
      2                                             cdataValue varchar2)
      3  return xmltype deterministic
      4  as
      5  begin
      6     return xmltype('<' || elementName || '><![CDATA[' || cdataValue || ']]>
      7  end;
      8  /
    Function created.
    SQL>  select xmlelement
      2         (
      3            "Row",
      4            xmlcdata_10103('Junk','&<>!%$#&%*&$'),
      5            xmlcdata_10103('Name',ENAME),
      6            xmlelement("EMPID", EMPNO)
      7         ).extract('/*')
      8* from emp
    SQL> /
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[SMITH]]></Name>
      <EMPID>7369</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[ALLEN]]></Name>
      <EMPID>7499</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[WARD]]></Name>
      <EMPID>7521</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[JONES]]></Name>
      <EMPID>7566</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[MARTIN]]></Name>
      <EMPID>7654</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[BLAKE]]></Name>
      <EMPID>7698</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[CLARK]]></Name>
      <EMPID>7782</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[SCOTT]]></Name>
      <EMPID>7788</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[KING]]></Name>
      <EMPID>7839</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[TURNER]]></Name>
      <EMPID>7844</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[ADAMS]]></Name>
      <EMPID>7876</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[JAMES]]></Name>
      <EMPID>7900</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[FORD]]></Name>
      <EMPID>7902</EMPID>
    </Row>
    <Row>
      <Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
      <Name><![CDATA[MILLER]]></Name>
      <EMPID>7934</EMPID>
    </Row>
    14 rows selected.
    SQL>

  • Help on datagrid from XML

    Well i realy cant solve this problem.
    I have php file that reads mysql, and i am trying do display
    it in datagrid :
    checklogin.php:
    $details = "<xml>";
    while($row = mysql_fetch_assoc($checkuser))
    $details .= "<user>";
    $details .=
    "<ID><![CDATA[".$row['ID']."]]></ID>";
    $details .=
    "<Fornamn><![CDATA[".$row['firstname']."]]></Fornamn>";
    $details .=
    "<Efternamn><![CDATA[".$row['lastname']."]]></Efternamn>";
    $details .=
    "<Postadress><![CDATA[".$row['postaddress']."]]></Postadress>";
    $details .=
    "<Stad><![CDATA[".$row['city']."]]></Stad>";
    $details .=
    "<Land><![CDATA[".$row['country']."]]></Land>";
    $details .=
    "<Telefon><![CDATA[".$row['telephone']."]]></Telefon>";
    $details .=
    "<Epost><![CDATA[".$row['ID']."]]></Epost>";
    $details .= "</user>";
    $details .="</xml>";
    And in flex:
    private function loadDBusers():void{
    //deleted code it works
    DBconnect.url=("checklogin.php");
    DBconnect.resultFormat="text";
    DBconnect.addEventListener(ResultEvent.RESULT,
    dbUsersLoaded);
    DBconnect.send();
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!The problem function;
    private function dbUsersLoaded(evtObj:Event):void{
    // i tryed both the comented out and not comented out code
    .The first displays some wird info that is not datagrid but
    arraycollection object info
    var tableData:ArrayCollection = new
    ArrayCollection(ArrayUtil.toArray(mx.utils.XMLUtil.createXMLDocument(DBconnect.lastResult .toString()))
    //databaseusers.dataProvider = tableData;
    ################################### Method 2
    var xDBlist:XML = new XML(DBconnect.lastResult.toString());
    var dbArrayC:ArrayCollection = new
    ArrayCollection(ArrayUtil.toArray(xDBlist.user));
    databaseusers.dataProvider=dbArrayC;
    So problem is casting object from String -> XML ->
    Array -> Arraycollection

    Also, use (evtObj:ResultEvent) instead of just Event. You'll
    need to import mx.rpc.events.ResultEvent;
    And avoid using "lastResult" in a handler. Instead do:
    var xDBlist:XML = XML(evtObj.result);
    Finally, make sure you have set resultFormat="e4x";
    Tracy

  • Newbie - How to create XML based on given schema

    Hello,
    We have a requirement to create an XML message from our system (Oracle 9iR2 with Oracle Apps 11.5.10). The XML is generated from a query in our HR tables, and must be in a specific format (schema and example XML has been provided to us).
    Newbie question is this: What is the best way to create this XML message (dynamic data coming from a SQL select) while ensuring that it matches the given schema? Most of our developers are strong PL/SQL with limited Java experience.
    Thanks,
    -- John

    I've updated the FAQ with an answer and example for this question...
    Please see the following thread
    How to create XML from relational tables based on an XML Schema ?

  • Creating XML from large result sets

    We are trying to create XML docs from queries that return somewhere in the neighborhood of 13000+ rows, each with as many as 30 columns. It seems someplace deep within the xmlgen utility or the xsu methods, we throw an OutOfMemoryError. This happens whether we run as a java stored procedure, a pl/sql stored procedure, pl/sql script or java servlet. It looks like the top of the stack shows the problem occurs trying to extendCapacity in a StringBuffer. We're running 8.1.6 with java 1.2.2 and xsu 1.2. Has anyone had to query large amounts of data like this and if so, how did you go about it? Is there a slick way to break things up and then string everything back into 1 big xml doc? Any help would be greatly appreciated. Thanks.

    I guess you can use pagination,
    either using xsu or Top N Queries and then you could merge all the pages in an unique XML or DOM tree prior to persist it to disk.
    With XSU:
    Go to the following link for a clear explanation:
    <http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/appdev.817/a86030/adx04x11.htm#1008351>
    With Top N queries:
    Go to the following thread of this forum to see a similar question I raised and it was answered in detail:
    <http://technet.oracle.com:89/ubb/Forum11/HTML/004711.html>
    - Jose Angel -

  • Create XML file from ABAP with SOAP Details

    Hi,
    I am new to XML and I am not familiar with JAVA or Web Service. I have searched in SDN and googled for a sample program for creating XML document from ABAP with SOAP details. Unfortunately I couldn't find anything.
    I have a requirement for creating an XML file from ABAP with SOAP details. I have the data in the internal table. There is a Schema which the client provided and the file generated from SAP should be validating against that Schema. Schema contains SOAP details like Envelope, Header & Body.
    My question is can I generate the XML file using CALL TRANSFORMATION in SAP with the SOAP details?
    I have tried to create Transformation (Transaction XSLT_TOOL) in SAP with below code. Also in CALL transformation I am not able to change the encoding to UTF-8. It's always show UTF-16.
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
      <xsl:template match="/">
        <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
          <SOAP:Header>
            <CUNS:HeaderInfo>
              <CUNS:InterfaceTypeId>10006</InterfaceTypeId>
              <CUNS:BusinessPartnerID>11223344</BusinessPartnerID>
              <CUNS:SchemaVersion>1.0</SchemaVersion>
              <CUNS:DateTime>sy-datum</DateTime>
            </CUNS:HeaderInfo>
          </SOAP:Header>
          <SOAP:Body>
            <xsl:copy-of select="*"/>
          </SOAP:Body>
        </SOAP:Envelope>
      </xsl:template>
    </xsl:transform>
    In ABAP program, I have written below code for calling above Transformation.
      call transformation ('Z_ID')
           source tab = im_t_output[]
           result xml xml_out.
      call function 'SCMS_STRING_TO_FTEXT'
        exporting
          text      = xml_out
        tables
          ftext_tab = ex_t_xml_data.
    Please help me how to generate XML file with SOAP details from ABAP. If anybody have a sample program, please share with me.
    Is there any easy way to create the XML file in CALL Transformation. Please help.
    Thanks

    Try ABAP forum, as it seems not to be PI related.

Maybe you are looking for

  • Free PO indicator in field selection key/group

    Hi all, I would like to make Free PO indicator as mandatory field in PO thru specific document type field selection reference key. When I search for the field, it is not available for existing field selection key (Field selection group). How can I ad

  • Time dimension hierarchy

    Hi, Im creating time dimensional hirearchy in BMM Layer in 10g and getting the below error [nQSError:15001]Could not load navigation space for subject area Test. [nQSError:15019]Table period is functionally dependent upon level Month,but a more detai

  • CS5 Does everything need to go in a container?

    I am doing my 1st website with CS5 which I am going to import into a Wordpress site.  I am starting the layout, read a wonderful article by David Powers about layout and div tags.  I started by simply putting my photoshop banner on the page.  Then, I

  • Verity collection keep disappearing

    i have CF MX7 and i do have a verity collection it keep disappearing some time....i am wondering is this a bug or am i missing somthing.....please help..thanks..

  • Setting gaps to specific values

    I want to set gaps between object (rectangles) to specific values. I want to be able to enter a value rather than use gap tool, Ctrl+drag. I'd also like to be able to lock this gap if that is in any way possible. How do I do this?