Setting a node as parent

hi,
I have got a tree which hold a lot of nodes.
Now the condition is, the root should not hold nodes,
it should only hold parent nodes.
The problem here is that, i have a node which has no children and thus i need to set this node as parent in the tree.
Please help me converting this node as a parent of itself
thanx

hi
Still I could n't understand ur problem.
I think that the node which is having the children,that is called parent.
Which is not having any children,that is called leaf.
You tell me what is ur exact purpose.....
At some extend I can help u..
Shalinipriya.

Similar Messages

  • Can i set a node manager serve for 2 domain on one machin??

    My question is simple.
    I installed webcenter suite and soa suite in a machine using difference linux user and difference middleware home.
    and I want to set a node manager server for two domains (soa_domain and webcenter_domain).
    Is is possible?
    When I tried to register domain list in node manager domain list using nmEnroll() of wlst, it failed.
    please check following logs in 7101 is admin server port of soa domain and I ran node manager on webcenter domain.
    Thanks in advance.
    BmW.
    ~~~~~~~~~~~~~~~~~~
    wls:/offline> connect()
    Please enter your username :weblogic
    Please enter your password :
    Please enter your server URL [t3://localhost:7001] :t3://localhost:7101
    Connecting to t3://localhost:7101 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'soa_domain'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    wls:/soa_domain/serverConfig> wls:/soa_domain/serverConfig> wls:/soa_domain/serverConfig> wls:/soa_domain/serverConfig> nmEnroll('/u02/app/soa11g/middleware/user_projects/domains/soa_domain', '/u02/app/wc11g/middleware/wlserver_10.3/common/nodemanager');
    Enrolling this machine with the domain directory at /u02/app/soa11g/middleware/user_projects/domains/soa_domain ...
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 1447, in nmEnroll
    File "<iostream>", line 1848, in raiseWLSTException
    WLSTException: Error occured while performing nmEnroll : Problem enrolling the machine. : /u02/app/soa11g/middleware/user_projects/domains/soa_domain/config/nodemanager/nm_password.properties (Permission denied)
    Use dumpStack() to view the full stacktrace
    wls:/soa_domain/serverConfig> exit();

    you might be victim of the "node manager starts WL Server with same Unix user id that was used to start Node Manager itself" problem
    see here http://forums.oracle.com/forums/thread.jspa?threadID=2184607&tstart=89
    I have been looking everywhere for a simple way to tell Node Manager to use a different Unix UID,
    anybody any clue?
    here http://download.oracle.com/docs/cd/E12840_01/wls/docs103/nodemgr/overview.html the Node Manager doc page

  • Enabling the set/hierarchy node option in Report painter

    In Report painter how to enable the option to check the set/hierarchy node option in ‘general data selection’. it always displayes in disabled mode.

    sanjay,
    in change mode(GRR2)it wont allow to edit 'set/hierarchy node', only allows for variable.

  • Setting current node to nil

    Has anyone noticed, when setting the current node in a list view to nil
    the blue highlight is replaced by a gray highlight? The only way I have
    found to completely deselect an item in the list is to repopulate, has
    anyone found another way?
    Brian Milinazzo
    Consultant
    MSF&W Information Systems Consulting
    3445 Liberty Drive
    Springfield, IL 62704-6521
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    This is a known bug in Forte and is reported as being fixed in Version
    J.
    I do not know any other way to remove the highlight bar in previous
    versions of Forte.
    Ja.
    -----Original Message-----
    From: Brian Milinazzo [SMTP:[email protected]]
    Sent: Wednesday, 6 January 1999 17:49
    To: [email protected]
    Subject: setting current node to nil
    Has anyone noticed, when setting the current node in a list view to
    nil
    the blue highlight is replaced by a gray highlight? The only way I
    have
    found to completely deselect an item in the list is to repopulate, has
    anyone found another way?
    Brian Milinazzo
    Consultant
    MSF&W Information Systems Consulting
    3445 Liberty Drive
    Springfield, IL 62704-6521
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Save and Recall a set of nodes

    I read somewhere that it's possible to save a set of nodes (a piece of a tree) that you use constantly. Not a macro. A set that's built once, then recalled whenever needed saving the time of rebuilding. It's not "add script."
    I found this a while ago but don't remember where. I'm looking through my manuals & 3rd party books now. Any help would be greatly appreciated.
    Thanks,
    pete

    It's definitely not a linked node. I suppose I could use a macro but it would be somewhat of a hassle to go into the macro internals to edit it every time. For example...
    RotoShape -> Blur -> Reorder -> SwitchMatte
    But maybe I can copy/paste the internals as node tree outside of the macro. That wouldn't be so bad.
    Thanks for the response. I'll keep looking to see if I can find it in print. Maybe what I read was in fact in the macro section.
    Thanks again,
    pete

  • ADF Tree setting focus back to parent node after deletion of child node

    Hi,
    Is there a way to get the focus back to the parent node (or rather any particular node) in a tree?
    I have a use case where we need to get the focus back to the parent node after a child node is deleted.
    Currently the focus is shifted to the next node in the tree, but the need is to get the focus shifted back to the parent node. Also the parent node should be re-invoked to populate to get the latest status after deletion of the child node.
    Any help/pointers?
    Thanks

    Thanks for the reply Frank.
    I saw the link http://sreevardhanadf.blogspot.in/2012/07/showing-next-row-as-current-row-after.html
    However the issue is since I am using custom created tree using POJO tree item (composite object).
    calling myTree.getWrappedData() doesn't gives me a handle to JUCtrlHierBinding and subsequent access to JUCtrlHierNodeBinding.
    my program gives me data like -
    List<MyTreeItem> treeData = (List<MyTreeItem>)treeModel.getWrappedData();
    because my tree model is build using -
    treeModel = new ChildPropertyTreeModel(items, "children");
    where items is List of <MyTreeItem>
    Hence I am unable to get a handle using -
    List nodeParentList = nodeParent .getKeyPath();
    I am programmatically able to invoke the parent node to get the fresh data, only issue is the focus/selection of that node is not happening
    Is there a way around?
    Thanks
    Sachin

  • Moving child node's parent in JTree

    hi guys.
    What i have is a Jtree dynamically generated, im trying to re-arrange the nodes inside.
    each nodes and their parents have their own values and been built with DefaultMutableTreeNode.
    So im thinking, to do so i first need to analyse which child node i want to move, then remove it from its current parent, then set the new parent to this node.
    I been thinking of using the values and compare them to do the parent-node matching, however, i have been looking at the APIs without luck, for methods to possible retrieve the values of the childs/parents.
    Or perhaps there is a simpler way,
    Does anybody have a clue where i could find some answers to this problem?
    Cheers, Eric.

    aiwick wrote:
    hi guys.
    What i have is a Jtree dynamically generated, im trying to re-arrange the nodes inside.
    each nodes and their parents have their own values and been built with DefaultMutableTreeNode.
    So im thinking, to do so i first need to analyse which child node i want to move, then remove it from its current parent, then set the new parent to this node.
    I been thinking of using the values and compare them to do the parent-node matching, however, i have been looking at the APIs without luck, for methods to possible retrieve the values of the childs/parents.
    Or perhaps there is a simpler way,
    Does anybody have a clue where i could find some answers to this problem?
    Cheers, Eric.Not sure what the problem is exactly. DefaultMutableTreeNode has methods for retrieving it's parent and child nodes: which is all you need to move nodes in your tree.

  • Set root node expanded when the page is opened

    Hi,
    I have a tree in a page having 2 children.
    Currently when I come to the page, the parent node appears, when click on that, it will show the 2 children.
    My requirement is, when come to the page, the parent node should be expanded and show its children.
    Please suggest how can i do this....!
    Thanks,
    ViN

    Hi Arun,
    When initiallyExpanded property of the tree is set to true, all the child nodes also expanded.
    My requirement is to expand only parent node.
    Thanks,
    ViN

  • Setting private fields from Parent class.

    Hi all, I have what seems to be a weird situation to me.
    Basically I have two classes:
    import java.lang.reflect.Field;
    public class Parent {
         protected void ensureDefaults() {
              Field[] declaredFields = getClass().getDeclaredFields();
              for (Field field : declaredFields) {
                   Object fieldValue = getDefaultValueForType(field.getType());
                   try {
                        System.out.println("defaulting field - name: " + field.getName() + " | this: " + this);
                        field.set(this, fieldValue);
                   } catch (Exception e) {
                        e.printStackTrace();
         private Object getDefaultValueForType(Class<?> type) {
              Object defaultValue = null;
              if (type.isAssignableFrom(String.class)) {
                   defaultValue = "default";
              } else if (type.isAssignableFrom(int.class)) {
                   defaultValue = -100;
              return defaultValue;
    public class Child extends Parent {
         private String name;
         private int age;
         public Child() {
              ensureDefaults();
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public int getAge() {
              return age;
         public void setAge(int age) {
              this.age = age;
    // Test Case
    import junit.framework.TestCase;
    public class ChildTest extends TestCase {
         public void testEnsureDefaults() {
              Child child = new Child();
              assertEquals("default", child.getName());
              assertEquals(-100, child.getAge());
    }The odd thing to me is that the output looks like:
    defaulting field - name: name | this: Child@7431b9
    java.lang.IllegalAccessException: Class Parent can not access a member of class Child with modifiers "private"
    ... more exception ...
    defaulting field - name: age | this: Child@7431b9
    java.lang.IllegalAccessException: Class Parent can not access a member of class Child with modifiers "private"
    ... more exception ...
    As you can see, it doesn't like me setting (or getting for that matter - tried that) these fields because they're private. However, if you look it's saying that "this" is a Child, so shouldn't those fields be accessible? Shouldn't ensureDefaults be executed as if it was being called by the Child instance?
    Obviously, I can try to use the accessor methods, but that means creating strings for method names, and then looking for the methods. I'd like to avoid this and it seems to me this should work, no?
    Another odd thing is that if I change the fields in Child to protected, it works fine.
    Also, I'm not sure if this is important (I don't know enough about security managers to know if they're different platform to platform, version to version), I'm on a Mac OSX 10.4.11 and:
    java version "1.5.0_13"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-241)
    Java HotSpot(TM) Client VM (build 1.5.0_13-121, mixed mode, sharing)
    Any help with this would be greatly appreciated.
    Thanks,
    Eric

    jschell wrote:
    As you can see, it doesn't like me setting (or getting for that matter - tried that) these fields because they're private.Myself I don't like it because it suggests a design problem which is associated with understanding that although a child is a parent that doesn't mean that a parent is a child.
    I understand that, but I don't see how this actually breaks that. The Child is executing a method that is passed down to it from it's Parent, but it's executing it as itself - by that I mean it's not looking at anything that it can't already look at, or at least I thought it was.
    Shouldn't ensureDefaults be executed as if it was being called by the Child instance?No.Ok, I thought it was. Can you please explain this a bit more, I want to understand it.
    >
    Another odd thing is that if I change the fields in Child to protected, it works fine.If you messed with reflection some more you could get to to work even with private. How exactly? I really don't want to bypass any security measures (by settings accessible or using a different security manager, or anything like that). As I mentioned in my last post, what I want to do really is nothing more than a nice way to have a generic toString or hashCode method, if it's not possible to do it nicely - within java's default constraints, I'd rather not.
    >
    However in general the idiom would still be wrong.I'm moving more towards using beans anyway, so I plan on just calling accessor methods which corrects the "wrong idiom" right?
    Thanks for all the help,
    Eric

  • How To Display  attributes of Child Node and Parent Node in same view

    Suppose I have two view Carview and CarDetail View...IN Component context I have Parent Node Called Cars and It have its attribute as Price,Warranty,Year and also One Child Node Called as Brand Name Whose attribute are PrimaryBrand and SecondaryBrand..Now If I do Mapping of My First View i.e CarView with Child node of BrandName..and then I Have To Show Whole Detail of Car in CarDetailView.......How Can I Achieve it..

    Hi Vinay,
    You can map the child node and even the paren tnode to the same view if u want to display in the same window..
    If not if ur requirment is to dispaly in the sme view but should not map the child and parent to the Same view then you can take another new view.. and insert 2 view containers and then add the Child view and parent view in that view containers and then Diaplay the newly created view.
    Regards,
    Raju Bonagiri

  • How to set focus in the parent window after a JOptionPane pop up ?

    I am not able to set the focus back to a JTextField in the parent window after poping up a JOptionpane.showMessageDialog(). I tried requestfocus(),requestFocusInWindow etc......but not working. The code is given below.
    if ((encryptor.encrypt(password)).equals(configuredPasswd)) {
                        validPassword = true;
                   } else {
                        JOptionPane.showMessageDialog(saveUI,"The password entered is not correct.");
                        saveUI.getPasswdField().setText("");
    saveUI.getPasswdField().requestFocus();
    Sometimes the focus is coming to the JTextField.Sometimes it appears for a moment and then dissappears.Please give a solution

    see if this makes a difference
    if((encryptor.encrypt(password)).equals(configuredPasswd))
      validPassword = true;
    else
      JOptionPane.showMessageDialog(saveUI,"The password entered is not correct.");
      ActionListener al = new ActionListener(){
        public void actionPerformed(ActionEvent ae){
          saveUI.getPasswdField().setText("");
          saveUI.getPasswdField().requestFocusInWindow();}};
      javax.swing.Timer timer = new javax.swing.Timer(100,al);
      timer.setRepeats(false);
      timer.start();
    }

  • How to set property nodes for each of the multiple y-axes?

    In Labview 6i, I have set up multiple y-axes on an xy graph. I want to change certain properties of each of the 2 y-axes independently. I believe I can do this using "property node".
    However, after I have created a property node for the xy graph, I realised that there is only 1 y-axis selectable from the list of properties. How can I set the property of the other y-axis then?
    Thanks for the help!

    I believe there is a property called "active graph"... this allows you to
    select the active graph to apply the property changes to...
    Later...
    meng118230 wrote in message
    news:[email protected]..
    > In Labview 6i, I have set up multiple y-axes on an xy graph. I want to
    > change certain properties of each of the 2 y-axes independently. I
    > believe I can do this using "property node".
    >
    > However, after I have created a property node for the xy graph, I
    > realised that there is only 1 y-axis selectable from the list of
    > properties. How can I set the property of the other y-axis then?
    >
    > Thanks for the help!

  • How to set my vi as Parent and child?

    hello ni,
                   for my application as i want to set my main vi as a parent and sub vi as a child. i mean that if child vi opened and user move that vi, it should not bound above from parent vi, i mean that it should be shown as a with in the parent vi.
    and another that i want show the some parametersettings vi, as like that in Visual basic properties tools box, even if i close or open that window, work space vi that should be automatically adjust that size. is it possible with labview? 
    Regards,
    Balaji DP

    You mean like Excel?
    This is called a Multi Document interface (MDI) and it is possible to set this up with LabVIEW. It is not bug-free!
    But at LAVA there is at least one codesnap that provides this info.
    Anotherand an XControl base solution
    Ton
    Message Edited by TCPlomp on 30-05-2010 08:32 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Essbase Studio--cannot set essbase properties at parent level

    Hi,
    I have a recurssive hierarchy product dimension.Source is an oracle table something like
    Parent child alias
    P p1 ap1
    p p2 ap2
    p1 p11 ap11
    p1 p12 ap12
    I have an self-join between parent and child column and have no issues related to hierarchy building
    However i am able to set an alias to all other members except the member P.
    Any advice on the issue will be helpful!!!
    Regards,

    Is P the Dimension name?
    For example the dimension is entity and the hierarchy is
    Entity all entities
    Entity Alternate pollup
    All Entities zzz
    If so, you would set the properties directly for the Dimension member
    IF it is not, then can you add where P is a child of the dimension member?
    In recursive hierarchies, you should only be setting the properties on the child members as they should be the parent of other members or the level zero members themselves

  • How to copy a set of nodes stored in a variable in xslt 2.0

    I am trying to do something like this:
    XSL
    <xsl:variable name="setOfNodes" select="foo[@attr = 'bar']" />
    <result>
    <xsl:copy-of select="$setOfNodes/*" />
    </result>XML
    <test>
    <foo attr="bar" />
    <foo attr="bar" />
    <foo attr="different" />
    <foo attr="bar" />
    </test>I want the result to look like this:
    <result>
    <foo attr="bar" />
    <foo attr="bar" />
    <foo attr="bar" />
    </result>But when I run the above xsl I get:
    <result />This seems like it should be pretty simple, I am probably just mixing something up. Does anyone have any ideas or suggestions for how to do this type of thing?

    Whether it is XSLT 1.0 or 2.0 does not really matter for your question. As you bind a value to your variable 'setOfNodes' with the XPath expression in the 'select' attribute selecting some 'foo' element nodes the value of that variable is a node-set (in XSLT 1.0) or a sequence (in XSLT 2.0) of those 'foo' element nodes. And if you want to copy those nodes to the result tree then you simply do <xsl:copy-of select="$setOfNodes"/>. Your attempt with select="$setOfNodes/*" would copy the child elements of those 'foo' elements to the result tree, only all those 'foo' elements are empty, they don't have any child nodes at all, thus nothing is copied to the result tree with your xsl:copy-of attempt.

Maybe you are looking for