Tree mystery

I have a tree that is populated by an external xml file.
I have set up a handler that executes when a tree node label is clicked. This handler opens all child nodes of the clicked node.
However, I want the tree root node to be expanded in the same way when the xml is loaded and set as the tree dataprovider.
So I have set up a function to take care of this.
The problem is that the root node is not expanded, even if the exact same code is executed as when clicking a label to expand a node.
Tracing shows that everything is identical in the two cases.
So I wonder, why dont the tree expand at startup ?
Any help will be greatly appreciated as this drives me nuts...

Thanks Flex harUI.
CallLater did it.
Mystery solved...

Similar Messages

  • The case of the mysterious non-expanding tree.

    Hello all,
    I've got a strange problem that I can't figure out. At it's
    simplest, i've got a tree and two xml objects. In mx tag for the
    tree I define one of the xml objects as the dataprovider,
    additionally i've defined an event handler for the trees
    creationComplete event that opens up the root nood. This works
    great and is exactly what I want.
    But...
    I've also got a button, click on the button and it either a)
    changes the dataprovider of the tree to the second xml object, or
    b) change the xml in the dataprovider already assigned. Then,
    because the data has changed and the tree re-renders it ends up
    collapsed again so immediately after changing it's data I try to
    open the root node but nothing happens. No errors, just nothing.
    For the purpose of debugging i added a second button that
    simply tries to expand the root node of the tree after i've changed
    the trees data provider and it works fine. The line of code that
    exists in both the first and second buttons and that should open
    the tree only works in the second button for some reason. The only
    thing I can think of is timing, perhaps when trying to expand the
    node in the line of code directly following the change to the
    dataprovider the data hasn't loaded into the tree yet so it can't
    expand the node but, i've tried all sorts of event handlers and
    they don't seem to work either.
    Here's a link if someone wants to download my test.mxml file
    and try it themselves. There's more comments in the code but it's a
    super simple test page so it should be immediate where the problem
    is...
    http://www.binarydemon.com/test.mxml
    Thanks in advance.
    Zach

    Thanks Tracy,
    callLater() was exactly what I needed. I had no idea that
    method even existed, most things have events that fire when
    something important happens that I want to respond to, or are timed
    better for me to respond to that I've yet to need callLater(). Of
    course I'm still new at flex...
    Best,
    Zach.

  • My bookmarks mysteriously change folder names and positions in the tree

    Sometimes when I go to add a folder, it gets repeated in different places, or overwrites an existing bookmark folder and mysteriously changes its location. It is very frustrating to try and categorize bookmarks when there is some gremlin or evil elf that confuses things. Category folders get renamed yet have totally unrelated links within it. Why can't bookmarks work like with some semblance of dependability like Windows Explorer does? What the hell is going on with bookmarks?!??

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Please solve a mystery for me involving the Reporting Analysis View in ST03

    Greetings to All,
      Happy 2008 to everyone!  We are trying to improve query performance.  I have found lots of helpful documentation telling me to use ST03.  All of the documents have instructed me to use the following navigation:
    1.  Run ST03.
    2.  Choose the Expert user mode.
    3.  Choose the period to be analyzed in the BI Workload tree.
    4.  Under Analysis Views, choose the profile Reporting. 
      HERE IS THE MYSTERY: my screen does NOT display a profile called "Reporting".  We cannot find it anywhere on the screen.  What am I missing?  Any assistance would be greatly appeciated! 
      We are using SAP NetWeaver 2004s.
    Thanks,
    Sarah-Jane

    u can discuss this issue with ur basis person or security person at ur firm.
    xplain them that u wanna use st03 transaction
    and authorization is getting faile
    xplain them u r not able to see any data...
    discuss the possible option.
    try to use st03 from other user id ... if u can get it ... ur colleague or just bother them and see the st03 result at their pc
    if it bring s the result to their pc then for sure u have authorizaiton problem.....
    as the authorization objects are maintained differently at each company i am not sure about how it works at ur place....
    (authorization is nothing but for each transaction and for acess to each transaction and several data providers, authorization objects are created for each of them and then they are assigned to ur user id...... for eg. sarahjc    now if there is some st03 authorization objects are there and if they are not assigned to ur user id , then they must if u wanna use that transaction.....)
    u can check authorization object to ur user id by using transaction SU01.... and if u know that someone else is getting result in st03 transaction then using su01 u can compare authorization objects to each user id and analyse what is missing ....

  • Tree expand / contract not working when region copied...

    Hi
    I have a tree view region which I want to appear on each relevant page. Simple, thinks I, I'll copy the region from page to page... but when I do this then the expand / contract buttons don't work. If I create a new tree region then paste in the code from the tree region I want to copy all works well...
    Using Apex version 4.0.0.00.46.
    Anybody else seen this?
    Steve

    >
    The existing page zero appears at the top of other pages, containing specific data. This Tree element only appears on the config pages and is on the left hand side of the page.
    >
    You've just caused me to make a discovery that I hadn't noticed in nearly 6 years of APEX use: Page Zero is assigned a page template! I've no idea why this is: I don't think it should; this template will have absolutely no effect on how the application is actually rendered so I therefore think we should ignore it and maybe it will go away...
    Has the presence of a page template on Page Zero influenced your thinking on its use?
    Understand that regions on Page Zero will not be rendered according to the Page Zero template, but according to the page template for the page they are included on. The region Display Points remain constant: if you assign the Tree element to region position 2 on Page Zero, and it's included on pages 6, 7 and 8, then it will appear in region position 2 on pages 6, 7 and 8. However, using page templates and CSS, region position 2 can be in completely different places on the screen on pages 6, 7 and 8 (and even be in different positions on the screen and on a printout from the same page...).
    The other main thing about Page Zero is that the rendering of regions can be controlled conditionally, often using the Current page in Expression 1 condition, where a list of page numbers specifies which pages a region should be included on. So to make your Tree region only appear on Config pages 6, 7 and 8, set its Display Position to Region Position 2, and give it a Current page in Expression 1 condition with Expression 1 set to <tt>6,7,8</tt>. If the "existing page zero" elements appear on every page except 6, 7 and 8 then use the opposite Current Page not in Expression 1 condition...
    Only very simple apps would tend to include all Page Zero regions on other pages in their entirety: most of the time there will be mix'n'match using conditional rendering.
    >
    Which raises yet another question (getting my 2 cents worth here!) - can we conditionally change the position of a region? eg if on app pages 1 thru 5 then page zero is at top. if on pages 6 thru 8 then appears on left side?
    >
    Hope I've managed to explain why that's not how it works?
    (And reflecting on the mysterious presence of a template on Page Zero, I can only think that it has something to do with the Display Point preview pop-up, even though it's entirely useless as a safe guide to where the region will ultimately appear...)

  • B-tree catalog error, missing folder icons, item in use errors - Related?

    Hi,
    I have a B&WG3 running 10.3.9 and two hard drives. I can boot from
    one drive into OS 9.2.X. The other drive is also bootable into 10.3.9, and
    is partitioned. There are 25 Gigs free on the partition containing 10.3.9.
    I went to update to 10.4 and could not (yes, it is the retail version -
    black disk). I found there are some
    problems with the b-tree catalog and a missing thread record. fsck in single-user
    mode (-f) cannot repair the catalog problem, nor does the Apple disk repair utility.
    I have not yet tried a third-party program such as disk warrior or tech tool pro.
    Am currently backing up datafiles to Lacie external firewire hard drive.
    Computer operation seems normal.
    Just after the 10.4 installation failure, indicating failing to repair the b-tree catalog (extent check seemed OK), I noticed that some folder icons went
    missing and and the directory creation dates associated with those directories are bogus (December 31, 1903). If I move the items to the trash - I get the error that the items are in use (they are not in
    use according to activity monitor and are all related Arcsoft digital camera/imaging programs). Trash cannot be emptied even when done from UNIX prompt as sudo whether typing the path name directly or by dragging the contents of the trash into the terminal window. Also I cannot
    rm -r directoryname (directories are not empty - although they take up 0kb space and no
    files are visible either from the GUI or from a terminal window). **I really don't know that
    much about how to work in UNIX**
    Are these problems related?
    10.3.9 build 7W98
    Disk repair: Keys out of order, 4, 1317
    fsck -f (highlights only)
    missing thread record (id=8249)
    [31 mKeys out of order [0m
    Rebuilding catalog b-tree
    verify repair failed error -9972
    target volume is damaged and cannot be repaired
    Thanks for any insight!
    bdennehey

    Hi,
    Just to update, I ran through a couple of iterations of repair with TechToolPro which
    seemed to fix the "keys out of order" problem, but created/left other issues. However,
    it fixed things enough to run the Apple Disk Utility. Finally things "appear" OK. Installed 10.4 without a hitch, things still seem OK.
    Did find a new mystery folder that wasn't there before and was appearing/disappearing
    after running TTP, but before running the Apple utility. After running the Apple utility,
    the folder is a constant.
    The directory name is:
    -1010759277
    containing the file
    keyedobjects.nhb
    (Yes, that's nhb, not nib). Does anyone know what it is?
    Does anyone know if it is safe to dump it?
    % ls:
    -1010759277 TheVolumeSettingsFolder mach
    Applications Users mach.sym
    Desktop DB Volumes mach_kernel
    Desktop DF automount opt
    Desktop Folder bin private
    Library cores sbin
    Network dev tmp
    System etc usr
    TheFindByContentFolder lost+found var
    Thank you!
    bdennehey

  • Tree representation

    Hi! I'm new to java and my boss wants me to represent n binary trees in one binary tree.
    We have n binary trees, the root node of each tree has a name (identifying the tree) and a height, somehow he wants me to create some kind of super-tree of all this trees, and I really don't know what to do. As I understand he wants me to create one root node for this super-tree and set it's height to let's say a value like 2 times the highest tree we have , then the left child (T1) should be the tree with the highest value of height and the right child the second highest value (T2), then as T1's childs should be the following trees in height and so on..
    Please could anyone give me any comments about this approach? Please let me know and accept my apologises if this post should be anywhere else, but I don't know where to post it

    cristine,
    <quoted-for-emphasis>
    I don't follow you. Again: please explain the problem you're trying to solve.</quoted-for-emphasis>
    That's about it... If you're asking us to help weigh up the pro's and con's of a full-sort-merge verses a list-of-list-of-trees then you're going to have to provender a hellofalot more information... basically you'll need to sit down and write a BRS, and an SRS, and precis your tech-arc... focusing on the tree datastructures in question of course... but yeah.... we need a lot more information in order to make any intelligent comments. There's a bit more to software engineering than "I prefer traffic lights to tomato sandwiches, but not when they are red".
    What do you mean you don't know how to merge two trees?
    Sounds like homework to me. Is it? Again no problem if it is... It just helps pitch the responses "at your level"... for instance I'll stop using mystery acronyms like SRS.
    Cheers. Keith.

  • Trouver le nom d'un moviClip d'une fenêtre sous Flash AS2

    Bonjour,
    Je débute en ActionScript 2 sur Flash MX4.
    Je cherche à intégrer dans un scrollPane une page
    de formulaire créée dynamiquement en ActionScript 2.
    Ainsi j'utilise la propriété contentPath pour
    définir le nom du moviClip à charger dans le scrollPane.
    Pour cela, j'ai besoin de connaitre le nom du movieClip
    (appelé "monMovieClip" dans le code qui suit, mais que je ne
    connaîs pas) associé à la fenêtre de ce
    fomulaire.
    Ce que je ne sais pas faire :^(
    Qui connait les propriétés accessibles des
    movieClip qui donnent le nom du movieClip (j'ai essayé un truc
    du genre this.content._name mais ça marche pas !) ?...
    Si quelqu'un connait la façon de procéder dans ce
    cas là, j'en serai grandement soulagé ! hé hé !
    Merci beaucoup !!
    Pour info, voici une partie du code qui définit le
    scrollPane, après la génération de la fenêtre
    de formulaire :

    Hello RDcollege,
    Yes, I'm shure ! "monMovieClip" is really the linkage id of
    my MC.
    I don't understand why nothing appears. No scrollPane,
    nothing visible on the MC (witch appears correctly).
    Is there someone who can help me, or this is too much
    mysterious ?
    Thank you for your response RDcollege and others...

  • Deleting Mysterious Email

    I received an email out of the blue - no sender, no subject.  I can't delete it.  Swiping doesn't work, "edit" key won't let me "check" it for deletion.  Am I stuck with this in my inbox forever?

    Wow,now that's weird.  I solved my own problem by going to the main mailbox "tree" ('cause I have a bunch of different folders), scrolled down to the Junk folder, opened it, then closed it.  When I went back to my Inbox, the mysterious email was gone.  Go figure!

  • Synchronize Table of Contents Automatically not expanding TOC tree

    Users tell me that some years ago context-sensitive help would expand the TOC tree and select the target topic. Current behavior (RH9) is the "book" is selected but not expanded.
    Is there some way to get the old behavior back?

    Does it mysteriously begin working after you have had it open for a while?
    I ask, because the default setting for WebHelp is that the navigational elements are broken into smaller chunks during the generation process. And it's not uncommon for the TOC to fail synchronization early when opening the help but begin working later.
    To change that behavior, one needs to enable the speed setting of "Local PC or Intranet" as shown below.
    *NOTE: Click the image below for larger and clearer view.
    This causes the TOC, Index, Glossary and Search to be contained in larger single files. The trade-off is that it takes longer for the TOC, Index, Glossary and Search to appear, but the TOC synchronization typically then works.
    Hope this helps... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • NI PXI 8176 broadcasting Version 2 Spanning Tree Updates

    I am not the owner of this device, but I am in IT. We had an NI PXI8176 suddenly start broadcasting version 2 spanning tree protocols over the network... this is a mystery to us. Has anyone ever seen this, or have theories why it would do this?
    thanks
    Nan

    I'm not very familiar with spanning tree protocols, but I thought that they were for network bridges and switches.
    Have you had any viruses on that PXI-8176? Think of the PXI-8176 as a laptop in a different form factor when troubleshooting this kind of stuff. This sounds like an OS/virus/network issue.
    Good luck.
    Jack

  • Replica tree has unknown addresses

    Hi-
    I set up a replica on my Leopard server from my Snow Leopard server. Checking the Replca Tree does not show the IP or the FQDN of the replica but DOES show a lot of random ips that I have no idea where they came from. The replica is working because Im getting LDAP info from the master on the replica but what are these unknown ips? Am I being hacked?
    Thanks,
    Scott

    Can someone please take a stab at this? The IPs are 172.16.11.119, 10.211.55.2 and 10.37.129.2. The two 10 addresses are associated with vnic0 and vnic1 interfaces that show up under my network interfaces in
    the network tab in server admin admin (I have no idea where they came from either) though I am using a Class A network. The 172 is a complete mystery. Any ideas?
    Like the I said, the replica seems to up but it's ip shows no where in the replica tree and there is nothing in replica status at all.
    Thanks.

  • Hard-Boiled Hard Drive Replacement Mystery!

    It was a wet and gloomy night in Frisco, Baghdad-by-the-Bay, when I finally pulled the trigger after a couple months of research and thought: I replaced my stock MBP HD with a Western Digital 320GB Scorpio Black. But then, when I rebooted, all I saw was the light blue screen of death. The kind of blue that makes your stomach sick and fists clenched with anger. So here's the story:
    1. I order WD Scorpio Black (WD3200BEKT) along with McNally FW External Enclosure from the fine folks at Newegg.
    2. I put New HD in enclosure and clone my Orig HD using SuperDuper.
    3. I check the clone by successfully booting to the New HD from the external FW enclosure. Works perfect, everything looks great!
    4. I proceed to crack open the MBP to replace the drives, meticulously following the instructions from IFIXIT dot com, which i'm sure many of you are familiar with. Seems to go smoothly. No problems that I noticed.
    5. I put MBP back together and power up. All I get is the light blue nothing screen. New HD (now installed in laptop) sounds like its whirring, but I wouldn't stake my life on it.
    6. OK, so I boot up with my Leopard DVD sucessfully. I am also able to boot up successfully with my Orig HD which is now in my McNally FW external enclosure.
    7. Disk Utility recognizes my New HD. It also shows up on the desktop.
    8. Just for kicks, I hit "Repair It" (wrt New HD) and it goes through the motions and says my New HD "looks ok". Again, just for kicks, I have Disk Utility check permissions and even repair permissions. No sign of problems.
    9. I try again. I go to Preferences --> Start Up Disk, choose my New HD (still installed inside the laptop) and again all I get is the initial light blue screen, nothing else.
    10. I just leave it alone and eventually the screen displays the flashing File Icon With Question Mark thing (which brings back horrible memories of trying to bring back and old iMac G3 from the dead. A sickening shudder runs through me.) A few minutes later, my MBP finds the startup disk on my Orig HD (which is still connected via the FW enclosure) and boots up from that with no problems.
    11. Again, thinking what the ****, I clone my Orig HD (now in external FW) to the New HD (now installed inside the MBP) again using SuperDuper. According to SD, clone goes fine.
    12. I try to boot up again from New HD, same ole blue screen of nothing.
    SO, Geniuses out there, or just part-time dics (detectives), what explains what to me is a mystery? And (please) is there a way to solve without having to crack the darn thing open again.
    Many thanks in advance,
    Casey

    This is very mysterious indeed! Probably grasping at straws here, but did you name your new HD? And have you tried resetting the PRAM?
    http://support.apple.com/kb/HT1379?viewlocale=en_US
    I've heard that it works best if you hold the keys down until the startup chime has sounded 3 times.
    The internal drive connects through the Serial-ATA Device Tree and the external connects through a port. So there is some slightly different circuitry involved. It's probably a long shot that resetting the Pram would fix the problem, but it's easy enough to try.
    Good luck!

  • Problem with trees and memory handling.

    Hi there, I just want to know if, when I create a large binary tree, and I re-"pointed" the root pointer to another node somewhere below in that same tree (say, a terminal node), will the "upper" parts of the tree (starting from the new root node) be removed/deleted from memory? Please explain your answers.
    Thank you.

    f I changed the root to B, will A and its children be
    deleted from memory?If you do root = B, AND if nothing else is referring to A or C or anything else beneath them, then A, C, and all of C's children will become eligible for garbage collection.
    Whether the memory actually gets cleaned up is something you can't really predict or control, but it doesn't really matter. If it's needed, it will get cleaned up. If it's not needed, it may or may not get cleaned up, but your program won't care.
    So, in short, yes, for all intents and purposes, A's, C's, and C's descendants' memory is released when you re-root to B.

  • How to blick tree view few specific nodes

    here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
    Answered by:
    Avatar of Tamer Oz
    20,185
    Points
    Top 0.5
    Tamer Oz
    Partner Joined Sep 2009
    2
    8
    17
    Tamer Oz's threads
    Show activity
    Treeview control - How to make a node blink?
    Visual Studio Languages
    .NET Framework
    >
    Visual C#
    Question
    Alert me
    Question
    Vote as helpful
    0
    Vote
    Hi,
    Is there a "elegant" way to make blink a treeview node?
    I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
    Friday, November 06, 2009 6:19 PM
    Reply
    |
    Quote
    |
    Report as abuse
    Avatar of Kikeman
    Kikeman
    R. BOSCH
    105 Points
    All replies
    Question
    Vote as helpful
    0
    Vote
    Hi,
    You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
    public class BlinkingTreeView : TreeView
    private Timer t = new Timer();
    private List<TreeNode> blinkingNodes = new List<TreeNode>();
    public BlinkingTreeView()
    t.Interval = 1000;
    t.Tick += new EventHandler(t_Tick);
    bool isNodeBlinked = false;
    void t_Tick(object sender, EventArgs e)
    foreach (TreeNode tn in blinkingNodes)
    if (isNodeBlinked)
    //update Icon
    tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
    isNodeBlinked = false;
    else
    //update Icon
    tn.Text = tn.Text + "*";//to test
    isNodeBlinked = true;
    public void AddBlinkNode(TreeNode n)
    blinkingNodes.Add(n);
    public void RemoveBlinkNode(TreeNode n)
    blinkingNodes.Remove(n);
    public void ClearBlinkNodes()
    blinkingNodes.Clear();
    public List<TreeNode> BlinkingNodes
    get { return blinkingNodes; }
    public int BlinkInterval
    get { return t.Interval; }
    set { t.Interval = value; }
    public void StartBlinking()
    isNodeBlinked = false;
    t.Enabled = true;
    public void StopBlinking()
    t.Enabled = false;
    just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanks

    better to come with code. first populate tree view with some dummy node this way
    Root
           Child1
                    Child1-sub1
                    Child1-sub2
           Child2
                    Child2-sub1
                    Child2-sub2
    now blink Child1-sub2 & Child2-sub1. please come with code. thanks

Maybe you are looking for

  • Itunes tells me their is no Wall Street available for rental... why?

    itunes tells me their is no Wall Street available for rental... why?

  • How do I stop my mail to stop asking for password?

    I have several email accounts setup in my apple mail and frequently the notification voice tells me that my mail needs attention. The password is correct so I select continue and my mail downloads. So, I have two issues... 1 - Why do I keep getting r

  • Run Report from Oracle Forms9i

    Hi how are u all.......i am shahzad and i have little problem....i am working on developer 6i with oracle 9i database..........now i upgrade into developer 9i.....now the problem is that when i call the report from form then error is generated that i

  • Wss3 -- get XML "gibberish" when trying to add new user to site

    Site Actions > Site Settings > People and groups > New Select "book" icon  under Users\Groups, add domain user (works fine). This is displayed in the "Users\Groups" box in Add Users. The text displayed in  "Users/Groups"  looks like this: <span tabin

  • 802.1x Dynamic VLans

    I'm trying to figure out a way to get to 802.1x and Dynamic Vlans. I have all types of devices, some login into windows AD some don't. Is this possilbe? port is setup to use 802.1x. Radius server first checks against AD, then checks for MAC address,