Problem getting the selecteditem in tree while fetching data through httpserivces

I have a mxml file in which a want to display data in tree structure. The supplied to the tree is fetched from database through httpservice
the mxml file content is :
<?xml version="1.0" encoding="utf-8"?><mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete ="getMenu.send();">
<mx:HTTPService id="
getMenu"method="
GET"url="
http://172.17.26.55:7001/frmwk/MenuData"resultFormat="
e4x"result="resultHandler(event)"
useProxy="
false" 
/>  
<mx:Script>
<![CDATA[
import mx.controls.Alert; 
import mx.rpc.events.FaultEvent;  
import mx.rpc.events.ResultEvent;  
import mx.collections.XMLListCollection; 
import mx.events.CloseEvent; 
private var companyData:XML = new XML; 
private var Menu:XMLListCollection; 
private function resultHandler(event:ResultEvent):void{ 
companyData = event.result
as XML;Menu =
new XMLListCollection(companyData.MENU);tree.dataProvider=Menu;
private function getSelected():void{ 
Alert.show(
"selected--->"+tree.selectedItem);}
]]>
</mx:Script>
<mx:Label text="Tree with XML data"/>
<mx:Tree id="tree" top="100" left="400" labelField="@title" height="224" width="179"dragEnabled="
false" dropEnabled="false" allowMultipleSelection="true" 
/>
<mx:Button label="get Selected item" click="getSelected()" x="400" y="450"/>
When i try to get the selected item is is giving me null
Please help !!
thanks in advance.

How are you selecting the item? How many items are you selecting?

Similar Messages

  • Hyperion IR : Getting out of memory error while fetching data for whole year through web client (wrokspace)

    Hi,
    While fetching data though IR wen client from workspace for a year(all 12 months) I am getting error as ("Out of Memory .Advice : Close other applications or windows and try again").
    If I am trying same through IR studio it does not give any output and show me same repoting front page.
    If i am selecting periods till 8 months it is giving the required data in both IR web client and IR studio.
    Could you please suggest how can we resolve this issue.
    Thanks,
    D.N.Rana

    Issue Cause :
    Sometimes this is due to excessive data which brings the size of the BQY file up around one gigabyte uncompressed in size (for processing may take twice as actual RAM, plus the memory space space for the plugin, and the typical memory limit on a 32-bit system is 2 gigabytes).
    Solution :
    To avoid excessive BQY size exceeding memory availability:
    Ensure that your computer has at least 2Gb of free RAM before he runs IR Studio.
    Put a limit to the number of rows that can be pulled down: Right click on Request label of Query section and put a value in Return First xxx Rows (and check the check box).
    Do not pull down more than 750 MB of data (remember it may be duplicated while processing).
    Place limits or aggregations in Query section (as opposed to Result section) to limit data entering the BQY.

  • Only 1st character while fetching data through get_char_property

    Hi
    I am reading excel file through OLE2 object. while I am fatching data thr this utility It is fetching only first character of the string.
    procedure read_chr_cell( p_row number, p_col number, p_value in out varchar2 ) is
    args ole2.list_type;
    cell ole2.obj_type;
    begin
    args := ole2.create_arglist;
    ole2.add_arg(args, p_row );
    ole2.add_arg(args, p_col );
    cell := ole2.get_obj_property(worksheet,'Cells',args);
    ole2.destroy_arglist(args);
    p_value := ole2.get_char_property(cell,'Value'); [[[ PROBLEM AREA ]]]
    ole2.release_obj(cell);
    end;
    any advice is appreaciate
    Thanks
    Vishal

    Hi Vishal
    I think u need to LOOP Through the Records :)
    Hope this helps...
    Regards,
    Amatu Allah

  • Append a string while fetching data Through Sql Statement

    Hi i have a table which having a one field contains information of some delted files.
    when i write a sql query to fetch the information its giving out put like ..
    SELECT DISTINCT filedname  FROM TB_JOBCOMP_DBS40
    Assinid
    complte_date
    pr_date
    but i need a out put like
    Assinid -------------------->deleted
    complte_date -------------------->deleted
    pr_date -------------------->deleted
    is there any way to write sql to fetch this information

    Are you looking for concatenation ?
    SQL> select concat(ename,'----- Names Of employee') from emp
      2  WHERE rownum<3
      3  ;
    CONCAT(ENAME,'-----NAMESOFEMPLOYEE')
    SMITH----- Names Of employee
    ALLEN----- Names Of employee
    SQL> select ename||'----- Names Of employee' from emp
      2  WHERE rownum<3;
    ENAME||'-----NAMESOFEMPLOYEE'
    SMITH----- Names Of employee
    ALLEN----- Names Of employee

  • Trying to update iTunes and I get the error - "errors occured while installing the updates. If the problem persists, choose Tools Download only and try installing manually". Currently on version 10.5.3.3 trying to update to 11.0.2 on a Windows 7 64-bit

    Trying to update iTunes and I get the error - "errors occured while installing the updates. If the problem persists, choose Tools > Download only and try installing manually". Currently on version 10.5.3.3 trying to update to 11.0.2 on a Windows 7 64-bit.

    Try updating your iTunes using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
    http://www.apple.com/itunes/download/

  • Getting the following error message while login to OFA Analyst

    Hi
    I am getting the following error message while connecting to a OFA Analyst database and then I am not able to see any of the reports in OFA Analyst.
    (MXXEQ35) RE.IWYD_Z70945 is not a valid RE.ENTRY
    I think one of the report entry is corrupted in catalog but I am not sure how to restore/resolve it. Is there any way to resolve this problem ?
    This is urgent Please let me know if any one have work around for this.
    Thanks
    Murugesan

    See Note 230019.1 on Metalink for the solution to this problem.
    Hope this helps,
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • How to get the last error for while loop?

    How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.

    What do you mean by "get" and "transfer"?
    If the shift register is not what you want, use a plan tunnel instead.
    Typically, programmers are interested in the first, not last, error.
    Can you show us your code so we have a better idea what you are trying to?
    LabVIEW Champion . Do more with less code and in less time .

  • I am getting the following error message while opening the fire fox browser "sript file:///programe % 20 files/siber%AT% 20roboform/rirefox/components/ref helper.JS:510 in English

    i am getting the following error message while opening the fire fox browser "sript file:///programe % 20 files/siber%AT% 20roboform/Firefox/components/ref helper.JS:510 in English

    ls -l /var/run/lighttpd/
    And how are you spawning the php instances? I don't see that in the daemons array anywhere.
    EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
    You will note that with pre-spawned information, the config looks different[1].
    You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
    [1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change"

  • Everytime iTunes opens on my Windows 7 pc, I get the error message -42110 while it appears iTunes is trying to download a movie I didn't order.  Any suggestions?

    Everytime iTunes opens on my Windows 7 pc, I get the error message -42110 while it appears iTunes is trying to download a movie I didn't order.  Any suggestions?

    Thank you i been looking for a  answer to this all day but I couldn't find anything on it! Now I know I will find a file with it! thanks!

  • I keep getting the following error message while sharing my iMovie to iDVD.  "Unable to prepare project for publishing"  error (-2125).

    I keep getting the following error message while sharing my iMovie to iDVD.  "Unable to prepare project for publishing"  error (-2125).  I'm running iMovie 09 v. 8.0.6 on a iMac with OSX v 10.6.8, 2Ghz core duo, 1GB 667 Mhz DDR2 SDRAM.  Any ideas why?

    That particular error comes up for a number of reasons, sometimes it's the size of the movie you're trying to export. Bengt Wärleby a longtime contributor to the iMovie Discussion Group has advised a number of people on this error code, so I am going to link to his latest advice he's given to anyone trying to export to DVD from iMovie: Bengt's tips for great DVDs.
    Specifically, try bypassing Share to iDVD by using Share to Media Browser instead.
    In the Share to Media Browser dialog box choose the Large Size.
    When(If?) it gets through that process, quit iMovie altogehter then go to iDVD.
    Create a new project and click on the Media button near the lower right hand side of the Project Window.
    Then click the Movies button in the Browser window just above that.
    Under the iMovie star icon you should see the name of the project you shared out from iMovie.
    Drag that into the project and burn the DVD.
    If it's still to large or you get the same -2125 error code trying to Share using the Medium size instead. But again if you really get stuck consult Bengt Warleby's User tips:
    Bengt's tips for great DVDs

  • When trying to download from iTunes, I keep getting the "error 8003" message, while trying to download. What does it mean? What should I do? Help!

    I keep getting the message "error 8003", while trying to download a pre-purshased TV show from iTunes. What does it mean? What should I do?
    Help!

    Have you tried exiting iTunes and restarting? The times I've seen this error this has worked. After restarting iTunes the program asks me to sign into my account and then the downloads begin.

  • I am trying to connect my Sony DCR-TRV350 to iMovie so that I can make DVD's from family videos.  I am having problems getting the video camera connected.  Any advice on how to do this?

    I am trying to connect my Sony DCR-TRV350 to iMovie so that I can make DVD's from family videos.  I am having problems getting the video camera connected.  Any advice on how to do this?

    What happens when, after you connect your cam, you go to File > Import Media?
    But before that, does your cam require you to export your video files upon USB connection? I have a JVC Everio HD and I have to "Export to Library" from the cam's menu first-thing. This was true even in prior iMovie versions.

  • How can we improve the performance while fetching data from RESB table.

    Hi All,
    Can any bosy suggest me the right way to improve the performance while fetching data from RESB table. Below is the select statement.
    SELECT aufnr posnr roms1 roanz
        INTO (itab-aufnr, itab-pposnr, itab-roms1, itab-roanz)
        FROM resb
        WHERE kdauf  = p_vbeln
        AND   ablad  = itab-sposnr+2.
    Here I am using 'KDAUF'  & 'ABLAD' in condition. Can we use secondary index for improving the performance in this case.
    Regards,
    Himanshu

    Hi ,
    Declare intenal table with only those four fields.
    and try the beloe code....
    SELECT aufnr posnr roms1 roanz
    INTO  table itab
    FROM resb
    WHERE kdauf = p_vbeln
    AND ablad = itab-sposnr+2.
    yes, you can also use secondary index for improving the performance in this case.
    Regards,
    Anand .
    Reward if it is useful....

  • Unknown error: there was a problem getting the status directory!

    Hi, Folks,
    I followed the instructions on this page :http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/AddingContent/chapte r_12_section_6.html#//apple_ref/doc/uid/AdminGuide-CH22-SW5, and try to upload a file to our university's Itunes U site.
    I believe got every step right, but server return a error message: "unknown error: there was a problem getting the status directory". Any suggestion or information will be helpful.
    Thanks
    Youjun

    Forgot to mention.  ours is a public site but the collection I am trying to access is not published.
    Youjun

  • RSS Feed from rss generator's new app has changed the feed. Now the description of apps is not showing. the rest is the same. Anyone has an idea why ?  and how do I get the description? if I fetch it from itunes pages would that be considered violation of

    RSS Feed from rss generator's new app has changed the feed. Now the description of apps is not showing. the rest is the same. Anyone has an idea why ?  and how do I get the description? if I fetch it from itunes pages would that be considered violation of apple's terms and conditions? Please help

    See this post.
    tt2

Maybe you are looking for

  • Why assigning a subclass instance to a variable of type of superclass ?

    Hi all, What is the significance of assigning an instance of a subclass to a variable whose type is a superclass's type. For eg. List list=new ArrayList(); If I do so is it possible to execute the methods of the subclass ? regards Anto Paul.

  • Starting a BPM Process - Where is the Service?

    Hi, I build a small test process and tested it, everythings working fine, but now I want to start with an application from portal. Unfortunately I haven't found the service to start the process. Can anybody help me? Regards, Felix

  • Ultra 10 with KVM and usb Sun keyboard

    Hi, I have 4 servers, two ultra 10, a Sun Fire V880 and a Sun Fire V250, I want all of them to be controlled form a KVM which has support of Ultra 10 platforms, that is, i have two cables with sun 6 tyoe keyboard and mouse. To the KVM i have attached

  • Change item programmatic skin at runtime

    AS3 lets you programatically skin a class. For example, on MenuBar control. you can tell an instance of a menuBar which skin to use when a mouse clicks on it, with the following line: myMenuBar.SetStyle("itemDownSkin", myProgrammaticSkinClassName); H

  • Can't open QuickTime after trying to install update 7.4

    I've tried to update my Quicktime Software to the 7.4 that keeps popping up on my software update. After it loads, verifies, and goes to install I receive the notice the Quicktime can't be installed. an unexpected error occurred and the installer pac