Tree renderer

Is it possible to customize the Tree component to have two
icons displayed? Thanks.

Yes, certainly.
Item editors are not simple, so I advise you start with an
existing one an modify it.
You can look at the code in the Adobe TreeItemRenderer.as
class in the frameworks folder.
Also, there is a reasonably simple but complete example of a
tree item renderer on www.cflex.net, search for it. It actually
adds some graphics to the rederer, so would be a good example.
Tracy

Similar Messages

  • Tree Renderer for detailed navigation

    Hi,
    does anyone know, which tree renderer is used in detailed navigation?
    I would like to change the behaviour:
    By default, the tree in detailed navigation should show  all items as open.

    Hello Holger,
    The only way to achieve this feature is by implementing your own detailed navigation.
    Check these wonderful blogs:
    EFP: Working with the New Taglibs - Part 2
    EFP: Working with the new Taglibs - Part 3
    Greetings,
    Praveen Gudapati

  • Query on ADF Tree rendering - Jdeveloper 11g

    Hi,
    Am facing issues with Tree component rendering. Please find details below.
    Am using Jdeveloper 11g and have created data controls using plain java objects.
    Issue 1:
    I have a method getEmployees() which contains hierarchical data. Upon dragging this onto UI and on creating tree binding, i am able to see the tree.
    However i can expand only the parent node. Upon clicking on any of the child nodes (i.e Level 1 nodes), i get a blinking icon forever.
    Note that upon selecting the context menu option on root node and on selecting "Expand all", i get the complete tree in expanded format.
    Can anyone suggest as to what might be the issue with node expansion here ?
    Approach 2
    I tried creating Treemodel programatically.
    Please see snippet below:
    public TreeModel getModel() throws IntrospectionException {
    if (_model == null) {
    model = new ChildPropertyTreeModel(instance, "children")
    public boolean isContainer() {
    return ((T)getRowData()).hasChildren();
    return _model;
    By creating tree model in this way, tree node expansion issue is resolved. But i noticed that upon clicking on node for expansion,
    the getChildren() method (i.e the childProperty method) gets invoked multiple times and not once for the specifically expanded node.
    Can anyone please suggest as to why this is happening/possible solution?
    Thanks
    Navin

    Thanks for the reply. I can see the facets in the structure window and can seemingly add components there, but this is not reflected in the Design view for the page. Very strange. When the page is run, none of these components in the Accordion panel facets are displayed...
    I'm using JDeveloper version 11.1.2.1.0.

  • Tree renderer - change the appearance between selected and not selected

    Hi,
    I have a JTree that I would like to show for each node different information depending on it selection status. I wrote my own renderer to create the Component to display (it is a JPanel with one JLabel in one case, and a JPanel with mulitple JLabels in the other case).
    When I run my program, the node appears ok, but when I select it the tree doesn't update the size of the composnen to be displayed, and that resualts in displaying only a fraction of the information for the selected node.
    I have tried to set the tree row height, so the tree will ignore the chached size of the renderer but it didn't work.
    Any suggestions?
    Thanks,
    Benny

    Have you tried calling tre.setRowHeight(0) - this is supposed to indicate to the tree that the renderer will determine the height of each cell.
    Never tried it, though.

  • N-Tree rendering algorithm.

    Hello,
    I'm trying to create a program that can arrange a number of people's contact information into an n-Tree structure.
    I'm using a class called JBigTree that extends JPanel and overriding paint() to paint the entire tree with basically a rectangle for each person and their name in the middle.
    I'm going half-crazy at the moment trying to get a rendering algorithm that does not eventually overlap two or more nodes on top of each other...
    I'm going around looking for some sort of algorithm that's already been done to render an n-Tree of variable size to screen but so far I haven't found one.
    To give you an idea, it looks a bit like this:
    class Person
    String name;
    ArrayList<Person> children;
    Person parent;
    /* Add obvious get/set/add methods */
    class JBigTree extends JPanel
    private static final int CELL_WIDTH=100;
    private static final int CELL_HEIGHT=40;
    private static final int H_GAP=30;
    private static final int V_GAP=36;
    /*skip some of the initialization code...*/
    public void paint(Graphics g)
      renderNode(g,root,getWidth()/2,V_GAP);
    private void renderNode(Graphics g, Person node, topX,topY)
      //HELP!!!!
    }

    In case anyone googles this, I've gotten an algorithm working after a couple days of letting the problem simmer in my head and a couple hours of hardcore coding...
    It also allows to select single nodes by clicking...
    You can figure out the Node's class code on your own, it simply uses an ArrayList to store kids and stores its parent node, no other restrictions.
    Here is it is:
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import javax.swing.JPanel;
    import com.kangen.JMain;
    import com.kangen.helpers.JDistributeur; //This is the actual Node class, in my case it represents also a reseller ("Distributeur" in French), hence the name.
    public class JBigTree extends JPanel implements MouseListener {
         private static final int CELL_WIDTH=100;
         private static final int CELL_HEIGHT=40;
         private static int H_GAP=16;
         private static final int STATIC_V_GAP=36;
         private static int V_GAP=STATIC_V_GAP;
         private static final Color BG_COLOR=Color.white;
         private static final Color NODE_FRAME_COLOR=Color.BLUE;
         private static final Color NODE_FILL_COLOR=Color.cyan;
         private static final Color LINK_COLOR = Color.red;
         private JDistributeur nodeSelected=null;
         public JBigTree()
              addMouseListener(this);
         public void paint(Graphics g)
              g.setColor(BG_COLOR);
              g.fillRect(0,0, getWidth(),getHeight());
              int displayWidth=((treeWidth(JMain.getRootNode()))*(CELL_WIDTH+H_GAP))*2;
              setSize(displayWidth,getHeight());
              setPreferredSize(new Dimension(displayWidth,getHeight()));
              setMinimumSize(new Dimension(displayWidth,getHeight()));
              int displayHeight,treeHeight=treeHeight(JMain.getRootNode());
              V_GAP= STATIC_V_GAP + (STATIC_V_GAP * (treeHeight/8));
              displayHeight=treeHeight(JMain.getRootNode())*(CELL_HEIGHT+V_GAP);
              setSize(getWidth(),displayHeight);
              setPreferredSize(new Dimension(getWidth(),displayHeight));
              setMinimumSize(new Dimension(getWidth(),displayHeight));
              renderNode(g,JMain.getRootNode(), (getWidth()/2)-(CELL_WIDTH/2) ,(V_GAP) );
         private void renderNode(Graphics g,JDistributeur node, int topX, int topY)
              if (node==null||g==null)
                   return;
              node.setTopX(topX);
              node.setTopY(topY);
              g.setColor(NODE_FRAME_COLOR);
              g.drawRect(topX, topY, CELL_WIDTH, CELL_HEIGHT);
              if (node==getNodeSelected())
                   g.setColor(NODE_FILL_COLOR);
                   g.fill3DRect(topX, topY, CELL_WIDTH, CELL_HEIGHT,true);
              g.setColor(NODE_FRAME_COLOR);
              g.drawString(node.getNom(),topX+5,topY+(CELL_HEIGHT/2));
              if (node.getChildrenNodes().size()==0)
                   return;
              int totalChildren = treeWidth(node);
              int leftZeroForThisNode = topX-(int)((double)(CELL_WIDTH+H_GAP)*(((double)totalChildren/2.0)))+(CELL_WIDTH/2);
              if(leftZeroForThisNode<0)
                   leftZeroForThisNode=0;
                   JMain.ERROR("leftZeroForThisNode < 0");
              int childrenDrawn = 0;
              for (int i=0;i<node.getChildrenNodes().size();i++)
                   int thisNodeChildren = treeWidth(node.getChild(i));
                   childrenDrawn+=thisNodeChildren;
                   int newTopX=leftZeroForThisNode+((childrenDrawn*(CELL_WIDTH+H_GAP))/2);
                   newTopX-=(CELL_WIDTH/2);
                   renderNode(g,node.getChild(i),newTopX,topY+V_GAP+CELL_HEIGHT);
                   g.setColor(LINK_COLOR);
                   g.drawLine(topX+(CELL_WIDTH/2),topY+CELL_HEIGHT,newTopX+(CELL_WIDTH/2),topY+V_GAP+CELL_HEIGHT);
                   leftZeroForThisNode+=thisNodeChildren*(CELL_WIDTH+H_GAP);
         private int treeWidth(JDistributeur node)
              if (node==null)
                   return 0;
              int nb=0;
              for (int i=0;i<node.getChildrenNodes().size();i++)
                   nb+=treeWidth(node.getChild(i));
              return 1 + (nb>0?nb-1:0);
         private int treeHeight(JDistributeur node)
              if (node==null)
                   return 0;
              int maxChild=0;
              for (int i=0;i<node.getChildrenNodes().size();i++)
                   int childHeight = treeHeight(node.getChild(i));
                   if (childHeight>maxChild)
                        maxChild=childHeight;
              return 1+maxChild;
         @Override
         public void mouseClicked(MouseEvent arg0) {
              // TODO Auto-generated method stub
         @Override
         public void mouseEntered(MouseEvent arg0) {
              // TODO Auto-generated method stub
         @Override
         public void mouseExited(MouseEvent arg0) {
              // TODO Auto-generated method stub
         @Override
         public void mousePressed(MouseEvent arg0) {
              JDistributeur nodeClicked = nodeClicked(JMain.getRootNode(),arg0.getX(),arg0.getY());          
              if (nodeClicked!=null)
                   if (getNodeSelected()==nodeClicked)
                        setNodeSelected(null);
                   else
                        setNodeSelected(nodeClicked);
                   JMain.mainWindow.sidePanel.showNode(getNodeSelected());
                   repaint();
         private JDistributeur nodeClicked( JDistributeur node, int x, int y) {
              if( (x > node.getTopX()) && (x<node.getTopX()+CELL_WIDTH) && (y>node.getTopY()) && (y<node.getTopY()+CELL_HEIGHT))
                   return node;
              else
                   for(int i=0;i<node.getChildrenNodes().size();i++)
                        JDistributeur temp = nodeClicked(node.getChild(i),x,y);
                        if(temp!=null)
                             return temp;
                   return null;
         @Override
         public void mouseReleased(MouseEvent arg0) {
              // TODO Auto-generated method stub
         public void setNodeSelected(JDistributeur nodeSelected) {
              this.nodeSelected = nodeSelected;
         public JDistributeur getNodeSelected() {
              return nodeSelected;
    }

  • Adding commands to tree renderer

    Hello
    Quick question:
    I have a layout set similar to the adminexplorer.
    Is there any way I can add a command group to each resource within the folder tree, e.g using a hover menu?  This would allow users to delete or rename folders from within the tree area.
    Thanks for the help!
    Chris

    Hi Chris,
    The "AdminCollectionTreeRenderer" you are talking about is a CollectionRenderer, but I am talking about changing ResourceRenderer.
    Please refer to this to know about the settings you can make on ResourceRenderer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/50/041142e862654ca98ced1607386c9c/frameset.htm
    About CollectionRenderer:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/87/3d48475ee8bd448c4031aa98d90524/frameset.htm
    I expect that you duplicated your "AdminExplorer" Layoutset, and if so you will see "AdminResourceRenderer" which is responsible to render the ListView on the right side of your Layout.
    To extend the functioanlity you need to duplicate "AdminTreeResourceRenderer" and assign this to your LayoutSet and make all the settings as I told in my previous post.
    So now you should see two ResourceRenderer set to your LayoutSet, and this should now solve your problem.
    Hope this helps
    Greetings,
    Praveen Gudapati

  • Help on Deleting Node in Tree?

    I'm trying to delete a node on a tree and some weird stuff is
    occurring. Here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    initialize="init();" layout="absolute">
    <mx:Script>
    <![CDATA[
    private function click () : void {
    if (MyTree.selectedItems.length > 0) {
    var items:Array = MyTree.selectedItems;
    for (var i:int = 0; i < items.length; i++) {
    var nodeToDelete:XML = XML(items
    var xlcParent:XMLListCollection = new
    XMLListCollection(nodeToDelete.parent().children());
    var iIndex:int = xlcParent.getItemIndex(nodeToDelete);
    xlcParent.removeItemAt(iIndex);
    ]]>
    </mx:Script>
    <mx:XMLListCollection id="MyDP">
    <mx:XMLList>
    <root label="Default Policy">
    <node label="node1"/>
    <node label="node2"/>
    <node label="node3"/>
    <node label="node4"/>
    <node label="node5">
    <node label="node1"/>
    <node label="node2"/>
    <node label="node3"/>
    <node label="node4"/>
    <node label="node5">
    <node label="node1"/>
    <node label="node2"/>
    <node label="node3"/>
    <node label="node4"/>
    </node>
    </node>
    </root>
    </mx:XMLList>
    </mx:XMLListCollection>
    <mx:Tree labelField="@label" id="MyTree"
    dataProvider="{MyDP}" x="141" y="109" width="528" height="440"/>
    <mx:Button click="click();" x="141" y="557" label="Delete
    Selected Node"/>
    </mx:Application>
    For some reason when I expand all the nodes and try to delete
    one of the great grand children all of the great grand children
    shift over as if they are siblings of the node that I deleted the
    great grand children from.
    Anyone have some good ideas? I sure wish deletion of nodes
    was as easy as in actionscript 2.0

    There a quite a few posts about this problem here already -
    it seems to be a tree rendering bug (seems to come in various
    different flavours).
    The safest work around after fiddling with the nodes in the
    tree is to get the axe out and reassign the data provider. To be
    nice to the user, you might want to keep the expansion state (this
    may not work if you made big "structural" changes to the tree).
    The following works for me (after your changed the tree data
    model):
    var openItems:Object = treeopenItems;
    tree.dataProvider = tree.dataProvider;
    this.openItems = openItems;
    Hope this helps.
    Robert.

  • Please, I need help in this,How to make a tree control appear from right to left ??

    i working on Arabic project in which we use a tree control and i  want it to display its branches from right to left .
    i tried to rotate it but it doesn't work because the disclosure triangle still appear on the left .
    i ask if there is any thing to mirror the tree control ,and ask if this mirroing will work or not?

    You'll need to modify the layout logic of your renderer.
    Here's a simple example that extends the default tree renderer and overrides the updateDisplayList method(). It will probably need more work. Set textAlign="right" on your Tree control when you use this renderer. You'll also need to supply a disclosure icon that points in the opposite direction.
    package
        import mx.controls.treeClasses.TreeItemRenderer;
        import mx.controls.treeClasses.TreeListData;
        public class RightToLeftTreeItemRenderer extends TreeItemRenderer
            override protected function updateDisplayList(unscaledWidth:Number,
                                                      unscaledHeight:Number):void
                super.updateDisplayList(unscaledWidth, unscaledHeight);
                var startx : Number = data ? TreeListData( listData ).indent : 0;
                startx = unscaledWidth - startx;
                if ( disclosureIcon )
                    disclosureIcon.x = startx - disclosureIcon.width;
                    startx = disclosureIcon.x;
                if ( icon )
                    icon.x = startx - icon.width;
                if ( label )
                    label.x = 0;

  • JTree: how not to render the "tree connecting lines"

    I have a JTree.
    I would like that my custom tree renderer (using windows LAF) did not paint the dotted line that connect the hierarchy nodes. setting the icon to null in the default renderer only do not paint the folder. How can I disable also the painting of the dotted line?
    using
    tree.putClientProperty("JTree.lineStyle", "None")
    I disable it for the whole tree.
    First of all this do not work on Windows LAF. Then I'd like to disable only on certain branches or nodes, that are somehow as "empty containers", while keeping hte default feature for the "good branches".
    any idea?
    thanks
    Edited by: Davide_Gesino on Nov 8, 2009 5:24 AM

    hii,
    one from possible:
    tree.putClientProperty("JTree.lineStyle", "Horizontal"); a lots examples (runnable) at http://www.java2s.com/Code/Java/Swing-JFC/Tree.htm
    ... kopik

  • Tree component bug (?) and some questions

    Hi! I have some problems and questions about tree component.
    Problems:
    1. I have an expanded tree with ~300 items. Each item label
    displayed in 2-3 strings. After QUICK tree scrolling using mouse
    wheel (I make 3-5 scrolls) for most of items displayed only last
    string and one empty string :(
    Bug of tree renderer? Is it fixable?
    Questions:
    1. Can I have font color X for tree item 1 and font color Y
    for tree item 2?
    2. I have a tree with ~300 items. Expand/Collapse tree
    operations takes 5 to 10 seconds on Core2Duo. Is it possible to
    speed up this operations?
    Code:

    Hello.
    About problem 1.
    I faced this problem several times, cann't understand the
    problem. May be it's a bug.
    Questions.
    1. Of course you can. Write itemRenderer for this.
    2. Tree has effects for expanding and collapse events, you
    can reduce times for them.

  • ADF Tree table :  Target Unreachable, identifier 'node' resolved to null

    Hi, we are using a tree table:
    <af:treeTable value="#{bindings.FacilitySummaryVO1.treeModel}"
    var="node"
    emptyText="#{bindings.FacilitySummaryVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    selectionListener="#{bindings.FacilitySummaryVO1.treeModel.makeCurrent}"
    rowSelection="#{pageFlowScope.facilitySummaryHelper.tableSelectionMode}"
    id="tt1" width="100%" contentDelivery="immediate"
    binding="#{backingBeanScope.facilitySummary.facilityTree}"
    autoHeightRows="#{pageFlowScope.facilitySummaryHelper.tableHeight}"
    columnStretching="column:c6">
    <f:facet name="nodeStamp">
    <af:column id="c8" width="5px" headerText=""></af:column>
    </f:facet>
    <af:column id="c5"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_SELECT}"
    width="40" align="center"
    rendered="#{pageFlowScope.facilitySummaryHelper.showColumnSelect}">
    <af:group id="g1">
    <af:panelLabelAndMessage label="" id="plam1">
    <af:selectBooleanCheckbox text="" autoSubmit="true"
    rendered="#{node.ShowSelectCheckBox}"
    valueChangeListener="#{backingBeanScope.facilitySummary.facilitySelectCheckboxEventListener}"
    label="" id="sbc1"
    value="#{node.bindings.SelectedFacilityLandingPage.inputValue}"/>
    </af:panelLabelAndMessage>
    </af:group>
    </af:column>
    <af:column id="c6"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_FACILITY}">
    <af:group id="g2">
    <af:panelGroupLayout layout="horizontal" id="pgl2">
    <af:spacer width="#{node.IndentationWidth}" height="10"
    id="s2"/>
    <af:commandLink text="" textAndAccessKey="#{node.FacilityName}"
    disabled="#{pageFlowScope.facilitySummaryHelper.itemReadonly}"
    visible="#{(node.NodeType == facilitySummary_rb.ACCOUNT_VALUE)? false : true}"
    actionListener="#{backingBeanScope.facilitySummary.treeExpandDiscloseActionListener}"
    id="cl2">
    <af:image source="#{node.NodeImgPath}" id="i2" shortDesc=""></af:image>
    </af:commandLink>
    <af:spacer width="10" height="10" id="s1"/>
    <af:commandLink text="#{node.FacilityName}"
    textAndAccessKey="#{node.FacilityName}" id="cl1"
    actionListener="#{backingBeanScope.facilitySummary.showDetailsActionListener}"></af:commandLink>
    </af:panelGroupLayout>
    </af:group>
    </af:column>
    <af:column id="c12"
    headerText="#{facilitySummary_rb.COLUMN_LABEL_ACTION}"
    width="110"
    rendered="#{pageFlowScope.facilitySummaryHelper.showColumnAction}">
    <af:selectOneChoice valueChangeListener="#{backingBeanScope.facilitySummary.nodeActionValueChangeListener}"
    value="#{node.bindings.SelectActionValue.inputValue}"
    label=""
    unselectedLabel="#{origination_rb.LBL_IB_UNSELECTED_VALUE}"
    readOnly="#{pageFlowScope.facilitySummaryHelper.itemReadonly}"
    id="soc1" autoSubmit="true">
    <f:selectItems value="#{node.NodeAction ==null? pageFlowScope.facilitySummaryHelper.defaultSelectItems : node.NodeAction}"
    id="si2"/>
    </af:selectOneChoice>
    </af:column>
    </af:treeTable>
    af:selectOneChoice has an option to remove the row in the tree table by clearing the VO and populate new data into it. (with the exception of the removed row)
    The row get removed from the vo and the screen but i got this error Target Unreachable, identifier 'node' resolved to null
    No stack trace got printed in the stack trace.
    It works with jdev/adf 11.1.1.1.4. only with jdev/adf 11.1.1.1.5 (JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013) we're having this error. FacilitySummaryVO doesnt have primary key attribute.
    Data got populated to VO programmatically
    All VO attribute value updatable value is always

    Hi,
    hard to say. Actually the "node" variable reference is only available during tree rendering. So if you have any reference to the "node" variable that is invoked after tree rendering then this would explain the exception
    Frank

  • How to use renderer for a Jtree Element

    Hi all,
    i have been told to use Renderer for drawing a JTree on a JPanel.
    I mean, i want to draw each element of the JTree as a rectangle with a label inside it.....each element of my JTree contains an UserObject with a string inside it.
    Any suggestions ?
    Cheers.
    Stefano

    read the link below it shows how to use trees and tree renderer.
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

  • Component and renderer can't share the same name in face-config.xml

    Hi All,
    I've noticed that a component and a renderer can't share the same name in <face-config.xml>.
    For instance,
    <component>
    <component-type>tree</component-type>
    <component-class>com.xxx.tree.component.Tree</component-class>
    </component>
    <render-kit>
    <renderer>
    <renderer-type>tree</renderer-type>
    <renderer-class>com.xxx.tree.renderer.Tree</renderer-class>
    </renderer>
    </render-kit>     
    generates a cryptic error message.
    It's not a big deal but would be nice to support it.
    The workaround of course is to use a different name for the component and renderer (tree and treeRenderer for instance)
    Stephane

    i dont know why it doesn't work for you. It works for me alright. Can u elaborate on what error messages you are getting? It maybe some other problem.

  • How to drag and drop a sub tree between 2 treeview?

    Suppose I have 2 tree rendered in 2 treeview. Then I want to drag and drop any subtree on any node between the 2 tree.
    For example, in tree 1, if I drag node node1 and drop it on tree 2 node node2. I want all nodes from node1(subtree) moved to node 2 in tree 2.
    How can I do it? Should I code for treeview 1 begindrag event, and code for treeview 2 dragenter event?
    and how to move a sub tree with pb built-in function?

    Hi Kent,
    I have just experimented with drag and drop between treeviews. Below is your bare minimum and caters for one node only. It does not drag any children along. If you drag an item it loses any children. Although it works both ways and within.
    The handle is set in the dragbegin events.
    In the dragdrop events you get source as an argument which is a pointer to the treeview where the drag started.
    You get the node using GetItem ( ref treeviewitem ), then InsertItemSort as a child of the node dropped on.
    NOTE: Must uncheck DisableDragAndDrop property for both treeviews.
    // Instance Variable
    ulong draggedhandle
    type tv_1 from treeview within w_treehop
    string dragicon = "Form!"
    boolean dragauto = true
    boolean disabledragdrop = false
    end type
    event begindrag;
    draggedhandle = handle
    end event
    event dragdrop;
    treeview tvSource
    treeviewitem ltvidropped, ltvidragged
    tvSource = source
    if draggedhandle > 0
      if handle <> draggedhandle or tvSource <> this then
        tvSource.GetItem( draggedhandle , ltvidragged )
        this.GetItem( handle , ltvidropped)
        this.Insertitemsort( handle, ltvidragged )
        tvSource.Deleteitem( draggedhandle )
        draggedhandle = 0
      end if
    end if
    end event
    type tv_2 from treeview within w_treehop
    string dragicon = "Form!"
    boolean dragauto = true
    boolean disabledragdrop = false
    end type
    event begindrag;
    draggedhandle = handle
    end event
    event dragdrop;
    treeview tvSource
    treeviewitem ltvidropped, ltvidragged
    tvSource = source
    if draggedhandle > 0
      if handle <> draggedhandle or tvSource <> this then
        tvSource.GetItem( draggedhandle , ltvidragged )
        this.GetItem( handle , ltvidropped)
        this.Insertitemsort( handle, ltvidragged )
        tvSource.Deleteitem( draggedhandle )
        draggedhandle = 0
      end if
    end if
    end event
    To carry over nested treeview items (children) you can use FindItem ( draggedhandle, navigationcode )
    navigationcode as per help:
         ChildTreeItem! The first child of itemhandle.
         NextTreeItem! The sibling after itemhandle. A sibling is an item at the same level with the same parent.
    HTH
    Lars

  • Jheadstart 10.1.3.1.26: Tree Securitry

    I have a master detail arrangement: MenuGroup and MenuDetail
    I also use ADF security and granted access to the tree items to the appropriate roles.
    Problem:
    The master records display in the tree properly
    The detail records show as nodes without labels (For example if there are 5 records, I get 5 rows without any value)
    Jhedstart generates two pages: MenuGroup.jspx and MenuDetail.jspx. I set the appropriate authorization on all of them.
    I also noticed that jhs generates a region definition page with out a page definition. Could the problem be in that page?
    I appreciate any help in this regards.
    Regards,
    Ali

    Ali,
    "I also noticed that jhs generates a region definition page with out a page definition"
    This is intended behavior, ADF FAces regions cannot have their own page definitions.
    I suspect this to be an ADF issue. To verify, can you manually build a JSF Page with an ADF Faces tree based on the same data, with ADF security enabled, and see whether the tree renders correctly?
    Steven Davelaar,
    JHeadstart Team.

Maybe you are looking for

  • Trying to upgrade my broadband

    Hi, my current broadband package is option 2, 40gb limit/unlimited evening  and weekend calls with unlimited calls as an add on.I pay £18 for the broadband /evening weekend calls, £5.15 for the unlimited calls add on and £15.45 monthly line rental.I

  • Help me a simple problem

    [hello drawAtPoint:location with Font:font] hello type is NSString ,but NSString not have drawAtPonit fuction,why?? please explain it,thanks!

  • Portals - XI - Webservice

    Hi, I am still practicing my steps in the XI world. We have CRM4 and R/3(4.6c). Our users use EP (PCUI) for the frontend (say for masterdata). We have some web-application(webservice) system which needs to be integrated through XI. If example, they c

  • Error SAP Web Dispatcher

    Buenas tardes estimados, Configure el web dispatcher con solman pero el webdispatcher solo me permite acceder a los servicios del stack de java que corren en el puerto 50000 pero no me deja ver los servicios abap de la SICF que corren en el puerto 80

  • Plant n storage location control

    Hi all, how can we control the plant and storage location control? If I creaet PO for one plant, I must not create PO to other plant. Thanks