Using a datagrid to display XML data

Hello,
I'm binding xml to a datagrid but I'm having trouble displaying some of the data.  Here's my example.
Here's my test data:
[Bindable]
private var test:XML =
  <vm:validationMessages xsi:schemaLocation="http://www.location.com/2.0 http://schemas.com/2.0.0/valMessages.xsd" severity="ERROR" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:vm="http://www.location.com/2.0" xmlns:zucc="http://www.location.com/results/1.0">
  <vm:validationMessage severity="ERROR" errorCode="ErrorType1" url="www.loc.com">
    <vm:messageDetail>Text I want to return</vm:messageDetail>
  </vm:validationMessage>
</vm:validationMessages>
I've set the default namespace here:
public static const vm:Namespace = new Namespace("http://www.location.com/2.0");
default xml namespace = vm;
And here is the datagrid definition:
<mx:DataGrid x="10" y="30" width="738.5" height="189" id="dgValidation" dataProvider="{test.validationMessage}">
  <mx:columns>
    <mx:DataGridColumn headerText="Severity" dataField="@severity"/>
    <mx:DataGridColumn headerText="Error Code" dataField="@errorCode"/>
    <mx:DataGridColumn headerText="Url" dataField="@url"/>
    <mx:DataGridColumn headerText="Description" dataField="messageDetail"/>
  </mx:columns>
</mx:DataGrid>
The attributes "severity, errorCode, url" are being displayed correctly, however "messageDetail" will not display.  I've tried several different ways of calling it with no luck. Is there a way to do this?
Thanks.

To solve this problem I had to use labelFunction.  The working line was this:
<mx:DataGridColumn headerText="Description" labelFunction="dataGrid_labelFunc"  dataField="messageDetail"/>
The function looks like this:
private function dataGrid_labelFunc(item:XML, col:DataGridColumn):String {
     var qN:QName = new QName(vm, col.dataField);
     return item[qN].text();

Similar Messages

  • DataGrid does not display XML data

    Hello, and thanks for reading this...
    I am having a problem displaying XMLList data in a DataGrid.
    The data is coming from a Tree control, which is receiving it
    from a database using HTTPService.
    The data is a list of "Job Orders" from a MySQL database,
    being formatted as XML by a PHP page.
    If it would be helpful to see the actual XML, a sample is
    here:
    http://www.anaheimwib.com/_login/get_all_orders_test2.php
    All is going well until I get to the DataGrid, which doesn't
    display the data, although I know it is there as I can see it in
    debug mode. I've checked the dataField property of the appropriate
    DataGrid column, and it appears correct.
    Following is a summary of the relevant code.
    ...An HTTPService named "get_all_job_orders" retrieves
    records from a MySQL database via PHP...
    ...Results are formatted as E4X:
    HTTPService resultFormat="e4x"
    ...An XMLListCollection's source property is set to the
    returned E4X XML results:
    ...The "order" node is what is being used as the top-level of
    the XML data.
    <mx:XMLListCollection id="jobOrdersReviewXMLList"
    source="{get_all_job_orders.lastResult.order}"/>
    ...The "jobOrdersReviewXMLList" collection is assigned to be
    the dataProvider property of a Tree list, using the @name syntax to
    display the nodes correctly, and a change event function is defined
    to add the records to a DataGrid on a separate Component for
    viewing the XML records:
    <mx:Tree dataProvider="{jobOrdersReviewXMLList}"
    labelField="@name"
    change="jobPosForm.addTreePositionsToDG(event)"/>
    ...Here is the relevant "jobPosForm" code (the Job Positions
    Form, a separate Component based on a Form) :
    ...A variable is declared:
    [Bindable]
    public var positionsArray:XMLList;
    ...The variable is initialized on CreationComplete event of
    the Form:
    positionsArray = new XMLList;
    ...The Tree's change event function is defined within the
    "jobPosForm" Component.
    ...Clicking on a Tree node fires the Change event.
    ...This passes an event object to the function.
    ...This event object contains the XML from the selected Tree
    node.
    ...The Tree node's XML data is passed into the positionsArray
    XMLList.
    ...This array is the dataProvider for the DataGrid, as you
    will see in the following block.
    public function addTreePositionsToDG(event:Event):void{
    this.positionsArray = selectedNode.positions.position;
    ...A datagrid has its dataProvider is bound to
    positionsArray.
    ...(I will only show one column defined here for brevity.)
    ...This column has its dataField property set to "POS_TITLE",
    a field in the returned XML record:
    <mx:DataGrid width="100%" variableRowHeight="true"
    height="75%" id="dgPositions"
    dataProvider="{positionsArray}" editable="false">
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Position Title"
    dataField="POS_TITLE"/>
    </mx:columns>
    </mx:DataGrid>
    In debug mode, I can examine the datagrid's dataProvider
    property, and see that the correct XML data from the Tree control
    is present. However, The datagrid does not display the data in any
    of its 6 columns.
    Does anyone have any advice?
    Thanks for your time.

    Hello again,
    I came up with a method of populating the DataGrid from the
    selected Item of a Tree Control which displays complex XML data and
    XML attributes. After the user clicks on a Tree branch, I call this
    function:
    public function addTreePositionsToDG(event:Event):void{
    //Retrieve all "position" nodes from tree.
    //Loop thru each Position.
    //Add Position data to the positionsArray Array Collection.
    //The DataGrid dataprovider is bound to this array, and will
    be updated.
    positionsArray = new ArrayCollection();
    var selectedNode:Object=event.target.selectedItem;//Contains
    entire branch.
    for each (var position:XML in
    selectedNode.positions.position){
    var posArray:Array = new Array();
    posArray.PK_POSITIONID = position.@PK_POSITIONID;
    posArray.FK_ORDERID = position.@FK_ORDERID;
    posArray.POS_TITLE = position.@POS_TITLE;
    posArray.NUM_YOUTH = position.@NUM_YOUTH;
    posArray.AGE_1617 = position.@AGE_1617;
    posArray.AGE_1821 = position.@AGE_1821;
    posArray.HOURS_WK = position.@HOURS_WK;
    posArray.WAGE_RANGE_FROM = position.@WAGE_RANGE_FROM;
    posArray.WAGE_RANGE_TO = position.@WAGE_RANGE_TO;
    posArray.JOB_DESCR = position.@JOB_DESCR;
    posArray.DES_SKILLS = position.@DES_SKILLS;
    positionsArray.addItem(posArray);
    So, I just had to manually go through the selected Tree node,
    copy each XML attribute into a simple Array, then ADD this Array to
    an ArrayCollection being used as the DataProvider for the DataGrid.
    It's not elegant, but it works and I don't have to use a Label
    Function, which was getting way too complicated. I still think that
    Flex should have an easier way of doing this. There probably is an
    easier way, but the Flex documentation doesn't provide an easy path
    to it.
    I want to thank you, Tracy, for the all the help. I checked
    out the examples you have at www.cflex.net and they are very
    helpful. I bookmarked the site and will be using it as a resource
    from now on.

  • Display XML data bottom up

    I have a php form that when processed, opens an existing xml
    file and writes to the end of it:
    <code>
    $file_handle = fopen('products.xml','a');
    $content=(
    <new product>
    <date>{$_POST['date']}</date>
    <name>{$_POST['name']}</name>
    <price>{$_POST['price']}</price>
    </new product>
    fwrite($file_handle,$content);
    fclose($file_handle);
    </code>
    Each week, a new date (formatted as mm/dd/yyyy), product and
    price is added to this master xml list. The list is large and
    contains a weekly input for date, product name and price going back
    to 2004. To display the master list on the web, I am using a Spry
    Data table with the sort function enabled:
    <code>
    var products = new Spry.Data.XMLDataSet("products.xml",
    "/products/newproduct");
    products.setColumnType("date", "name", "price");
    function DoSort()
    products.sort(["date", "name", "price"], "toggle");
    -->
    </script>
    </head>
    <body>
    <h3>Display and Sort All Products</h3>
    <div spry:region="products">
    <table>
    <tr>
    <th spry:sort="date">Date</th>
    <th spry:sort="name">Product Name</th>
    <th spry:sort="price">Price</th>
    </tr>
    <tr spry:repeat="products">
    <td>{date}</td>
    <td>{name}</td>
    <td>{price}</td>
    </tr>
    </table>
    </div>
    </code>
    Everything works perfectly, except that by default, the xml
    data is being displayed "top-down" so that the first item is in
    2004, with the last item being the current weekly input for 2008. I
    would like the table (by defuault or on load) to display the xml
    data "bottom-up" so that the most recent input is always at the
    top.
    Can someone please help me figure out how to do this? I have
    looked for the answer everywhere, but can't seem to find a
    solution.

    A other thing u could do is sort the region on postLoad the
    first time..
    First create a global variable something like:
    var productsLoaded = false;
    than add a observer to your dataset..
    products.addObserver({onPostLoad:function(){
    if(!productsLoaded){
    productsLoaded = true;
    DoSort();
    so.. total code:
    var products = new Spry.Data.XMLDataSet("products.xml",
    "/products/newproduct");
    var productsLoaded = false;
    products.setColumnType("date", "name", "price");
    function DoSort()
    products.sort(["date", "name", "price"], "toggle");
    products.addObserver({onPostLoad:function(){
    if(!productsLoaded){
    productsLoaded = true;
    DoSort();
    }});

  • How to Display XML data on a Window within my JDev App?

    I want to display some XML data stored on the database (in a CLOB field) in such a way that the XML tags and values are colored/highlighted as if they were read in a browser like Internet Explorer.
    Currently I am displaying the data using a JEditorPane field and the results are hard to read as the tags and values show on the same color and in plain text.
    I want to dispay this within my application (9i), not going to an external browser; i.e. I want the window (panel) to act as a browser when displaying the data.
    Any ideas would be appreciated.
    Thanks.

    You can use utl_http in the database to call the webservice and display the result in a form item.
    Example:
    http://www.oracle-base.com/articles/9i/ConsumingWebServices9i.php

  • Displaying XML data in dynamic text box

    I'm attempting to display external XML data in a dynamic text box. When I test preview my code, the information that I want to display shows up in the Output window, so I know that its linked and works. My trouble is creating the code that will link to my (txtBox) and displaying when previewed. Please take a look at the files below if you have any time to offer suggestions.
    Thank you!
    Andy

    That's not an error, it's just a warning and flash is suggesting that if you use appendText vs. +=, that your results may display faster
    if you don't want to see the warning, you can take the suggestion and use:
    txtBox.appendText(bldg.S11[i].SF.text());
    txtBox.appendText(bldg.S11[i].Tenant.text());
    txtBox.appendText(bldg.S11[i].Status.text());
    ~chipleh

  • Problem displaying XML data in XSL page

    Hi There!
    I'm having trouble when adding XML data from the schema (which shows up  properly in the bindings panel)  to the XSL page..
    Following the step by step available here...
    http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822 510a94ae8d65-7a56a.html#ionCTAAnchor
    After  adding the XML item to the XSL file it ends up showing  up as  parent/client/name   (no brackets)  Instead of like the  example above  where it should display as {parent/client/name} and be  highlighted.    Also when previewing the XSL document it just shows   'parent/client/name'  instead of the actuall XML content..
    I  believe the XML data source is properly attached because it shows up in  the bindings panel..  But I don't know what else could be going wrong..
    Any help would be great!

    This is being enhanced to that the [...] button that appears in the data grid is available for all grid of data so that a popup with an extended area is shown.
    -kris

  • How to display XML data on forms10g2 from webservice

    Please suggest options to populate XML data that is passed to forms 10g2 from BIZtalk via webservice?
    OPtion that I know is to load XML into a staginig table and create a view to point to this table.

    You can use utl_http in the database to call the webservice and display the result in a form item.
    Example:
    http://www.oracle-base.com/articles/9i/ConsumingWebServices9i.php

  • DataGrid to display No Data when dataProvider is null

    Hi,
    Im new to flex. im trying to display "No Data" when the
    dataProvider for the DataGrid is null.
    how can i do this. can i display the text "No Data" in the
    grid or can i display text "No Data" with out grid
    Thanks in advance

    Are you saying that if the data provider is null then while
    you want to be able to create a DataGrid with a single row of data,
    where the cells in that one row for all columns contain "No Data"?
    In that case perhaps you can use the creationComplete event,
    and if the dataProvider is null dynamically create an Object with
    number of fields for the columns, all with the data "No Data". Of
    course, if your data is coming in from HTTPService etc., you might
    display this for a split second before true data gets populated.
    If you want to ensure that "No Data" is displayed for an
    individual cell if no data is available, the maybe a labelFunction
    would do the trick.

  • AdvancedDataGrid-  Displaying XML Data

    How would i hide the root node when displaying an XML data in
    advanced data grid. a blank node is showning
    up at the top level of the adgrid. is there a method similar
    to showRoot="false" that i can use in Flex 3?

    XMLListCollection might be a workaround.
    Tracy

  • How to use XmlModify to sort the XML Data?

    Hello,
    I saw some examples explain how to use XmlModify in BDB XML package. I want to sort the XML data by several elements but my Java program could not work correctly.
    <CustomerData>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>002</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>102</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    // many nodes like transaction ...
    </CustomerData>
    My XQuery script was executed successfully in the shell. The script looks as follows:
    "for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD), xs:decimal($i//CLT_IRD_NBR) return $i".
    The Java code :
    // create XmlManager
    XmlManager manager = // ...;
    // open XmlContainer
    XmlContainer container = // ...;
    XmlQueryContext context = manager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
    XmlQueryExpression expression = manager.prepare("for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD),xs:decimal($i//CLT_IRD_NBR) return $i", context);
    XmlModify modify = manager.createModify();
    XmlUpdateContext uc = manager.createUpdateContext();
    XmlDocument xmldoc = container.getDocument("sample.xml");
    XmlValue value = new XmlValue(xmldoc);
    long numMod = modify.execute(value, context, uc);
    System.out.println("Peformed " + numMod     + " modification operations");
    Could you point out the errors above or offer some suggestion?
    Thanks.

    I have other question of the sorting issue. Here are a large XML need to sort so I have to split it to multiple small XML files. After importing these files, I will use the XmlModify and XQuery to sort them. I'm not clear on the multiple XML files processing.
    1. Can the BDB XML ensure that all these XML files were sorted or how to update all documents with same logic.
    2. If I want export all these sorted documents, how can I ensure these files processed in sequence? Which document needs process first?
    The export method:
    public void export(String outputfile)throws Exception{
    final int BLOCK_SIZE = 5 * 1024 * 1024; // 5Mb
    try{
    File theFile = new File(outputfile);
    FileOutputStream fos = new FileOutputStream(theFile);
    byte[] buff= new byte[BLOCK_SIZE];                         
    XmlResults rs = container.getAllDocuments(new XmlDocumentConfig());               
    while(rs.hasNext()){
         XmlDocument xmlDoc = rs.next().asDocument();
         XmlInputStream inputStream = xmlDoc.getContentAsXmlInputStream();                    
         long read=0;
         while(true){
         read = inputStream.readBytes(buff, BLOCK_SIZE);
    fos.write(buff,0,(int)read);                    
         if(read < BLOCK_SIZE) break;
    inputStream.delete();
    xmlDoc.delete();
    rs.delete();
    //MUST CLOSE!
    fos.close();               
    catch(Exception e){
    System.err.println("Error exporting file from container " + container);
    System.err.println(" Message: " + e.getMessage());
    Thanks.

  • Receiving and displaying XML data via HTTPService

    Hi folks. I am a pretty experienced database programmer, I
    work with a software called Magic eDev, but I'm a complete newby in
    Flex.
    I am trying to use Flex 3 to create a web / client interface
    for an application written in Magic eDev. I've made a very simple
    Flex App to read an XML file generated by another application
    written in the third party software (Magic eDev 9.4) via
    HTTPService. I think I have the HTTPService request part figured
    out, This little Application does not cause any errors in Flex.
    However, I am not seeing my data in the display. If I manually try
    the URL query to the Magic App, I do get the XML file with the data
    in it, but Flex doesn't seem to see anything.
    I just want to get two fields via the HTTPService data and
    display them, but I'm not getting any result. I can't even tell if
    Flex is actually querying Magic or not. Can anyone explain what I'm
    doing wrong?
    Also, is there some way to monitor what the Flex app is doing
    when you run it, as you can in some other systems?
    Here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    verticalAlign="middle"
    backgroundColor="white">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    private function serv_result(evt:ResultEvent):void {
    var resultObj:Object = evt.result;
    userName.text = resultObj.catalog.username;
    emailAddress.text = resultObj.catalog.emailaddress;
    private function serv_fault(evt:FaultEvent):void {
    error.text += evt.fault.faultString;
    error.visible = true;
    form.visible = false;
    ]]>
    </mx:Script>
    <mx:String id="XML_URL">album.xml</mx:String>
    <mx:HTTPService id="loginService"
    url="
    http://localhost/magic94scripts/mgrqcgi94.exe"
    method="POST"
    result="{ResultEvent(event)}" fault="{FaultEvent(event)}">
    <mx:request>
    <appname>FlexDispatch</appname>
    <prgname>Test</prgname>
    <arguments>username,emailaddres</arguments>
    </mx:request>
    </mx:HTTPService>
    <mx:ApplicationControlBar dock="true">
    <mx:Label text="{XML_URL}" />
    </mx:ApplicationControlBar>
    <mx:Label id="error"
    color="red"
    fontSize="36"
    fontWeight="bold"
    visible="false"
    includeInLayout="{error.visible}"/>
    <mx:Form id="form"
    includeInLayout="{form.visible}">
    <mx:FormItem label="resultObj.catalog.username:">
    <mx:Label id="userName" />
    </mx:FormItem>
    <mx:FormItem label="resultObj.catalog.emailaddress:">
    <mx:Label id="emailAddress" />
    </mx:FormItem>
    </mx:Form>
    </mx:Application>
    This is what the XML file looks like:
    <?xml version="1.0" ?>
    - <catalog>
    <username>DaveID</username>
    <emailaddress>DaveName</emailaddress>
    </catalog>

    I'm sorry to be a pest but this link doesn't seem to work!! I
    keep getting this error:
    A system error has occurred - our apologies!
    Please contact your Confluence administrator to create a
    support issue on our support system at
    http://support.atlassian.com
    with the following information:
    a description of your problem and what you were doing at the
    time it occurred
    cut & paste the error and system information found below
    attach the application server log file (if possible).
    We will respond as promptly as possible.
    Thank you!

  • Using Flex/PHP to Display MYSQL data and Images

    Does anyone have any good examples of using Flex 3 in conjunction with PHP to display data and images from a mysql database? I've searched a lot and it seems hard to find this combination. I have manged to create a login system using this which allows users to login via usernames and passwords that are stored in my mysql database (Grizzz helped me out a lot with this).
    But I now want to create a product selection in the site with the categories down the left hand side and the products related to these categories displayed in the other panel once each of these products are clicked. The guy I'm making it for wants to be able to add and delete categories as well as add and delete products so obviously it needs to be done using php and mysql. I'm looking for something similar to the way the online shop is laid out in the following example:-
    https://www.whitestonecheese.co.nz/Radshop/bin/Whitestone.html
    Thanks for any suggestions.

    To solve this problem I had to use labelFunction.  The working line was this:
    <mx:DataGridColumn headerText="Description" labelFunction="dataGrid_labelFunc"  dataField="messageDetail"/>
    The function looks like this:
    private function dataGrid_labelFunc(item:XML, col:DataGridColumn):String {
         var qN:QName = new QName(vm, col.dataField);
         return item[qN].text();

  • Problem in displaying xml data in text area

    my code is
              resp.setContentType("text/html");
              PrintWriter out = resp.getWriter();
              String result = SimulatorProcesser.putMessage("",req.getParameter("in"));
              out.println("<textarea>"+result+" </textarea>");
    but it is giving out put as
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Only one top level element is allowed in an XML document. Error processing resource 'http://localhost:9080/TESTAPI/TestServ...
    <textarea><?xml version="1.0"?><Exception><ErrorCode>9999</ErrorCode><ErrorMessage>null&...
    Kinldy help me ...thanks in advance

    Do you want to view unparsed xml in the textarea? You have to replace at least the HTML entities < and > by & lt; and & gt;, so that they don't get parsed inside the HTML structure. Here is an overview of those entities: http://www.w3schools.com/tags/ref_entities.asp
    You can use String#replaceAll() for this.

  • How to use global classes and display returned data?

    Hello experts,
    I have the following code in a program which accesses a global class (found in the class library). It executes one it's static methods. What I would like to do is to get hold of some elements of the returned data. How do I do that please?
    Your help is greatly appreciated.
    ***Use global class CL_ISU_CUSTOMER_CONTACT
    DATA: o_ref TYPE REF TO CL_ISU_CUSTOMER_CONTACT.
    DATA: dref_tab LIKE TABLE OF O_ref.
    DATA: begin OF o_ref2,
    CONTACTID               TYPE CT_CONTACT,
    P_INSTANCES             TYPE string,
    P_CONTEXT               TYPE CT_BPCCONF,
    P_CONTROL               TYPE ISU_OBJECT_CONTROL_DATA,
    P_DATA                  TYPE BCONTD,         "<<<=== THIS IS A STRUCTURE CONTAINING OTHER DATA ELEMENTS
    P_NOTICE                TYPE EENOT_NOTICE_AUTO,
    P_OBJECTS               TYPE BAPIBCONTACT_OBJECT_TAB,
    P_OBJECTS_WITH_ROLES    TYPE BAPIBCONTACT_OBJROLE_TAB,
    end of o_ref2.
    TRY.
        CALL METHOD CL_ISU_CUSTOMER_CONTACT=>SELECT  "<<<=== STATIC METHODE & PUBLIC VISIBILITY
          EXPORTING
           X_CONTACTID = '000001114875'   "Whatever value here
          RECEIVING
            Y_CONTACTLOG = o_ref
    ENDTRY.
    WHAT I WOULD LIKE TO DO IS TO MOVE o_ref TO o_ref2 and then display:
    1) P_DATA-PARTNER
    2) P_DATA-ALTPARTNER
    How can I do this please?

    I now have the following code. But when I check for syntax I get different error. They are at the end of the list.
    Here is the code the way it stands now:
    ================================================
    ***Use global class CL_ISU_CUSTOMER_CONTACT
    DATA: oref TYPE REF TO CL_ISU_CUSTOMER_CONTACT.
    DATA: dref_tab LIKE TABLE OF oref.
    DATA: begin OF oref2,
    CONTACTID TYPE CT_CONTACT,
    P_INSTANCES TYPE string,
    P_CONTEXT TYPE CT_BPCCONF,
    P_CONTROL TYPE ISU_OBJECT_CONTROL_DATA,
    P_DATA TYPE BCONTD,      "THIS IS A STRUCTURE CONTAINING OTHER DATA ELEMENTS
    P_NOTICE TYPE EENOT_NOTICE_AUTO,
    P_OBJECTS TYPE BAPIBCONTACT_OBJECT_TAB,
    P_OBJECTS_WITH_ROLES TYPE BAPIBCONTACT_OBJROLE_TAB,
    end of oref2.
    TRY.
    CALL METHOD CL_ISU_CUSTOMER_CONTACT=>SELECT     " STATIC METHODE & PUBLIC VISIBILITY
    EXPORTING
    X_CONTACTID = '000001114875' "Whatever value here
    RECEIVING
    Y_CONTACTLOG = oref
    ENDTRY.
    field-symbols: <FS1>      type any table,
                   <wa_oref2> type any.
    create data dref_tab type handle oref.   " <<===ERROR LINE
    assign dref->* to <FS1>.
    Loop at <FS1> assigning  <wa_oref2>.
    *use <wa_orfe2> to transfer into oref2.
    endloop.
    write: / 'hello'.
    =========================================
    Here are the errors I get:
    The field "DREF" is unknown, but there is a field with the similar name "OREF" . . . .
    When I replace itr by OREF I get:
    "OREF" is not a data reference variable.
    I then try to change it to dref_tab. I get:
    "DREF_TAB" is not a data reference variable.
    Any idea? By the way, must there be a HANDLE event for this to work?
    Thanks for your help.

  • Group and display XML Data

    Hi,
    I am building a Dynamic form with below XML to be displayed in tabular format grouped by resultType with comma separated resultDesc.
    <resultTypeParent>
         <resultInfo>
              <resultType>ACP</resultType>
              <resultDesc>Policy</resultDesc>
         </resultInfo>
         <resultInfo>
              <resultType>ACP</resultType>
              <resultDesc>Compliance</resultDesc>
         </resultInfo>
         <resultInfo>
              <resultType>ACP</resultType>
              <resultDesc>Operations</resultDesc>
         </resultInfo>
         <resultInfo>
              <resultType>ACP</resultType>
              <resultDesc>Frameworks</resultDesc>
         </resultInfo>
         <resultInfo>
              <resultType>FKE</resultType>
              <resultDesc>Data</resultDesc>
         </resultInfo>
    </resultTypeParent>
    The output should look like,
    ACP                                             FKE
    Policy, Compliance,                       Data
    Operations, Frameworks
    Can someone help me with a solution/ideas?
    Thank you,
    Sandeep

    You can try converting the blob object first to a string and then displaying it in the Output text field. You can refer to
    How to Convert  Blob to String ? Hi All,
    for converting a blob to string. It many not be a very good idea if the size of the blob very large.
    Thanks,
    TK

Maybe you are looking for

  • Help! Problem with text/html data flavor

    I am having trouble copying text/html mime data to the clipboard. I can copy fine but there seems to be a bug in the JDK that puts extra information onto the clipboard along with the HTML. I am getting the following data copied to the clipboard: Vers

  • N8 Music playing through a TV or AMP

    Hi, firstly I love the N8.  Best purchase in a very long time.   The only concern I have is with the music being played through my TV via the HDMI cable or separately through my speakers/amp via the phono jack port (headphone port).  The music plays

  • Oracle PL/SQL and Microsoft Access..

    Does anyone know of a good tutorial on how to write the correct syntax for Oracle PL/SQL in an Access pass-through query?

  • Export a movie from pc to iPhone

    how to export a movie from pc to iphone

  • Problem moving xcode cocoa c++ app to other mac's

    Hi everyone, My apologies if I am posting this in the wrong forum/section. I am developing a C++ Cocoa app using the latest version of XCode on my MACOS which is running Mountain Lion. It is a fairly simple C++ app but upon copying the executable to