Edit node name in flex tree

I want to edit a node in flex tree. Editable property of the
tree makes all nodes editable based on "SELECT" action . But now
based on my custom selection I want to edit a particular node. I
thought of custom item renderer and item editor but that applies to
all the nodes on "SELECT" action. Please let me know how to edit
particular nodes based on particular action.
Ex: On click of a button i want to edit the name of node
(Node is just text with folder icon).
Tx..
Flextron

Flextron,
I was trying to find an answer to the same issue. After
walking through the Tree and List class a bit I came up with this.
Here is an example where the Tree is not editable and double
clicking a node will allow you to rename it.
tree.addEventListener( ListEvent.ITEM_DOUBLE_CLICK,
itemDoubleClick );
tree.addEventListener( ListEvent.ITEM_EDIT_END, itemEditEnd
private function itemDoubleClick( event:ListEvent=null
):void
tree.editable = true;
tree.editedItemPosition = {rowIndex:tree.selectedIndex};
private function itemEditEnd( event:ListEvent=null ):void
tree.editable = false;
- Jank

Similar Messages

  • Dataprovider for Flex Tree

    how do you dynamically populate nodes in the Flex tree with data from a database?
    For example... if I have a node for Groups and a database for names of groups... how would I populate the child nodes of the Groups folder with the names of the groups in the database?

    alright i'll experiment. you may be able to help me understand why this isn't working though... this is the route i was going down:
    i wanted to convert this mxml to actionscript and bind it to the tree (so i can add results from my dataprovider):
        <mx:XMLListCollection id="treeData">
            <mx:source>
          <mx:XMLList>
                  <node label="Items">
                      <node label="Open"/>
                      <node label="In Progress"/>
                  </node>
          </mx:XMLList>
            </mx:source>
        </mx:XMLListCollection>
    and i was trying this code to make it bindable:
    var stringData:String = '<node label="Items">' + '<node label="Open"/>' + '<node label="In Progress"/>'
    + '</node>';
    var treeData= new XMLList(stringData);
    but when i use actionscript to create the treeData variable... and use {treeData} as the binding data... nothing shows in my tree.

  • Dashes in xml node names

    I need to parse an xml document returned by a web-service. It does not, nor do we want it to, follow any SOAP or wdsl standard.. However I still need to parse it (hence the flex becomes unflexible).
    Some of the nodes names in the xml document have dashes it is.. (ex. <node-name></node-name>) However flex does not let me access these nodes..
    If I try and parse a mx.rpc.events.ResultEvent thus :
    someObject = event.result.root.node-name as someObjectType;
    I get an error: 1120: Access of undefined property structure.  ...  line 16    1253139374175    81
    However when I traverse the event object in the debugger.. the result.root.node-name object is in debugger as an ObjectProxy.. so what gives? I have to use boring one word node names? Is Flex so inFlexible?

    Hey! thanks for the advice! I did try this, but I don't think I was using the object correctly. I wast to try and bind the text value of an xml node to a control Object..
    Back to the books, then
    Thanks again,

  • Trigger label edit on node when added to Tree

    I have a button which adds a node to a tree (through the
    tree's data provider); the new node appears on the tree and is
    automatically selected, which is great ---but how can I
    automatically switch this node's label into edit mode without the
    user having to click on it?
    The effect I'm going for is, the new node appears, is
    selected and is in edit mode, e.g. a new folder that was created
    with the label "New Folder" the value of which should be changed.
    So far I've only accomplished the first 2 (new node appears and is
    selected) I haven't yet figured out how to pro grammatically
    trigger the ItemClick event on the tree component for the final
    step.

    Hi Tom,
    Just had a similar issue that we were able to resolve successfully.
    In our case, it appears that an Oracle DB JDBC driver can cause this random issue as described in <b>SAP notes #886596 and #1003198</b> ("Certain Oracle JDBC driver can cause data inconsistence.").
    The notes include a resolution process and a work around recommendation to this issue, without having to apply a new SPS level...
    Hope this helps (time has passed by since you asked this question, but it's never too late to get the right answer, as this issue seems to be persistent!).
    Regards,
    Joseph

  • Change the root of Flex Tree dynamically

    I have a Flex Tree constructed dynamically. The dataprovider is xmllistcollection.The user clciks on a button to add an item(node) to the tree.
    when user tries to add 2nd item to the tree I want to create root(with a button) at the top automatically.
    So  a Root need to be created dynamically after 2nd item is added.
    Can someone please help me in getting this.
    I am using MXTreeItemrender  as Itemrender and was able to add nodes. But I could not get the third item(I am taking this xml node as Branch and adding) added to the top of the tree.
    Any help is very much appreciated

    Or in APEX 4.0 this can be done using a Dynamic Action that executes JavaScript code to change the region title.
    Give the region a static region ID for use in a jQuery selector.
    As solutions may be dependent on APEX version&mdash;among other factors&mdash;always specify the following information in your initial post:
    <li>APEX version
    <li>DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) used
    <li>Theme
    <li>Templates
    <li>Region type

  • 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?

  • Write an XML from Flex tree values

    Hi,
    Greetings!!!
    I jus need to get the values of dynamically created tree
    component as an XML file or values to be populated in text area as
    XML format.

    Currently When i select a node and Click on Generate XML
    button .. the textarea displays the selected node as XML in the
    Textarea. But my requirement is to get the complete tree structure
    as XML on Click on "Generate XML button" Can u pls provide me some
    sample on the same!!!!!
    here goes the code!!!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" backgroundGradientAlphas="[1.0, 1.0]"
    backgroundGradientColors="[#333333, #0A0A0A]"
    color="#FFFFFF" creationComplete="init(), showAlert('Red');">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.styles.StyleManager;
    import mx.effects.easing.Bounce;
    import mx.collections.ICollectionView;
    import mx.events.ListEvent;
    private var alert:Alert;
    private var alertCSS:CSSStyleDeclaration;
    private function init():void {
    alertCSS = StyleManager.getStyleDeclaration("Alert");
    private function showAlert(color:Object):void
    alertCSS.setStyle("modalTransparencyColor", color);
    alertCSS.setStyle("themeColor", color);
    private function tree_itemClick(evt:ListEvent):void {
    var item:Object = Tree(evt.currentTarget).selectedItem;
    if (xmlBound2Tree.dataDescriptor.isBranch(item)) {
    xmlBound2Tree.expandItem(item,
    !xmlBound2Tree.isItemOpen(item), true);
    [Bindable]
    private var dataX:XML =<item
    label="Parent"></item>;
    private function addEmptyBranchDP():void
    var dataX:XML = <item label={Eparent.text}
    isBranch="true"></item>;
    xmlBound2Tree.dataProvider.addItemAt(dataX,0);
    private function addEmptyBranchDD():void
    var dataX:XML = XML(xmlBound2Tree.selectedItem);
    if( dataX == null ) return;
    var select:int = xmlBound2Tree.selectedIndex;
    if (select == -1)
    Alert.show("Please select the Node" , 'Message');
    else
    var newNode:XML = <item label={Eparent.text}
    isBranch="true"></item>;
    xmlBound2Tree.dataDescriptor.addChildAt(dataX, newNode,
    select,dataX);
    xmlBound2Tree.expandItem(xmlBound2Tree.selectedItem,true);
    private function addEmptyChild():void
    var dataX:XML = XML(xmlBound2Tree.selectedItem);
    if( dataX == null ) return;
    var select:int = xmlBound2Tree.selectedIndex;
    if (select == -1)
    Alert.show("Please select the Node", 'Message');
    else
    var newNode:XML = <item label={Eparent.text}
    isBranch="false"></item>;
    xmlBound2Tree.dataDescriptor.addChildAt(dataX, newNode,
    select,dataX);
    xmlBound2Tree.expandChildrenOf(xmlBound2Tree.selectedItem,
    true);
    private function removeEmployee():void
    var node:XML = XML(xmlBound2Tree.selectedItem);
    if( node == null )
    return ;
    if(node.parent()== null)
    var select:int= xmlBound2Tree.selectedIndex;
    if (select == -1)
    return;
    else
    xmlBound2Tree.dataProvider.removeItemAt(select);
    else
    var children:XMLList = XMLList(node.parent()).children();
    for(var i:Number=0; i < children.length(); i++)
    if( children
    .@label == node.@label ) {
    delete children;
    private function gen_xml():void
    var node:XML = XML(xmlBound2Tree.selectedItem);
    textarea.text =node.toXMLString();
    ]]>
    </mx:Script>
    <mx:HDividedBox left="10" right="10" top="25"
    bottom="10">
    <mx:VDividedBox height="100%" width="65%" >
    <mx:Panel width="100%" height="450" layout="absolute"
    title="Item Generator" >
    <mx:Tree id="xmlBound2Tree" dataProvider="{dataX}"
    labelField="@label" showRoot="true" editable="{RN.selected}"
    top="10" left="10" right="10"
    bottom="10" color="#141414"
    openEasingFunction="{mx.effects.easing.Bounce.easeInOut}"
    openDuration="500" useRollOver="{URO.selected}"
    dragEnabled="true" dragMoveEnabled="true"
    dropEnabled="true" itemClick="tree_itemClick(event);" />
    <mx:CheckBox label="| Use Roll Over" textAlign="left"
    color="#848484" id="URO" selected="false" right="15" bottom="10"
    labelPlacement="left" themeColor="#7B7B7B"/>
    <mx:CheckBox label="Rename" textAlign="left"
    color="#848484" id="RN" selected="false" right="128" bottom="10"
    labelPlacement="left" themeColor="#7B7B7B"/>
    <mx:ControlBar>
    <mx:Button label="Remove Selected Item"
    click="removeEmployee()" color="#000000" themeColor="#FF0000"/>
    <mx:Button label="Generate XML" click="gen_xml()"
    color="#000000" themeColor="#80FF4D"/>
    </mx:ControlBar>
    </mx:Panel>
    <mx:Panel title="Passing XML data by reference"
    layout="absolute" width="100%" height="62" color="#000000">
    <mx:FormItem label="Enter Node Name:" x="10" y="16"
    width="484">
    <mx:TextInput id="Eparent" text="Node Name"
    width="359"/>
    </mx:FormItem>
    <mx:Button label="ADD AS PARENT"
    click="addEmptyBranchDP();" y="48" x="130" width="175"
    height="25"/>
    <mx:Button label="ADD AS SUB PARENT"
    click="addEmptyBranchDD(), showAlert('Red');" themeColor="haloBlue"
    y="78" x="130" width="175" height="25"/>
    <mx:Button label="ADD AS CHILD" click="addEmptyChild(),
    showAlert('Red');" y="48" x="319" color="#000000" width="175"
    height="25"/>
    <!-- Display the resulting XML -->
    </mx:Panel>
    </mx:VDividedBox>
    <mx:Panel width="35%" height="100%" layout="absolute"
    title="XML Code">
    <mx:TextArea width="100%" color="#08365D"
    fontFamily="Calibri" fontStyle="italic" fontSize="14"
    fontWeight="normal" height="100%" text="{dataX.toXMLString()}"
    id="textarea"/>
    </mx:Panel>
    </mx:HDividedBox>
    <mx:Label x="10" y="-1" text="MENU GENERATOR"/>
    </mx:Application>

  • Hierarchy Table - Parent/Child Value Pairs w/o Node Name

    Hi,
      Has any body worked with below senario to create a Hierarchy table through Import Manager. If so how did you do it? I followed and sucessfull with some senario's by refering the blog "MDM Import Manager: handling multiple formats of source data for hierarchy" by pandey but not with this one. This scenair is actually from help.sap.com
    Parent           Category
               Printers
    Printers      Laser
    Printers      Inkjet
    Inkjet           B&W
    Inkjet           Color
    Printers      Dot Matrix
    Dot Matrix      300 DPI
    Dot Matrix      600 DPI
    Dot Matrix      1200 DPI
    Edited by: SDN POWERED on Jun 7, 2009 8:59 PM

    Hi SDN Powered,
    For Hierarchy Table - Parent/Child Value Pairs w/o Node Name just do as follows:
    1) In the Source Hierarchy tree, select the Parent and Child field nodes which you want to use to build hierarchy.
    2) Right-click on one of the nodes and choose Create Hierarchy Field from the context menu, or choose Source > Create Hierarchy Field from the main menu.
    3) MDM opens the Create Hierarchy Field dialog box. This dialog box contains 4 feilds, viz Hierarchy Field Name, Parent Field, Child Field, and Node Name Field. In the Hierarchy Field Name, type the name for the new field.In the Parent Field, Child Field. For Parent/Child Value Pairs w/o Node Name , set the Node Name Field to None.
    4) Click OK to close the Create Hierarchy Field dialog box. The MDM Import Manager creates Hierarchy using the values you have provided.
    I hope I am able to solve your problem.
    Thanks & Regards
    Dilmit Chadha

  • How to make a node of a Hierarchical Tree BOLD

    When we click the node of a Hierarchical Tree, we want to make the node BOLD. We tried using set item property but it's not working.

    There aren't really any built-ins that will allow you to change the Font Weight of the Tree Node Label. You might be able to accomplish this with Java, but you would have to write your own Java Bean to implement. It might be easier to simply add an Asterisk (*) to the label programatically using the Set-Tree-Node-Property() built-in, but this presents problems with removing the asterisk when you leave the selected node or select a new node. It can be resolved, but you'll have to record all the information you'll need to reset the node - namly just the Node_ID.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Feb 24, 2012 7:52 AM

  • JTree: editable node

    Hello, I want some help because I have a tree and I want to give the user the possibility to change the selected node value ( to have an editable node with a rightclick).
    I used this methods :
    setEditable (true) and startEditingAtPath()
    But I want to get the new value to change the database and reload the tree. How to do ?
    thanks

    I think I forgot something, Could you say me If I am right ?
    I have a popupmenu "rename" for the tree
    RenameMenuItem.addActionListener(new ActionListener()
          public void actionPerformed(ActionEvent e)
            Tree.setEditable();
        }); // RenameMenuItem
    [\code]
    and I have the setEditable method :public void setEditable() {
    TreePath treePath = Arborescence.getSelectionPath();
    DefaultTreeModel treeModel = (DefaultTreeModel)myjtree.getModel();
    treeModel.addTreeModelListener(new MyTreeModelListener());
    myjtree.setEditable(true);
    myjtree.startEditingAtPath(treePath);
    }//setEditable
    [\code]
    and mytreemodellistener class
    class MyTreeModelListener implements TreeModelListener {
      public void treeNodesChanged(TreeModelEvent e) {
        DefaultMutableTreeNode node;
        DefaultMutableTreeNode nodee;
        TreePath path = e.getTreePath();
        node = (DefaultMutableTreeNode)(path.getLastPathComponent());
        System.out.println("node 1 ="+node);
        nodee = (DefaultMutableTreeNode
        try {
          int index = e.getChildIndices()[0];
          node = (DefaultMutableTreeNode)(node.getChildAt(index));
          System.out.println("node 2 ="+node);
        catch (NullPointerException exc) {
          System.out.println("TreeModelListener :"+exc.getMessage());
        String newNode =  node.toString();
        System.out.println("New value: " +newNode);
      public void treeNodesInserted(TreeModelEvent e) {
      public void treeNodesRemoved(TreeModelEvent e) {
      public void treeStructureChanged(TreeModelEvent e) {
    }// MyTreeModelListener
    [\code]
    The "node 1" printing in the MyTreeModelListener is the father whereas I change the child and the "node 2" is the child then I don't know how can I retrieve the old name of the child in my database to change its label .
    thanks a lot !                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

  • How to map the node id to the node name in database view just like "V$GES_RESOURCE"

    i have a rac with 3 nodes,and the node id is from 1 to 3,i can check it with command olsnodes.
    $ olsnodes -p -n -i
    tdsdb1  1       tdsdb1-priv     tdsdb1-vip
    tdsdb2  2       tdsdb2-priv     tdsdb2-vip
    tdsdb3  3       tdsdb3-priv     tdsdb3-vip
    and i also can check it in gv$instance
    SQL> select inst_id,instance_number,instance_name from gv$instance;
       INST_ID INSTANCE_NUMBER INSTANCE_NAME
             1               1 jftds1
             3               3 jftds3
             2               2 jftds2
    but when i select the master node of some resource ,it shows some value of node id =0
    SQL> select resource_name,master_node from v$ges_resource;
    RESOURCE_NAME                  MASTER_NODE
    [0xdcc9fa12][0x246658a5],[QQ]            2
    [0x932][0x70c230e],[IV]                  0
    [0xd9fb][0x13181703],[IV]               0
    [0xddae][0x0],[TM]                       0
    [0xb970fb05][0x729b596a],[LB]            2
    [0xb580][0x70c2e1c],[IV]                 0
    [0x31ad56fb][0x7e4c3daa],[QQ]            2
    [0x3][0x797609],[HW]                     0
    [0x2bf04627][0xf28b1575],[QI]            0
    [0x19c89f33][0xd06ef447],[QQ]            0
    [0x529ae82][0x86e25d46],[QQ]             0
    it seems that the master node id is from 0 to 2
    i want to get the node name from the node id from   v$ges_resource,so i check the table cluster_nodes ,cluster_instances,but there are nothing.
    SQL> select * from CLUSTER_NODES;
    no rows selected
    SQL> select * from CLUSTER_INSTANCES ;
    no rows selected
    how can i get the node name from the node id in the tables just like " v$ges_resource"? thank you .

    my cluster ware version is 10.2.0.5
    database version is 10.2.0.5
    and the source of rac is all online
    $ crsctl query crs activeversion
    CRS active version on the cluster is [10.2.0.5.0]
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    PL/SQL Release 10.2.0.5.0 - Production
    CORE    10.2.0.5.0      Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.5.0 - Productio
    NLSRTL Version 10.2.0.5.0 - Production
    $ crs_stat -t
    Name           Type           Target    State     Host       
    ora.jftds.db   application    ONLINE    ONLINE    tdsdb2     
    ora....tds1.cs application    ONLINE    ONLINE    tdsdb1     
    ora....s1.inst application    ONLINE    ONLINE    tdsdb1     
    ora....ds1.srv application    ONLINE    ONLINE    tdsdb1     
    ora....tds2.cs application    ONLINE    ONLINE    tdsdb2     
    ora....s2.inst application    ONLINE    ONLINE    tdsdb2     
    ora....ds2.srv application    ONLINE    ONLINE    tdsdb1     
    ora....tds3.cs application    ONLINE    ONLINE    tdsdb3     
    ora....s3.inst application    ONLINE    ONLINE    tdsdb3     
    ora....ds3.srv application    ONLINE    ONLINE    tdsdb3     
    ora....SM1.asm application    ONLINE    ONLINE    tdsdb1     
    ora....B1.lsnr application    ONLINE    ONLINE    tdsdb1     
    ora.tdsdb1.gsd application    ONLINE    ONLINE    tdsdb1     
    ora.tdsdb1.ons application    ONLINE    ONLINE    tdsdb1     
    ora.tdsdb1.vip application    ONLINE    ONLINE    tdsdb1     
    ora....SM2.asm application    ONLINE    ONLINE    tdsdb2     
    ora....B2.lsnr application    ONLINE    ONLINE    tdsdb2     
    ora.tdsdb2.gsd application    ONLINE    ONLINE    tdsdb2     
    ora.tdsdb2.ons application    ONLINE    ONLINE    tdsdb2     
    ora.tdsdb2.vip application    ONLINE    ONLINE    tdsdb2     
    ora....SM3.asm application    ONLINE    ONLINE    tdsdb3     
    ora....B3.lsnr application    ONLINE    ONLINE    tdsdb3     
    ora.tdsdb3.gsd application    ONLINE    ONLINE    tdsdb3     
    ora.tdsdb3.ons application    ONLINE    ONLINE    tdsdb3     
    ora.tdsdb3.vip application    ONLINE    ONLINE    tdsdb3    

  • HELP NEEDED!!!displaying xml node name in an input text box

    Hello everybody
    Have a simple proble. I have imported an XML file into flash
    using the Tree component and the XML_conn component. So i have the
    xml tree displying in flash when i have run it.
    I have created an input text box called 'subject'
    All i really need is when a user clicks on any node for that
    node name to be displayed in a the input text box. thats it. ITS
    DRIVING ME CRAZY

    Try something like this. (if your Tree is called myTree)
    var myTreeListener = {}
    myTreeListener.change = function(evtObj) {
    subject.text = evtObj.target.selectedNode.nodeName;
    myTree.addEventListener("change",myTreeListener)

  • How to Display Detailed navigation passing Top level navigation node name

    Hi All,
    I have prepared a DLN par file but unfortunatly my requirement is such that I need to pass one of the toplevel node name as input parameter and that should display the corresponding DLN which is from 3rd level.
    I have checked in sdn for passing a value to the navigation tag lib which will consider it as a selectednode but could find none.
    Can some body suggest me how to acheive this.
    Thanks in Advance.
    Sai Krishna. K

    Hi Kiran,
    Thanks for your Reply..
    Following is my Scenario:
    I use 2 same versions of portals connected via federated portal concept.
    I have my detailed navigation par file in portal2 and was calling it from portal1 from a iview.
    Since I am not physically navigating in portal2(which mean there is no selected node to iterate ), when I call that iview in portal1 it is picking up only 1st node in top level navigation.
    So i need to pass "My reports" (as 1st level) & "India" (as 2nd level) as parameters such that it gets only its DTN at all times from 3rd level.
    Hope you understand my scenario, below is my iteration code logic.
    <div id="myslidemenu" class="jqueryslidemenu">
    <ul>
         <nav:iterateSelectedNavNodesLevel level="<%=START_LEVEL%>">
         <%-- the 'currentDepth' attribute provides the byte value of the current level --%>
        <nav:recurseNavNodeChildren currentDepth="depth">
             <% current = start + depth.intValue() - 1; %>
             <%=writeClosingTags(last - current)%>
             <%
            last = current;
            %>
            <%-- we want to distinguish between folder and leaf nodes so we can use different graphics --%>
              <%-- complete the html syntax for the 'class' attribute pass it as an anchor attribute--%>
              <li><nav:navNodeAnchor navigationMethod="byURL" />
              <%-- checks for additional navigation level and the appropriate html tags to accomodate them --%>
            <nav:ifNextRecursionDepthWillIncrease>
                <ul>
            </nav:ifNextRecursionDepthWillIncrease>
            <nav:ifNextRecursionDepthWillNotChange>
                </li>
            </nav:ifNextRecursionDepthWillNotChange>
        </nav:recurseNavNodeChildren>
        <%=writeClosingTags(last - start)%>
        <% last = start; %>
    </nav:iterateSelectedNavNodesLevel>
    </ul>
    </div>
    As per the passing parameter concept please explain me a bit more clear with step by step procedure.
    <b>Here if not passing parameters, providing static values will also do for my requirement.</b>
    Many Thanks,
    Sai Krishna.
    Edited by: Konchada Sai Krishna on Feb 14, 2009 9:42 PM

  • Populate Flex Tree from Java Code (Database)

    Hi
    Can someone please help me? I'm very new to using flex. I'm
    basically trying to create a tree that is populated from data in my
    database. I am using hibernate to fetch that data.
    The plan is to basically create the tree in Java code (since
    I don't want any processing done on the client PC) and then pass
    this to the flex tree (or an actionscript data structure that is
    compatible as the tree datasource)
    I am creating the java tree using DocumentImpl. Is this
    correct? What class would work?
    Element e = null;
    Node n = null;
    Document xmldoc= new DocumentImpl();
    Element root = xmldoc.createElement("USERS");

    quote:
    Originally posted by:
    ntsiii
    Stop running and get a map (read the documents)
    This is hardly a useful comment and must discourage new users
    from asking questions. If you think the documentation relating to
    the use of the tree control is straightforward then I beg to
    differ.
    If you are aware of a clear example of how to use the data
    tree with a php backend returning a remote data object please
    enlighten me. Meanwhile I continue my search but not within the
    livedocs.
    One site I have found that may be of use is
    http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html
    Not everyone is an expert.

  • How to Flex tree control using folder click event  to pass coldfusion to get data from dynamiclly ?

    Hi friends.........
                Iam using flex tree control data coming from coldfusion file to display grid. As i click the tree folder to change the data from dynamic from grid.
    How to pass the folder id from coldfusion file.. Is it possible ?.. Means give any example please....
    Any One Help Me......
    With Regards.,
    Lingu.......

    When you set the dataProvider for your tree control, you actually pass an array or arraycollection or whatever to that property. The array contains objects coming from your server, right? Each object should contain a property with the folder id, something like:
    var arr:Array = [{id: 1, folderID: 34, name: "..."}, {id: 2, folderID: 4, name: "..."}, ...];
    Now, when you click an item in your tree or your dataGrid, you can access the folder id by:
    myTree.selectedItem.folderID
    Hope this helps
    Dany

Maybe you are looking for

  • "Moo" = Right fan repeatedly spinning up and down under certain conditions

    I am pretty certain I have figured out what is causing the "moo". Here is my theory based on a couple of weeks of experimentation... It is the right fan starting up and stopping. Again..and again...and again. It does this in response to temperature c

  • Problem For/Each statement (or the problem is the MouseListener...)

    Hi guys, I'm making a program in java for school. Now I have this:           for(Stap2TrampolineModel trampoline : lijstTrampolines)                trampoline = new Stap2TrampolineModel(0,215,100,"Poing",lijstKinderen); //model                trampol

  • Pls help in creating cluster view

    Pls help in creating cluster view regards jindow

  • RFC Commumnication problem

    Hi Gurus, I have been facing CALL_FUNCTION_FORMAT_NOT_SUP_RFC errors in our server. i am unable to investigate where the problem lies.. Can anyone, let me know , how can i investigate this  and also if u have any solution , please do post ASAP. Thank

  • Used migration assistant to move office 2008 and now i cannot open it

    I had an old MacBook from 2008, and now have a new MacBook Air. Was told to use migration assistant to move my applications. I did this and now when I go to open any programme from Microsoft Office 2008, it takes me to Microsoft Office Setup Assistan