Need help to request XML data

Hello

I use HTTPService to do a POST call and sends the data

< mx:request xmlns = "" >
< level1 > {stringVariable} < / level1 >
< level1of2 > < level2of2 > content < / level2of2 > < / level1of2 >
< / mx:request >

Returning the server data are correct to 'level 1' both "stringVariable" is public.
However, for the next case, which is more than a deep level, "level1of2" Gets the value of:

level1of2 = "[object Object']"

I don't understand why it does not work. Most of the example that I always followed have given application which is two levels deep. For example:

< user >
< name > {inputName.text} < / name >
< / user >

But, instead of getting the user = > name = > < Namehere > I get user = [object Object]...

Can someone explain what is happening here?

Thank you

The fix was to have both of these properties defined in the class:

contentType = "application/xml".
resultFormat = "e4x".

Tags: Flex

Similar Questions

  • Need help in generating XML data to a table in XML format

    Hi all

    I need help to generate an xml file using the data below.

    The table name is T_Data have 4 columns as shown below with data.

    Neighbourhood region Division
    ---------- ----------------------- ----------- -----------
    Northwest Northern California San Jose SJStore1
    Northwest Northern California San Jose SJStore2
    Northwest North of California to the North of THE LAStore1
    Northwest North of California to the North of THE LAStore2
    Northwest North of California to the North of THE LAStore3

    I want to generate an XML file using SQL/XML functions and the XML file should look like as below.

    <>region
    < name of region > Northwest < / name of the region >
    < Division >
    Northern California < division name > < / Division name >
    District of <>
    SanJose < district name > < / District name >
    <>store
    < store name > SJStore1 < / name >
    < store name > SJStore2 < / name >
    < / store >
    < / district >
    < / division >
    < / region >

    Very much appreciate your help here.

    Thank you.

    I tried to group the lines, but they did not then provide a correct output.

    To unflatten dataset, we can use nested GROUP-BY subqueries.

    The following will produce a line by region.
    If all regions must be grouped in a single root element (does not so appear according to the directives of the sample), we just add an another XMLAgg.

    SQL> with sample_data as
      2  (
      3    select 'Northwest' reg, 'Northern California' div, 'San Jose' district, 'SJStore1' st from dual union all
      4    select 'Northwest' reg, 'Northern California' div, 'San Jose' district, 'SJStore2' st from dual union all
      5    select 'Northwest' reg, 'Northern California' div, 'North LA' district, 'LAStore1' st from dual union all
      6    select 'Northwest' reg, 'Northern California' div, 'North LA' district, 'LAStore2' st from dual union all
      7    select 'Northwest' reg, 'Northern California' div, 'North LA' district, 'LAStore3' st from dual
      8  )
      9  select reg
     10       , xmlserialize(document
     11           xmlelement("Region"
     12           , xmlelement("RegionName", reg)
     13           , xmlagg( division_xml )
     14           )
     15           indent -- for display purpose
     16         ) as region_xml
     17  from (
     18      select reg
     19           , xmlelement("Division"
     20             , xmlelement("DivisionName", div)
     21             , xmlagg( district_xml )
     22             ) as division_xml
     23      from (
     24          select reg
     25               , div
     26               , xmlelement("District"
     27                 , xmlelement("DistrictName", district)
     28                 , xmlelement("Store"
     29                   , xmlagg(
     30                       xmlelement("StoreName", st)
     31                     )
     32                   )
     33                 ) as district_xml
     34          from sample_data
     35          group by reg
     36                 , div
     37                 , district
     38      )
     39      group by reg, div
     40  )
     41  group by reg ;
    
    REG       REGION_XML
    --------- --------------------------------------------------------------------------------
    Northwest 
                Northwest
                
                  Northern California
                  
                    North LA
                    
                      LAStore1
                      LAStore3
                      LAStore2
                    
                  
                  
                    San Jose
                    
                      SJStore1
                      SJStore2
                    
                  
                
              
     
    
  • Need help with an expiration date

    I have as of today on my spreadsheet, need help to make a column of expiry date which will go to the Red 20 days before expiry. Not to find the formula, please help? Thank you.

    Hi Emtsrus,

    Conditional highlighting in column A. Select the cells and then click Conditional highlighting

    Add rule > Dates > in the next

    Another reminder, formula in B2 (and fill down)

    = DATEDIFF (TODAY (), A2, "D")

    Kind regards

    Ian.

  • * Need help with importing partial data of RDBMS table NHI repository *.

    Hello

    I need help to import the partial table RDBMS data, I tried the content in the logical source but still show me all the data available in the database.

    The table contains the partitioned data for which I want to only import single partion according to the partion of function value.

    IE contry = 'Fr '.

    Thanks in advance.

    See you soon,.
    Rajeev

    One possibility is to do the filtering on the physical level itself. You could use a physical table of type 'Select' and filter the data.

    Thank you!

  • Need help with a xml Photo Gallery

    First of all, Hello to everyone. My name is Tudor, I'm from Romania and I have a flash project that involves the XML construction by scrolling photo gallery. Sorry if my English will slip in some sentences. Well, the question for which I have to get an answer is: I have already built the Gallery, everything works fine... but... when I want to make some changes when loading images... Well, here's the problem. I print the code and briefly explain and ask at the end...

    import com.greensock.TweenLite;

    import com.greensock.TweenMax;

    Import fl.transitions.Tween;

    Fl.transitions.easing import. *;

    Fl.transitions import. *;

    Import fl.containers.UILoader;

    var MASK_WIDTH:Number = myMask_mc.width;

    var menuHolder:MovieClip = new MovieClip();

    menuHolder.x = myMask_mc.x;

    menuHolder.y = myMask_mc.y;

    addChild (menuHolder);

    var mouseIsOver:Boolean = false;

    var oldX:Number = menuHolder.x;

    menuHolder.mask = myMask_mc;

    to import flash.filters.ColorMatrixFilter;

    Import fl.motion.AdjustColor;

    var color: AdjustColor;

    colorMatrix var: ColorMatrixFilter.

    var matrix: Array;

    var filterBW: Array;

    color = new AdjustColor();

    Color.Brightness = 20;

    Color.Contrast = 20;

    Color.Hue = 0;

    Color.saturation = - 100;

    matrix = color. CalculateFinalFlatArray();

    colorMatrix = new ColorMatrixFilter (matrix);

    filterBW = [colorMatrix];

    HERE I read and parse the XML

    var xmlLoader:URLLoader = new URLLoader();

    var xmlData:XML = new XML();

    xmlLoader.addEventListener (Event.COMPLETE, LoadXML);

    xmlLoader.load (new URLRequest ("C:/Documents and Settings/Sm/Desktop/feteModel.xml"));

    function LoadXML(e:Event):void

    {

    xmlData = new XML (e.target.data);

    ParsePictures (xmlData);

    }

    function ParsePictures(input:XML):void

    {

    var mainPictures:Array = new Array();

    var firstPictures:Array = new Array();

    var secondPictures:Array = new Array();

    var thirdPictures:Array = new Array();

    var forthPictures:Array = new Array();

    var dimensiuniArray:Array = new Array();

    var heightArray:Array = new Array();

    var eyeColorArray:Array = new Array();

    var hairColorArray:Array = new Array();

    var numeArray:Array = new Array();

    var mainPicturesList:XMLList = input.fata.pozaPrincipala;

    var firstPicturesList:XMLList = input.fata.poza1;

    var secondPicturesList:XMLList = input.fata.poza2;

    var thirdPicturesList:XMLList = input.fata.poza3;

    var forthPicturesList:XMLList = input.fata.poza4;

    var dimensiuniList:XMLList = input.fata.dimensiuni;

    var heightList:XMLList = input.fata.inaltime;

    var eyeColorList:XMLList = input.fata.culoare_ochi;

    var hairColorList:XMLList = input.fata.culoare_par;

    var numeList:XMLList = input.fata.nume;

    for each (var element1:XML in mainPicturesList)

    {

    mainPictures.push (item1);

    }

    for each (var element2:XML in numeList)

    {

    numeArray.push (item2);

    }

    HERE I UPLOAD THE PHOTOS... I must say that menuItem is a mc - implemented as a class, which has essentially within a textfield and a UILoader a preloader - also movieclip. Also, I need the images to be black and white when they are displayed, and when the mouse is on color

    for (var i = 0; i < mainPictures.length; i ++)

    {

    var menuItem:MenuItem;

    menuItem = new MenuItem();

    menuItem.y = 200;

    menuItem.x = (i * (menuItem.width + 1)) + 150;

    menuItem.itemLoader.filters = filterBW;

    menuItem.itemText.text = numeArray [i];

    menuItem.itemLoader.source = mainPictures [i];

    menuItem.itemLoader.maintainAspectRatio = false;

    menuItem.itemLoader.addEventListener (Event.COMPLETE, completeHandler);

    //menuItem.itemLoader.addEventListener (Event.COMPLETE, uiLoaded, false, 0, true);

    //menuItem.itemLoader.addEventListener (ProgressEvent.PROGRESS, progressHandler);

    / / menuItem.itemLoader.load ();

    //menuItem.preloader_mc.visible = true;

    int completeHandler(event:Event)

    {

    / / trace (menuItem.itemText.text);

    }

    menuItem.mouseChildren = false;

    menuItem.buttonMode = true;

    menuItem.addEventListener (MouseEvent.MOUSE_OVER, mouseOverItem);

    menuItem.addEventListener (MouseEvent.MOUSE_OUT, mouseOutItem);

    Add the menuItem to the menuHolder

    menuHolder.addChild (menuItem);

    }

    menuHolder.addEventListener (MouseEvent.MOUSE_OVER, mouseOverMenu);

    menuHolder.addEventListener (MouseEvent.MOUSE_OUT, mouseOutMenu);

    function mouseOverMenu(e:Event):void

    {

    mouseIsOver = true;

    //Calculate the vertical distance of extent to which the mouse is

    //the topleft of the mask.

    var distance: Number = mouseX - myMask_mc.x;

    //Calculate the distance in percentages

    var percent: number = distance / MASK_WIDTH;

    //Save y holder old coordinate

    oldX = menuHolder.x;

    var targetX:Number =-((menuHolder.width-MASK_WIDTH + 150) * percentage) + myMask_mc.x;

    //Tween the menuHolder at the coordinate of the target

    TweenMax.to (menuHolder, 5, {x: Math.round (targetX)});

    }

    This function is called when the mouse is on the menu

    function mouseOutMenu(e:Event):void

    {

    mouseIsOver = false;

    }

    var tw1:Tween;

    var tw2:Tween;

    function mouseOverItem(e:Event):void

    {

    var point: MenuItem = e.target as MenuItem;

    menuHolder.addChild (item);

    item.itemLoader.filters = [];

    / / trace (item.itemText.text);

    tw1 = new Tween (element, "scaleX", Strong.easeInOut, 1, 1.25,0.25,true);

    tw2 = new Tween (order of the day, "scaleY", Strong.easeInOut, 1, 1.25,0.25,true);

    }

    This function is called when the mouse moves out of the element

    function mouseOutItem(e:Event):void

    {

    var point: MenuItem = e.target as MenuItem;

    item.itemLoader.filters = filterBW;

    tw1 = new Tween (object, "scaleX", Strong.easeInOut, 1.25, 1,0.25, true);

    tw2 = new Tween (point, "scaleY", Strong.easeInOut, 1.25, 1,0.25, true);

    }

    }

    ////

    Now I want each image to scale when loading fully... I thought that simply put it on the completeHandler function, but here's the problem: it measures only the last photo... for example. If there is 5, he played only the 5th... I tried to find the name of the image within the completeHandler and also, I had 4 identical names - the name of the last picture... my question is: why the completeHandler triggers only for the last item?   Anyone have any idea why this is happening? Plus, how can I solve this problem? Please... I'm burning my brain here for half a day here...  THANKS in advance!

    Best REGARDS, Tudor

    You are welcome.  It will work, but if you have any problems, simply start another view showing the code (not all what you have done for this) and someone will probably try to help.

  • Some need help... export data of virtual machines

    Hay there!

    I am trying to export CSV data from my VC and I'm stuck at halfway.

    What I need is a CSV file with these headings: 'VM_Name', 'VM_Datastore', 'VM_NIC0_MAC', 'VM_NIC1_MAC '.

    All virtual machines are in the same cluster and whose name contains the pattern "* \(*\)". (all virtual machines with a vCD name extension).

    So far I managed to not get the names in the output, and I'm having a difficult time for the rest of the information on.

    That's what I did:

    Get-Cluster 'QA ' | Get - vm | Select-String - Pattern "\(*\)" | Select-Object line | Export-Csv C:\Export.csv

    As you can see, this is far from even coming close to what I need, so any help would be appreciated...

    Get-Cluster 'QA ' | Get - vm | Select-String - Pattern "\(*\)" | Select-Object line | Export-Csv C:\Export.csv

    You can use a clause Where the filter on the virtual machines that you want, and then a Select to retrieve the required properties.

    Try like this

    Get-Cluster "QA" | Get-VM | Where {$_.Name -match "\(*\)"} |Select Name,  @{N="Datastore";E={(Get-View $_.DatastoreIdList | %{$_.Name}) -Join ','}},  @{N="MAC0";E={$_.NetworkAdapters[0].MacAddress}},  @{N="MAC1";E={$_.NetworkAdapters[1].MacAddress}}
    
  • Need help for the structured data to SEO/Google webmaster section...

    I finished my Adobe Muse (www.redoaklegalpc.com) site and he has published on (online marketing) Business Catalyst and added the site on Google for webmasters... I downloaded my my sitemap.xml and had indexed pages. I've added the appropriate tags (H1, H2, H3, etc.), metadata, robot.txt and image assets. I edited the properties of page on all pages... but for some reason any Google still cannot read my pages. I use police Mako, which is listed as a 'web-safe' police When I shoot to the top of my site in the section of structured data, it contains no text and appears as images that are missing. (see image below) The text on the muse has no small image box in the corner, so it seems that I am using the html text and exporting is not the text as an image... So now I'm stuck. How can I do to make my text appears in Google so I can use the data marker to help Google to create site links, etc. ?

    google webmaster image not working.jpg

    Here's a similar thread which should clarify your doubts about Google Sitelinks - http://forums.adobe.com/message/5409377.

    Thank you

    Vinayak

  • Need help to process form data

    Hello
    We have a definition of IT say SSH resource type. We have number of IT resources-abc, xyz the same type SSH.
    When the user is provisioned to this resource, then in the profile of resources, we can see name of resource such as SSH. In the form of SSH process, we can see the resource name - abc, xyz
    Now the requirement is I need this resource all SSH process COMPUTER name. I wrote a java code that sends an email to the owner of the application when this SSH resource is revoked. But I need to show TI resource name - abc, xyz in e-mail to the owners of applications.

    Can someone help get the shape of process data?

    Thank you
    Kalpana.

    Enter the task of the adapter instance to process directly key instead of fix in the code. You will get this in the treatment of the data-> instance to process key

    -nayan

  • help to load xml data into a loop

    Hola amigos, acudo a ustedes porque estoy doing a small application that muestre archivos para mi nueva zona of descargas, esta take utilizando diagramacion paint (gracias por los slideshows as against aqui) y los archivos los carga desde los datos a xml file.
    I have a movieclip cargado con addChild, y knew vez dentro carga tambien con addChild varios insert utilizando UN loop, the cosa are what who use ese mismo loop para as cada vez shouts the panel of the United Nations, are the cargue los datos xml, pero no puedo hacerlo, sale me el error 1009 respond el object are nulo. ACA the dejo parte del codigo, por if any of ustedes me can help con eso.
    Por adelantado the agradesco.

    Hello people, I come to you because I do a small application that shows the files for my new download area, it is made using liquid layout and files information loading from a xml file.
    I have a movieclip loaded with addChild and Interior load also with addChild several panels by using a loop, the thing is that I wanted to use the same loop for each time to add a new Panel, also load information to an xml file, but I can't do it every time show my 1009 error saying that the object is null (void). Here I leave you a part of the code for them if anyone of you can help me with this.
    Thank you in advance for the help, and here is a sample of the API: http://nesmothdesign.com/Media/home.swf

    set the XML

    var imgLoader:Loader;
    var xml;
    var xmlList:XMLList;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load (new URLRequest ("listado.xml"));
    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    function xmlLoaded(event:Event):void
    {
    XML = XML (event.target.data);
    xmlList = xml.children ();
    trace (xmlList.length ());
    }

    Add counter to the panns
    var miContenedor:contenedor;
    miContenedor = new contenedor();
    addChild (miContenedor);
    Tweener.addTween(miContenedor,{x:stage.stageWidth/2-465,time:1,transition:"easeIn"});)
    miContenedor.y = body_mc.y + 10;
    Add container´s children-
    var miPartA:panelTipoA;
    var miPartB:panelTipoB;
    for (var a: int = 0; has < = 3; a ++)
    {
    miPartA = new panelTipoA();
    miPartB = new panelTipoB();
    miContenedor.addChild (miPartA);
    miContenedor.addChild (miPartB);
    miPartA.y = a * miPartA.height + (a * 10);
    miPartB.y = a * miPartB.height + (a * 10);
    miPartB.x = miPartB.width + 15;
    imgLoader = new Loader();
    imgLoader.load (new URLRequest (xmlList [a] .attribute ("thumb")));
    miContenedor.miParteA.addChild (imgLoader);
    }

    Atention: las 3 of code lines should add the respective to the pannel xml file data.

    miContenedor.miParteA.addChild (imgLoader);

    is the problem.  There is no miContenedor.miParteA.  use:

    miParteA.addChild (imgLoader);

  • Need help to create "no data available" message with multiple data models

    I tried several ways to have a "no documents found" generic message based on certain criteria however it doesn't seem to work. I have two models of data, each only show the information if something is created, deleted, etc. in a certain number of days. If nothing happens for these days, I don't want to report table to display, only a message saying something like "no record".

    I tried the following different types:
    <?if:count(ROW/opened_last_7_days) = 0?>There weren’t any projects created within the past week.<?end if?>
    <?if:count(ROW/opened_last_7_days) > 0?> (report table) <?end if?>
    <?if:count(DATA/opened_last_7_days) = 0?>There weren’t any projects created within the past week.<?end if?>
    <?if:count(DATA/opened_last_7_days) > 0?> (report table) <?end if?>
    The names of the two data models are:
    opened_last_7_days
    closed_last_7_days

    I be recover anything on the page or both records not found and the table appear.

    Sql queries work fine, I get all the answer I need.

    Any help would be appreciated. Thank you.

    Take a look at this: http://winrichman.blogspot.com/2009/05/no-data-found.html

    Thank you!

  • Need help to request a code signing key

    Hello

    Unfortunately, a forum search has not revealed anything and since I can't find any way to report problems with the site of the developer of the RIM, so... here go us:

    As a first time dev, I just downloaded the SDK and emulator, the I tried to go through the "getting started" doc As a first step, it says:

    "Request permission to sign BlackBerry Tablet OS applications by completing the web form at
    http://developer.blackberry.com/native/beta/signingkey . After your application is accepted, youreceive two CSJ registration files by email. One file allows you to configure your keystore to sign
    applications; the other file allows you to create debug tokens. Each file arrives in a separate emailwith information about the purpose of the file attached."
    

    Well that's where I'm stuck already: after completing this form, when I hit the submit button, all I get is:

    Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in
    /opt/sites/native/app/libs/sanitize.php on line 451
    Cannot redirect! Headers have already been sent!
    

    So apparently some PHP - guy didn't properly test its code of form validation.

    Saddest:

    The link only I could find reviews of the website was. to http://us.blackberry.com/contact/ (mailto link [email protected]). And send a report to this address just resulted in a response canned (useless), saying that the mail was not delivered, and I should find an alternative care option (followed by several products related links).

    Well: I don't have a problem with products like software development kits, software, peripheral... my prob is the RIM site itself!

    So I hope that some members of the staff on BOARD reads this and can direct me to the appropriate Department...

    Clueless

    -Fritz

    Hi people,

    We are aware of the issue and helping them to solve.  Must be addressed very soon.  In the meantime, you can order keys directly here https://www.blackberry.com/SignedKeys/

    shape is slightly different but its attached to the same system of back-end and you will get the same keys

  • Grandma needs help problem "sysdata.xml.

    I bought a computer about 18 months ago that started unexpectedly quit after 12 months. No error message. I went back to the provider that did not cause after replacing the power supply and move the surge protection. He replaces computer and transfer data via Acronis. Stops kept happening, but now I get the message that Microsoft has deceted a problem and restarts the computer. When I look into the details, I see whenever there is the same message but with different sysdata.xml figures for example WER-96377-0. I sent this to the supplier who ignores me currently. I ran a scan of Malware and a sweep of CCleaner. I tried to find the file, but it is not visible. I googled the file details and see that this is one problem with others. I have no hope of understanding or to fix this problem myself. What I want to know is it something I should continue with the technician who sold me this nightmare? Why this is happening? Is it her fault or mine? I'm really lost here, oh and frustrated too, I could really do with some advice on how to proceed.

    Thanks in advance.

    You are welcome.

    Quite often blue screen errors are caused by a faulty driver. The pilot could be a hardware or software driver.

    Blue screen sometimes errors are caused by defective hardware.

    By looking at the files minidump would give an indication of what (s) or material may have caused the accident.

    If the person tries to solve the problem has a background in troubleshooting blue screen error then there is a good chance that he or she can decide the issue.

    If the problem is software it might follow you for Windows 10 so it's best to try so to resolve this matter before the upgrade.

    Obviously if the problem is hardware problem would be independent of the operating system.

    If you have a new computer the problem would follow you if the problem was software and that you have installed the same software on the new computer.

  • Need help on request

    Hello


    Could someone help me please on this query:


    drop table tt1;

    create the table tt1 (id number);

    Insert into tt1 values (1);

    Insert into tt1 values (2);

    Insert into tt1 values (3);

    Insert into tt1 values (7);

    Insert into tt1 values (8);


    drop table tt2;

    create table tt2 (identification number, name varchar2 (30));

    insert into tt2 values (7, 'Name 7');

    insert into tt2 values (8, 'Name 8');

    insert into tt2 values (11, ' 11 name ');

    insert into tt2 values (12, 'Name 12');

    commit;


    Select * from tt1;

    ID

    ----------

    1

    2

    3

    7

    8

    Select * from tt2;

    NAMES OF ID

    ---------- ------------------------------

    7 name 7

    8 name 8

    Name 11 11

    Name 12 12

    The result of the query should be:

    NAMES OF ID

    1

    2

    3

    7 name 7

    8 name 8

    Thanks in advance!

    Hello

    If you want each line of tt1 joined in its corresponding row in tt2, but if there is no corresponding row in tt2, you want to show data from tt1 anyway; Isn't it?

    That's exactly what outer joins have been designed to do:

    SELECT tt1.id

    tt2.names

    OF tt1

    LEFT OUTER JOIN tt2 ON tt1.id = tt2.id

    ORDER BY tt1.id

    ;

    Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!

  • Need help while mapping of data to another host store.

    Dear team,

    I have a single cluster and two hosts esx is a member of the same thing. now ESX1 SAN1 lun that is only visible to host ESX1, now we have mapped LUN SAN1 at ESX2, it is visible to add windows storage

    CR.JPG

    Now when I go to add the same I m getting this screen...

    CR.JPG

    What option I will choose to add a data without lossing store existing data.

    Please help me, it's urgent...?

    Concerning

    Mr. VMware...

    From orders, it seems that your colleague has checked if the LUNS were visible as of the snapshot LUNS and then mounted their strength to the host (see, for example, http://kb.vmware.com/kb/1011387) Once mounted he checked if data warehouses are available (write access) simply by creating and deleting the file.

    In any case, if the ID LUN LUN in the same environment of vCenter Server do not match you may run into questions at a later time. Then please ensure the LUN ID match!

    André

    PS: It is equivalent to the "vdf" Linux command 'df' command, but has a few additions about the scores of VMware.

  • Need help to save my data store ESXi (free)

    I have a Dell poweredge T110 with ESXi installed on a USB key. I currently have a SATA 1 250 disc as my data store. I have 14 installed vms but only two can work until I get more RAM. I was wondering how can I save my virtual machines? I have a disc of 2 t I can use but its hook up to my media center using NTFS. How can I send my backups on this disc. Any help will be welcome. Thank you

    You can use ghettoVCB or VM Explorer (from Trilead )

    André

Maybe you are looking for