Tree's node label disappear?

Guys,
I have the php returned me a xml data to my tree control.
When I expand or collapse a node, one of the children node's label
become empty. However, If I maximize the browser, everything is
back to normal. I am using Adobe Flex builder 3. Any idea?
-Alan

"2JZ" <[email protected]> wrote in message
news:glqtok$8v5$[email protected]..
> Amy,
>
> Here is how I declare teh tree control.
>
> <mx:Tree id="ViewTreeCtrl" width="100%" height="100%"
> horizontalScrollPolicy="auto"
allowMultipleSelection="true"
> color="#000000"
> dataProvider="{ViewXML}" labelField="@name"
borderStyle="none" alpha="1.0"
> selectable="true" iconFunction="TreeIconAssignment"
dropEnabled="true"
> dragEnabled="true" dragDrop="OnViewDragDrop(event)"
> dragEnter="OnDragEnter(event)">
>
> I am not sure if I am indirectly using custom
itemRenderers. When using
> these
> functions:
>
> labelField="@name"
> iconFunction="TreeIconAssignment"
>
> Where TreeIconAssignment() specify which embedded icons
to use base on
> the
> node's type.
That shouldn't cause the problem. I'm not seeing anything in
what you
posted that would cause the problem. Sorry :-(

Similar Messages

  • Add_tree_data - tree node label cannot be null

    I have a hierarchical tree displayed and when the user expands a node I'm calling add_tree_data using a record group to add items to the expanded node.
    This works for the first node I expand, if I try to expand another node I get frm-47337 Tree node label cannot be null. I'm using the same record group as before so I cant see why I'm getting the error. Thanks for any help.

    Hi,
    Which line you are getting the below?
    java.lang.ClassCastException: java.lang.Integer cannot be cast to oracle.jbo.Key~Abhijit

  • Tree control parent node label

    The following code works fine (except the part in caps, which
    isn't code). Suggestions?
    private function changeEvt(event:Event):void {
    var theData:String = ""
    if (event.currentTarget.selectedItem.@value) {
    theData = " Data: " +
    event.currentTarget.selectedItem.@value;
    trace(event.currentTarget.selectedItem.@label + theData);
    //trace(NEED PARENT NODE LABEL HERE IF IT EXISTS);
    }

    OK. So I stopped looking too soon. In my case:
    trace(browserTree.selectedItem.parent().@label);

  • Accessing Node Labels - TreeControl with CheckBoxes

    Hello,
    I have a Tree component that is loaded with CheckBoxes.  Each node has a label associated with it, and I need to be able to collect the labels and display them on the right of the component - probably using a Label or Text control.
    I can't seem to figure out how to access the names of the items that are checked.  I'm including a complete, and simplified, mxml file.  If anyone would like to take a look at it, I would appreciate it.
    Thanks.
    OH - And I am using the Tree CheckBox component from this site:  http://www.sephiroth.it/file_detail.php?id=151
    Sorry, but the forum will not allow me to upload the files directly.
    You will probably need to add those classes to see the Tree CheckBox.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:controls1="it.sephiroth.controls.*">
        <mx:Script>
            <![CDATA[
                import mx.events.DataGridEvent;
                import mx.controls.dataGridClasses.DataGridColumn;
                import mx.effects.easing.Bounce;
                import mx.effects.easing.Elastic;
                import components.MyPanel;
                import mx.effects.easing.Bounce;
                import mx.effects.easing.Elastic;
                import mx.events.MenuEvent;
                import mx.controls.Alert;
                import mx.controls.Menu;
                import mx.events.CloseEvent;
                import mx.controls.*;
                import mx.events.ListEvent;
                import mx.events.TreeEvent;
                import it.sephiroth.renderers.TreecheckboxItemRenderer;
                //*******************************  TREE CONTROL CHECKBOX ******************************************
                 * Called on checkbox click
                 * check and update for both parents and child nodes
                 * according to the checkbox status
                private function onItemCheck( event: TreeEvent ): void
                    updateParents( event.item as XML, ( event.itemRenderer as TreecheckboxItemRenderer ).checkBox.checkState );
                    updateChilds( event.item as XML, ( event.itemRenderer as TreecheckboxItemRenderer ).checkBox.checkState );
                 * @see it.sephiroth.controls.CheckBoxExtended#checkState
                private function updateChilds( item:XML, value: uint ):void
                    var middle: Boolean = ( value & 2 << 1 ) == ( 2 << 1 );
                    var selected: Boolean = ( value & 1 << 1 ) == ( 1 << 1 );
                    if( item.children( ).length( ) > 0 && !middle )
                        for each(var x: XML in item.node )
                            x.@checked = value == ( 1 << 1 | 2 << 1 ) ? "2" : value == ( 1 << 1 ) ? "1" : "0";
                            updateChilds( x, value );
                private function updateParents( item: XML, value: uint ): void
                    var checkValue: String = ( value == ( 1 << 1 | 2 << 1 ) ? "2" : value == ( 1 << 1 ) ? "1" : "0" );
                    var parentNode: XML = item.parent( );
                    if( parentNode )
                        for each(var x: XML in parentNode.node )
                            if( x.@checked != checkValue )
                                checkValue = "2"
                        parentNode.@checked = checkValue;
                        updateParents( parentNode, value );
            ]]>
        </mx:Script>
        <!--*********************  CHOOSE FUNCTIONAL AREAS/CAPABILITIES FOR SCENARIO TREE DATA ******************-->
        <!--
            Example of the xml used as dataprovider
            for the treecheckbox component.
            @label used for the item label
            @checked used for the checked status:
                0 = un-checked
                1 = selected
                2 = 3rd status selected
                otherwise you can use the set the "checkField" attributes of the
                treecheckbox component to specify which xml attribute to use for the
                checked status
        -->
            <mx:XML xmlns="" id="treeSource">
                <node label="home" checked="">
                    <node label="First Responder" checked="">
                        <node label="1RSP First Responder - Medical" checked=""/>
                    </node>
                    <node label="Battalion Aid Station/Sick Call" checked="">
                        <node label="Battalion Aid Station" checked=""/>
                        <node label="BAS - NBC" checked=""/>
                        <node label="Evac" checked=""/>
                    </node>
                    <node label="Forward Resuscitative Surgery (FRSS)" checked="">
                        <node label="Pre-Op" checked=""/>
                        <node label="Operating Room" checked=""/>
                        <node label="Post-Op" checked=""/>
                        <node label="Evac" checked=""/>
                    </node>
                    <node label="Surgical Company" checked="">
                        <node label="Triage/SST" checked=""/>
                        <node label="Triage Evac" checked=""/>
                        <node label="Operating Room" checked=""/>
                        <node label="OR Evac" checked=""/>
                        <node label="OR Evac" checked=""/>
                        <node label="Ward" checked=""/>
                        <node label="X-Ray" checked=""/>
                        <node label="Laboratory" checked=""/>
                        <node label="Pharmacy" checked=""/>
                        <node label="NBC Unit" checked=""/>
                        <node label="Dental" checked=""/>
                        <node label="PMO/EHO/PMT" checked=""/>
                        <node label="PM Entomology" checked=""/>
                        <node label="Occupational and Environmental Healty Sur" checked=""/>
                    </node>
                </node>
            </mx:XML>
            <controls1:TreeCheckBox id="mytree"
                showRoot="false"
                width="345"
                height="100%"
                dataProvider="{treeSource}"
                openItems="{treeSource..node}"
                labelField="@label"
                checkField="@checked"
                itemCheck="onItemCheck( event )"
            />
            <mx:Label x="455" y="48" text="Label" fontSize="16" color="#FFFFFF" id="tree_label1"/>
    </mx:Application>

    Natasha,
    Thanks for your reply.
    I attempted the code:
    public function get labelText():String 
     if (this.label != null) 
    return this.label.text 
    else
     return ""; 
    return "";
    But when I try to access the code in the application I get the error "Call to possibley undefined method labelText."
    I'm not sure I understand exactly how to implement this change within the application itself.  Could you explain?  Thanks.

  • Is it possible to put two different colors in tree parent node background and child nodes background?

    Is it possible to put two different colors in tree parent
    node background and child nodes background?
    Any help will be very helpful.
    Thanks

    Hi PanosE,
    Yes, you can set up another Standard Edition Server in child domain and then deploy pool pairing.
    You need to deploy a new Front End Pool for the new Standard Edition Server.
    A similar case for your reference.
    https://social.technet.microsoft.com/Forums/office/en-US/eca4299c-8edb-481e-b328-c7deba2a79ba/lync-2013-standard-edition-lync-fe-pools-in-multiple-domain-single-forest-senario?forum=lyncdeploy
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Tree View Node Element Resize

    Hello,
    Is there any way to resize Tree View Node Element programatically.
    In .fr file the height of the tree view node element is set to 90.
    On a button click I want to resize the element height to 18.
    I have tried using IControlView->SetFrame(TmpRect); but with no luck.
    Thanks,
    Prakash.

    Take a look at ITreeViewWidgetMgr, you can implement GetNodeWidgetHeight(...)
    and you may need to call ITreeViewMgr->NodeChanged(...) to get the TreeView to re-paint your Node.

  • Bette way to referenced tree model nodes from UI to perform actions on them

    A singleton facade is built.
    Its init() method loads several "tree model configs", each of them referenced by a name.
    This singleton creates a Project instance for a given "tree model config" calling the facade method -> createProject(String pjrName, String modelConfigName)
    When the Project is built a new Model instance is set ( remember the model instance is a tree holding nodes )
    The new Project instance built is added to a List that the facade has and then it's returned to the UI part that called ->createProject(prjName,modelconfigName)
    Given the Project instance the UI has to build a JTree representation of the model that the project references and the UI will have button actions that should call methods of the Nodes of the model referenced by the Project.
    Doing it this way the UI will be able to reference objects directly without going through the facade.
    Maybe I should return to the UI something like a ProjectKey instance instead of letting have the UI the Project instance ?
    It should be better if I process the possible node actions behind the Facade and not the UI, but how can I do it ?
    Having a ProjectKey in my UI I could ask the facade a model tree representation but not having the real nodes, otherwise having some NodeKey instances ?

    Sounds like you want to represent a tree structure, without a reference to the real tree.
    I'll take it further: maybe you don't want the UI to know there's a real tree data-structure with nodes and pointers to children, because maybe you build the tree on the fly from a database.
    So use the Builder pattern instead of committing to a specific data structure.
    Google results for Builder pattern: http://www.google.com/search?hl=en&q=builder+pattern&btnG=Google+Search
    Your UI should know how to construct nodes and children graphically, when told. This means it should have methods like addNode, but related to the domain: addSubProject maybe.
    A Project object is the Director, knowing which part goes where, but it doesn't know the real end result (a JPanel or HTML). So it has a method buildProject(Builder e) or exportProject(Exporter e), where all logic of assembling the parts is.
    When you have that, write a class JTreeProjectExporter implements Exporter.
    Hope this helps.

  • On Pie chart rotation - the labels disappear

    I am using followig to rotate a pie chart:
    <mx:Rotate id="rotate" angleFrom="{angle-90}"
    angleTo="{angle}"
    target="{myChart}"/>
    private function rotateImage():void {
    rotate.end();
    angle += 90;
    rotate.play();
    <mx:PieChart id="myChart" dragEnabled="true"
    dragComplete="rotateImage()">
    So, when a user tries to drag the pie chart, the chart
    rotates. The
    chart rotates fine but the labels disappear? why would this
    happen and
    any solution to this.
    Also, I would like to use some other event for rotation
    instead of
    dragComplet. I would like to do it when user clicks left
    mouse
    button+moves the mouse (both on the outside of the chart)
    Any suggetions?
    Thanks in advance.

    Are your fonts embedded? Rotating non-embedded fonts makes
    text disappear during rotation.

  • Labels disappear in Bridge CC slideshow.

    Recently I upgraded to Bridge CC from CS4.  And now while editing in slideshow mode (ctrl-L) all stars and labels disappear once you move onto the next image. 
    The colour labels from previous edits are still there, but I can't make new ones or changes. 
    When in camera raw mode any labels applied stick but that is not efficient for editing. 
    Can anyone help me with this problem, as I need to use the slideshow and label system when I sit down with clients. 

    Bridge will run on a network, but it is not well suited for this task.    I know nothing about servers so maybe someone with network experience will jump in.  Labels should be permanent unless the file location is changed and the xmp file not moved with it.

  • Programatically creating ADF Tree with nodes,child nodes & links?

    Hi,
    Currently I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. Please provide me detailed code for programatically creating ADF Tree with nodes, child nodes and links in it.
    Thanks,
    Vik

    You need to create a model for the tree. ADF has a build in model that you can use to build your own tree.
    This is what you need to write in your JSPX:
    <af:tree summary="Navigation" id="treeNav" value="#{pageFlowScope.treeNavigationBackingBean.model}"
               var="node" contextMenuSelect="true" rowSelection="single" fetchSize="30">   
           <f:facet name="nodeStamp">
          <af:outputText id="txtText" value="#{node.text}"/>
        </f:facet>
    </af:tree>This is the code to retreive the model:
      public TreeModel getModel() {
        if(model == null)
            model = new ChildPropertyTreeModel(instance,"children");
        return model;
      }instance contains the actual tree. I build it in the constructor of my managed bean:
        public BeanTreeNavigation() {
          ArrayList<TreeItem> rootItems = new ArrayList<TreeItem>();
          TreeItem node1 = new TreeItem("Root node");
             ArrayList<TreeItem> level1 = new ArrayList<TreeItem>();
             TreeItem level1Node1 = new TreeItem("Level1 Node1");
              level1.add(level1Node1);
           node1.setChildren(level1);
           rootItems.setChildren(node1); 
          this.setListInstance(rootItems);
          root = rootItems;
      public void setListInstance(List instance) {
        this.instance = instance;
        model = null;
      }The TreeItem class is not a default one. I created it myself. You can make of it whatever you want:
        public class TreeItem {
          private String text;
           private List<TreeItem> children = null;
           public TreeItem(String text){
            this.text = text;
            public void setText(String text) {
                this.text = text;
            public String getText() {
                return text;
            public void setChildren(List<TreeItem> children) {
                this.children = children;
            public List<TreeItem> getChildren() {
                return children;
            }I wrote the TreeItem as an inner class of the managed bean.
    The most important part is the getModel methode. There you need to specify an Object and the name of the getter that will return a List of the children.
    Hope this helps.
    Edited by: Yannick Ongena on Feb 22, 2011 7:30 AM

  • Bridge Labels disappear from folders

    We store our folders on a network server and for some reason only some of the labels disappear a few weeks after they are applied. In this latest case 178 of 446 folders which were previously labelled are no longer labelled. When this happened before it was ~216 folders that lost their labels about 2 weeks after they were applied. The server is running XP w/ CS5 (very rarely opened) and the workstations are on Win7-64 with a mix of CS6 and CC. I have opened the bridgelabelsandratings file and seen everything listed there correctly, and no one else has access to the server to restore to a previous state, so I have run out of ideas. Has anyone else run into similar problems and found a solution?

    Bridge will run on a network, but it is not well suited for this task.    I know nothing about servers so maybe someone with network experience will jump in.  Labels should be permanent unless the file location is changed and the xmp file not moved with it.

  • IMac HD icon became "client node" then disappeared

    I noticed a few days ago that the iMac HD icon renamed itself “client node” on my desktop then the icon disappeared completely after restarting. I was able to put an iMac HD alias on my desktop so I can access my HD files, but now Time Machine is not backing anything up. It goes through the backup process every hour as set, but there is nothing being backed up on Time Machine since the iMac HD disappeared from my desktop.
    What is this “client node” thing (what happened???) and where is my HD icon?
    So far I’ve run Cocktail, repaired permissions, relaunched the Finder, restarted my iMac, shut my iMac down overnight and booted it up in the morning. Still missing the HD icon (and HD files).
    When I click on the HD icon in the sidebar, the HD alias shows a grayed-out HD icon in the list of HDs (my iDisk, iMac HD alias, Network, & Time Machine). I can access the HD files through the HD alias, but where did the actual HD icon go, and how do I get it back?

    I think what may have happened is that your HD  somehow acquired a "hidden" flag, making it invisible to Finder. I have seen a "client node" icon appear on the Desktop transiently when I have deliberately made a disk volume invisible using a Terminal command.  The "client node" icon disappeared if I then relaunched the Finder. I'm not sure what it represents - it may just be a transient Finder "ghost" of an object which has just become "hidden".
    To restore visibility to your startup disk, I would try the following:
    Launch the Terminal - it is  /Applications/Utilities. Next copy-paste the following line into the Terminal window, followed by typing <Return> :
    sudo chflags nohidden /
    Enter your admin password at the prompt (it will not echo on the screen) and again type <Return>.
    Do you now see the HD icon?

  • How to save an n-ary tree of nodes to and from an xml file

    Hello,
    I am trying to represent a n-ary tree of nodes in xml.
    More accurately, I am trying to save/instantiate a
    tree of nodes to-from an xml file.
    How do I represent the parent-child relationships?
    Java: (simplified)
    class Node {
    Arraylist childNodes;
    Node parent;
    XML:
    From what I have been learning about XML,
    DTD:
    <?xml version="1.0" ?>
    <!DOCTYPE acd
         <!ELEMENT Node (childNodes, parent)>
         <!ATTLIST Node id ID #REQUIRED>
         <!ELEMENT childNodes (Node*)>
         <!ELEMENT parent (Node?)>
    ]>
    Qs:
    1) How do I represent the relationships? What would
    normally be a reference in Java, how do I represent in
    XML?
    2) Do I use ID, IDREF? I have been trying to find some
    examples to learn how. i.e. Does the IDREF, ID
    automatically become an in-memory reference (or pointer)?
    3) Is it preferable to use XML schema?
    thanks,
    Anil Philip
    Olathe, KS
    for good news go to
    http://members.tripod.com/goodnewsforyou/goodnews.html

    I downloaded XML Spy and used it to correct my earlier schema.
    Qs:
    In the instance document xml file;
    1) How would one display the parent node?
    2) If a child has a reference to a parent node as in the schema below, how can one know that the references are the same?
    i.e. when the parent node is first declared and when it is referred to by the child.
    Perhaps this raises a larger question - how does XML handle recursive references?
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://juwo.com/acd" xmlns="http://juwo.com/acd" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:annotation>
              <xs:documentation>ACD nodes. juwo LLC 2005</xs:documentation>
         </xs:annotation>
         <xs:complexType name="Node">
              <xs:sequence>
                   <xs:element name="parent" type="Node" minOccurs="0"/>
                   <!-- Node[] childNodes -->
                   <xs:element name="childNodes" type="ListOfNodes"/>
                   <!-- String data -->
                   <xs:element name="data" type="xs:string"/>
              </xs:sequence>
              <!-- Node parent -->
         </xs:complexType>
         <xs:complexType name="ListOfNodes">
              <xs:sequence>
                   <xs:element name="i" type="Node" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>

  • Unit label disappears when replacing to system control

    In LabVIEW 2010, when changing a controller or indicator with unit label from 'modern' to 'system' (or vice versa), the unit label disappears. It becomes empty.
    Somehow it is still active (no coercion dot appears), but hidden from view. A bit annoying. 

    The fact that no broken wires or coercion dots appear means, that the unit is correctly transfered. However, the unit label text is empty.
    So, it is working, but partly and weirdly.

  • Populate a canvas when a tree-leaf node is clicked

    I'm trying to populate a canvas or a list container with
    images when a tree-leaf node is clicked. I got the tree control
    working alright so far (populated via an external XML) but I'm
    having a hard time figuring out how to populate the adjacent
    container when a leaf node from a tree is clicked by a user. I know
    I'm supposed to code this in the 'change' event but am having a
    difficult time trying to figure out how to do this. I looked at the
    source code in some of the sample apps but I couldn't find anything
    that resemble what I'm trying to do.
    Since each leaf node would be unique, each one of them would
    trigger an external load of images (via http service) ... and so
    the url would be unique as well for each.
    'Appreciate the help from anyone who could help.
    Thanks.

    Thanks for the quick response Tracy ...
    Actually, I don't have mage load part coded yet :) ... I do
    have a somewhat general idea on how it should be coded though (i
    think, hehe). I'm thinking the selected item in the leaf node would
    have the data for the 'url' or 'folder location' of the images that
    would have to be retrieved and displayed in the canvas. I'm just
    not sure how to go about diplaying them in the canvas. Do I have to
    load them in some sort of array first and then datasourced it for
    my canvas? Not really sure how to go about doing it ... 'am totally
    newbie with Flex and just learning it by going through the online
    help and looking at the codes on some of the sample apps.
    Thanks again.
    pixelflip

Maybe you are looking for

  • How do I create multiple databases on the same ORACLE_HOME

    Hi, I would like to know how can I create 2 databases on the same ORACLE_HOME? Also is it possible to start both databases at the same time? When I installed oracle,a directory named database has been created under ORACLE_HOME, which contains all ini

  • AIR + iOS + geolocation updates + screen off = FAIL

    Where do I start... I have been trying to tackle this issue for quite some time now and every time I think I have the answer something else comes along to crash the party. I am in the process of building a multi-screen AIR mobile application with the

  • Basic editor in web page composer

    Hello Experts- We are using basic html editor in WPC. Not sure, if there is a feature available to control the font size in the editor. Right now, it takes the default font size. If I cut and paste the text it works fine. I mean we get larger font. I

  • At what point does 'private browsing' delete cookies?

    as you leave the site? when you close the browser? when you log out? thanks.

  • My Sequence Editor is crashing

    Hello Have written a c++ dll function whitch is used in the model. In the function i get pointer to the Execution via SequenceContext. ExecutionPtr pExecution = m_pContext->Execution; // Now do some stuff  pExecution->Release(); In the Operater Inter