Flex Tree does not selecting (highlight) the selectedIndices

have an array of items that should be selected in my tree control. As you can see from my code below,I bind this array to the selectedIndices property of the tree. The selectedItems are not properly selecting in tree(selecting some other items and always root is selected).Flex seems to "ignore" my items (highlights some other indices). Am I missing something?
Perhaps I'm going about this in wrong way?
Thanks for your help!
My XMLList:-
<fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
        <fx:XMLList id="XMLList">
        <node>
            <node name="max">
                <node name="Emanuele"
                      surname="Tatti" age="23" wage="1200"/>
                <node name="Francesco"
                      surname="Rapana " age="22" wage="1000"/>
                <node name="Constantin"
                      surname="Moldovanu" age="23" wage="1200"/>
                <node name="Marco"
                      surname="Casario" age="29" wage="1500">
                    <node name="Marco"
                          surname="Casario" age="29" wage="1500">
                        <node name="Marco"
                              surname="Casario" age="29" wage="1500">
                            <node name="Marco"
                                  surname="Casario" age="29" wage="1500">
                            </node>
                        </node>
                    </node>                
                </node>
            </node>
        </node>
        </fx:XMLList>
</fx:Declarations>
My Action Script Function:-
public function select_tree():Void
tree.validateNow();
var allItems:Array = new Array();
for(var n:Int =2;n<7;n+2)      
        allItems[n]=n; // o/p- 2,4,6
tree.selectedIndices = allItems1;   //2,4,6 items should select ,but 0,2,4,5 are selected why?
*****My MXML:-*****
<mx:Button id="btn" label="Find Unmatch Nodes" width="221" height="30" click="select_tree()"/>
<mx:Tree id="tree"  right="10" top="54" bottom="10" width="49.5%" dataProvider="{XMLList}"
    fontFamily="Verdana" fontSize="11" showScrollTips="true"
    allowMultipleSelection="true"
    alternatingItemColors="[#F5F5F5]"
    labelField="@label" selectionColor="#ECF335" showRoot="false"/>

Are the nodes open to “expose” the children?

Similar Messages

  • The selected Flex SDK does not support building mobile projects

    I am unable to create a new Actionscript Mobile project.  The new project dialogue gives the error: "The selected Flex SDK does not support building mobile projects."  I tried seting the default Flec SDK both to the SDK included with Flash Builder 4.7, and also to a version of the 4.6.0 SDK (build 23201) with AIR 3.3 SDK overlayed on it, which already existed on my computer.  Both resulted in the same error.  Any ideas?

    Hi ,
    Actionscript Mobile projects use AIR SDK by default in Flash Builder 4.7 . Flex SDK won't be used for Actionscript projects.
    Could you please try creating an Actionscript project in fresh workspace and let me know if the issue still exists.
    Also attach screenshot and error log if any.
    Thanks,
    Sanjay

  • When I click on a bookmark to open it, the bookmark (in the sidebar) does not stay highlighted. Why?

    When I open a bookmark, the bookmark title from the list in the sidebar does not stay highlighted. It used to but doesn't anymore. Do you know why? Can I change an option to get that feature back?

    Hello Donald.
    Although possibly not related to your problem, I will remind you that the version of Firefox you are using at the moment has been discontinued and is no longer supported. Furthermore, it has known bugs and security problems. I urge you to update to the latest version of Firefox, for maximum stability, performance, security and usability. You can get it for free, as always, at [http://www.getfirefox.com getfirefox.com].
    As for your issue, you may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • How do you select and move more than one bookmark at a time? Shift+Click does not select multiple items that are next to one another in a list because the item

    How do you select and move more than one bookmark at a time?
    Shift+Click does not select multiple items that are next to one another in a list because the items open in firefox before this happens.

    Use the bookmarks library. You may use Shift +Click, and Ctrl + Click to create groupings of selected bookmarks to drag and drop.
    * one method of opening the bookmarks library is keyboard shortcut <br /> Ctrl+Shift+B (Windows)
    *see also [[How to use bookmarks to save and organize your favorite websites]]
    *and [[Use bookmark folders to organize your bookmarks]]

  • I cannot unlock my phone. When I hit the number the key is highlighted but the "dot" does not show in the passcode box. Have shut it off and restarted nothing. Held on/off and "square" key to reset but still nothing. Any ideas on how to resolve this issue

    I cannot unlock my phone. When I hit the number the key is highlighted but the "dot" does not show in the passcode box. Have shut it off and restarted nothing. Held on/off and "square" key to reset but still nothing. Any ideas on how to resolve this issue

    Connect to iTunes and try to reset it from there.

  • HT1689 In the payment method section under billing it does not give me the option to select none anymore

    In the billing section under select payment method it does not give me the option to select none

    Did you create a NEW account using the instructions in Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card using an email address you had not previously used with Apple?
    You have to.
    Maybe that option is not available in your country. It works in the USA
    You have to follow the instructions

  • Clicking on URL in address bar does not select the URL

    I have Firefox 6 recently installed with Ubuntu 11.04. When you click on the URL in the address bar to enter a new URL, the current URL does not select so that you can just type in the new URL. Instead, the cursor will mark a spot in the current URL and if you type in the new URL, it will only add the typed characters in the middle of the current URL, not replace the whole URL as it should. The only way that I can change websites is by swiping across the current URL to select it, then type in new URL. Or, right click and choose select all, then type in new URL. I have tried starting Firefox in safe mode and disabled add-ons, but still the same. I have not tried to remove Firefox and prefer not to if there is a simple fix. Thanks.

    You can set the pref <b>browser.urlbar.clickSelectsAll</b> to <i>true</i> on the <b>about:config</b> page.
    You can also use a double-click:
    *http://kb.mozillazine.org/browser.urlbar.doubleClickSelectsAll
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • Steady green light on A1084. Airport Utility 5.6 says set up is complete.   Airport Express base station does not appear in the menu bar, so I cannot select it.  Is there a fix?

    Steady green light on A1084. Mac OS X 10.7.5. IMac. Verizon DSL Actiontec GT704-WGB modem. Airport Utility 5.6 says set up is complete.   Airport Express base station does not appear in the menu bar, so I cannot select it and send a signal to airport express to play airtunes through my stereo amplifier.  Is there a fix?

    I plugged a model A1034 Airport Extreme Base Station into the Verizon DSL Actiontec GT704-WGB modem with an ethernet cable and now the AirPlay icon appears in the Itunes window immediately to the right of the volume control and I can select it and play Airtunes wirelessly through the A1038 Airport Express Base Station in another room connected to a stereo amplifier by a Monster mini-to-RCA left/right audio cable running from the output jack on the A1034 Airport Express Base Station into the CD jacks on the amp.  The problem is that I have to select the Apple Network Airport Express Base Station as my network in order to select the Airport Express Base Station when I click the AirPlay icon, which means I have no Internet signal to the Imac. If I select the Airport Extreme Base Station or the Verzion modem as my network, then I have an Internet signal to the Imac, but the Airport Express Base Station is grayed out when I click on the AirPlay icon, so I cannot select the Airport Express Base Station and send tunes to the Airport Express.  It would be nice to play Airtunes while simultaneously accessing the Internet.  I don't understand your question about what program I am using for which I require AirPlay.  I am not learned about computers in general, and even less so about Macs than PCs.  I thought the program I was running was Itunes, and there was no separate program to run to use AirPlay for the purpose of sending a signal from the Itunes on the Imac to the A1084 Airport Express base station in a another room, and then out as described above to the stereo amplifier to listen to Itunes music remotely in the other room, without any kind of cable, wire, etc., connecting the Imac to the stereo amplifier.  I would guess that the most common use for the A1084 is to play Itunes through a stereo in another room without the need to run wires from the computer to the stereo.  I realize it would be easy simply to run a very long mini-to-RCA left/right audio cable across the floor connecting the Imac to the amp without the need to use AirTunes, Airplay or any kind of AirPort, but it would be both unsightly and a tripping hazard.

  • Driver does not appear in the selection tab Windows8

    NDIS protocol driver does not appear in the Selection Tab and hence I can not run any tests on it. The client operating system is Windows 8 64bit Pro Premium. I tried reinstall driver several times, reboot client and studio machines, but with no results.
    Client itself is connected to the studio and is in "Ready" state.
    There was no problem running the test on the same driver with Win7 64bit client OS.
    HCK version is 8.59.29854
    The driver is build with DDK7.1.0
    Any hints on how to debug this would be helpful.
    Dmitry

    Have you uninstalled and re-install the HCK client on the test system?  This can cause the entry on the controller to not match up with the actual client system.  If this is the case, and you have done no testing on the system (as all results will
    be lost), please try this:
    1) Uninstall the DTM client from the test system.
    2) Delete the client entry from HCK studio in the machine management section.
    3) Reinstall the DTM client on the test system.
    4) Wait for client entry appear in the "Default Pool"
    5) Change client status to "Reset", wait for it to become "Ready", and try locating the target as I describe above.
    Paul - This posting is provided "AS IS" with no warranties, and confers no rights.

  • When I select an option from the help drop down menu it just goes away. It does not go to the help option I chose.

    When I select an option from from the help drop down menu it just goes away. It does not go to the query I selected by hitting the keypad.

    Jody
    you don't tell us Device or OS?
    Quoted from  Apple's "How to write a good question"
       To help other members answer your question, give as many details as you can.
    Include your product name and specs such as processor speed, memory, and storage capacity. Please do not include your Serial Number, IMEI, MEID, or other personal information.
    Provide the version numbers of your operating system and relevant applications, for example "iOS 6.0.3" or "iPhoto 9.1.2".
    Describe the problem, and include any details about what seems to cause it.
    List any troubleshooting steps you've already tried, or temporary fixes you've discovered.
    ÇÇÇ

  • When trying to edit text added with the Add Text option, the hand tool does not select it.

    I filled out a form that was not fillable using the Add Text option. Now I need to edit it and was advised to use the Hand Tool to select it. I tried this, and it does not select the text, I see the blue box but cannot put it around the text to edit or delete it. Any suggestions?

    Hi  LZW 4431,
    Thank You for posting on the forums. Kindly help with the information listed below.
    1) Application you are using (Adobe Reader/Acrobat with exact version)
    2) Operating System you are working on
    Thanks,
    Vikrantt Singh

  • List does not exist . The page you selected contains a list that does not exists. It may have been deleted by another user

    Hi everybody!
    I have a sharepoint 2013 farm with 5 sever. I upgraded a site from sharepoint 
    2007 to sharepoint 2013. I had some problems to install and configure workflow manager and register it. but by now I found problems and I can create a workflow and run it successfully. My big problem is when I try to get a lookup field in my flow. the
    flow suspended and I got the following error:
    “List does not exist . The page you selected contains a list that does not exists. It may have been deleted by another user.”
    Any solution???
    Thanks in advance!

    Hi,
    Please make sure the source list of the lookup column and the list which consumes the content from the lookup column exists on the site collection.
    In addition, to correct this problem the following steps should be applied:
    Delete the affected Workflow association
    Go to "Central Administration" - "Application Management"
    Select the affected web application and choose "General Settings" - "Resource Throttling"
    Increase the value configured as "List View Lookup Threshold"
    Perform an iisreset to ensure that all in memory instances of the web application settings are gone
    Add the Workflow association back to the list
    More information is here:
    http://social.technet.microsoft.com/Forums/en-US/3aeeba20-07dd-4e46-941b-a3db1bb3577e/sharepoint-2013-designer-workflow-the-page-you-selected-contains-a-list-that-does-not-exist?forum=sharepointcustomization
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Only visa payment option is highlighted when I am trying to create a new account. I have a MasterCard. When I click on MasterCard, it does not select

    Only visa payment option is highlighted when I am trying to create a new account. I have a MasterCard. When I click on MasterCard, it does not select

    I tried logging in through ITunes. It's still not selecting other payment options.

  • Bug: JList does not always show the right selection

    I have a JList (Navigator model!) on my form which contains the data of a certain view. The view consists of several attributes but the navigator model always only shows the value of one field. The field I have choosen hasn't an unique value but that's no problem for what I want to do with the JList.
    When I select another row in the view object useing it's key the row is selected in the view object (which I can check looking at the primary key attribute of the currently selected row), but in the JList sometimes the wrong row is selected. I noticed that if there is another row with the same value for the visible attribute (in my case an attribute called "name") as the row which is selected in the view object sometimes this wrong row is selected in the JList. This occurs if the wrong row with the same visible value (name) is at a higher position in the list. So it looks like the BC4J framework checks what the value is of the visible attribute of the currently selected row in the view object and used this value to select the first row in the JList that has this value. This doesn't necessarily mean it's the right row!!!
    E.g.
    The initial view object:
    PK | Name
    1 | test
    2 | another test <-- currently selected row
    3 | test
    The initial JList:
    | test |
    | another test | <-- currently selected row
    | test |
    Now I tell the view object that I want to select the row with primary key value "3".
    Now my view object looks like this:
    PK | Name
    1 | test
    2 | another test
    3 | test <-- currently selected row
    But my JList now looks like this:
    | test | <-- currently selected row
    | another test |
    | test |
    I hope this is sufficient information to trace the bug, if not feel free to contact me (by sending a response to this message). I'm useing JDeveloper 9.0.3 preview!
    Regards,
    Peter

    Well, how should the list resolve the difference between two "displayed values" that are same?Well, if I select a certain value in the list the connected record in the ViewObject is selected. In other words the JList seems to know enough about the ViewObject to select the correct record (it doesn't select the first record in the ViewObject with the display value!). So if "it" knows how to do it one way, why not the other way?When you select by index then the object corresponding to that index is selected and that means the right row (if you are able to figure out which row by simply having the knowledge of the row index though even though the displayed values are duplicate - but I won't say that's realistic). The other way, it only has a value - string that it has to match with a set of values in the list and that logic has no clues which of the "duplicate" entries would be the right one.
    To resolve such conflicts you could add another "displayed attribute" in the list which is going to make the attribute-set unique in the list.I did do that already, but then my list becomes read-only (not selectable) because the attribute I added is a primary key attribute which is a DBSequence field what may not be changed once it has been inserted. The weird thing is, you can't change the value when you select it from the list, so why does it behave like this? (In other words why is a list with a read only display attribute also read only? because selecting something in a navigator list doesn't mean something get's changed in the selected attribute value!). I'd chase this one. This definitely sounds like a bug. Readonly-ness should not be derived from "displayed" attributes but "updateable" attributes.

  • Apex 4.0 tree does not work with more than 2 levels.

    When I have more than 2 levels in my tree, I only see the root node. The query works fine and returns 132 rows when I run it in SQL. It is just the tree that does not work.
    The same tree when built in 3.2 works fine.
    This is my tree query:
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    "NAME" as title,
    null as icon,
    "ID" as value,
    null as tooltip,
    null as link
    from (
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    Level = 2
    Parent = Module
    Node = Functional Areas
    ID = '__FA_' prefixing functional area code
    UNION ALL
    SELECT '__FA_'||funcarea_key id
    , '__MD_'||module_key pid
    , funcarea_name name
    , funcarea_key link_id
    , '__FA__' a1
         , null a2
    FROM c_functional_area
    Level = 3
    Parent = Functional Area
    Node = Fact Group
    ID = '__FG_' prefixing fact group key
    UNION ALL
    SELECT '__FG_'||factgroup_key id
    , '__FA_'||funcarea_key pid
    , factgroup_name name
    , factgroup_key link_id
    , '__FG__' a1
         , null a2
    FROM c_fact_group
    start with "PID" is null
    connect by prior "ID" = "PID"
    order siblings by "NAME"
    If I reduce the query to just use two levels like:
    SELECT '__TOP_NODE__' id
    , NULL pid
    , 'BI Applications' name
    , '' link_id
    , null a1
         , null a2
    FROM dual
    1 b) BIA Modules
    UNION ALL
    SELECT '__MD_'||module_key id
    , '__TOP_NODE__' pid
    , module_name name
    , module_key link_id
    , '__MD__' a1
         , null a2
    FROM c_bia_module
    It works fine. Can somebody let me know what I am doing wrong? Is there a way to set the number of levels supported in 4.0?

    Hi Vidya,
    Thanks for posting your example. You may want to remove your workspace details from the previous posting, or at least update the password on the workspace. I've taken a look at your example and initially couldn't see anything wrong with your tree query. However, when I ran your query in SQL Workshop, it only returned one row, which would explain why you were only seeing one node in your tree! I've updated your query to use a WITH clause, and the tree is now working correctly. I believe you've hit an underlying database bug where the CONNECT BY query is only returning 1 row, when in fact it should return > 1 row. By re-writing the query to use a WITH clause, you can get around the problem.
    Regards,
    Hilary

Maybe you are looking for

  • New to BT, Speed and Stability Issues

    Hiya, I've been on BT Unlimited Broadband for just over 2 weeks now. I have a few problems, it seems: 1. Gigabit port just doesn't seem to work. I've searched this one and I do have a HH3 Type A. It works on the occasional restart, but then stops...

  • How to schedule a print job in Lion.

    I had snow leopard and when I upgraded to lion I can't figure out how to schedule print jobs. I use to be able to do work at night. Then print in the morning so I wouldnt disturb anyones sleep. How do I do it with Lion?

  • Ordered a few books&says problem with payments. My MCard is good bit says security code wrong.

    I just ordered about 6 GRE study guides on iBooks. My credit card has more than enough money on it.  It keeps saying my security code is wrong but it isn't. Is there an overall daily price limit or is my credit card causing the issue. If its my card,

  • Can we pass value of variable in Authorware5.2 to Flash 5

    Hi, I want to pass value of one variable which is in the Authorware5.2 to Flash 5. Depending on that value i want to duplicate the Movie clip. Is it possible and How? Thanks in advance.

  • Create object without instance name

    hi here is the problem , i have hero shoot bullets and because of that i cant give the objects an instance names and i wanna check if the object on the stage or not and that is easy when i do    var bullet:BULLET = new BULLET if (bullet.stage){ addCh