Items of the node undiscovered

Hello friends,
I automatically discovered a node in OEM and I can only see there the Http Server. But I also have a database corresponding to this node that has not been added. I tried refreshing the node, but still the database does not appear?
Could you please tell me what to do to see my database?
Thanks,
Luiza

Hello,
two ways:
1.: using OEMS:
targets->all targets->search_your_agent
monitored targets->database add, if automatically detection fails, there should be a button: manually add. Just fill in all input fields
2.: manually add a Target to your targets.xml (my favorite way to do it)
cd $AGENT_HOME/sysman/emd
shut down your agent
vi targets.xml
add following - you have to replace all #VARIABLES# by your values
<Target TYPE="oracle_listener" NAME="LISTENER_#SID#">
<Property NAME="ListenerOraDir" VALUE="#LISTENER_PATH#"/>
<Property NAME="LsnrName" VALUE="LISTENER_#SID#"/>
<Property NAME="Machine" VALUE="#HOSTNAME#"/>
<Property NAME="OracleHome" VALUE="#ORACLE_HOME#"/>
<Property NAME="Port" VALUE="#PORT#"/>
</Target>
<Target TYPE="oracle_database" NAME="#SID#" DISPLAY_NAME="#SID#_#COMMENT#">
<Property NAME="UserName" VALUE="dbsnmp"/>
<Property NAME="MachineName" VALUE="#HOSTNAME#"/>
<Property NAME="OracleHome" VALUE="#ORACLE_HOME#"/>
<Property NAME="password" VALUE="DBSNMP_PASSWORT" ENCRYPTED="FALSE"/>
<Property NAME="Role" VALUE="NORMAL"/>
<Property NAME="Port" VALUE="#PORT#"/>
<Property NAME="SID" VALUE="#SID#"/>
</target>
and restart the agent. Database and listener should appear soon.
Perhaps you have to reset your agent - have a look at this forum.
Best regards
Andreas

Similar Messages

  • How to select the node in structure view from selected xml page item

    Hi All,
    I have imported the xml file. Now drag and dropped the root node in the documentt.Now i select a item from it.When i select an item, i need the node in the structure view to get selected.
    In Indesign we have an menu option "Select in structure".
    How to go about it?
    Regards
    Sakthi

    Hi All,
    I have imported the xml file. Now drag and dropped the root node in the documentt.Now i select a item from it.When i select an item, i need the node in the structure view to get selected.
    In Indesign we have an menu option "Select in structure".
    How to go about it?
    Regards
    Sakthi

  • Is there a way to "mix" the nodes and leaves of the tree so if they are at the same level, they will display in a specified order.

    Is there a way to "mix" the nodes and leaves of the tree so that even if they are at the same level (1,2,3...), they will display in a specified order (via sort sequence, alphabetical, etc.).
    History:
    We are using the Tree UI element to display/manage a material bom interface. We seem to be running into an issue with displaying the nodes/leaves of the tree.. regardless of the order that the context is built (which is currently the order of the exploded BOM from from CS_BOM_EXPL_MAT_V2), the bom is displayed with the nested boms at the top of each level and the single materials below them. For example. If  TK1 contains Material1, Material2, Material3, Kit1(containing component1, comp2, comp3), Material4, Kit2(containing comp4, comp5, comp6), and Material5 (in this order), the tree will display with the A level node as TK1, the next node as Kit1 (with its subleaves of comp1,comp2,comp3), Kit2(with subleaves of comp4,comp5,comp6), THEN Material1, material2, material3, material4, material5.  Our users are adamant about the items displaying in the correct order (which should be alphabetical based on the description for one report and by location for purposes of inventory for another). I've searched but not been able to locate a similar question. If I've missed it, please point me in the right direction. The users want the tree,  not a "tree" table.  This is our first attempt at the tree, so maybe we're missing something basic?
    TK1
    -Mat1
    -Mat2
    -Mat3
    -Kit1
    --Comp1
    --Comp2
    --Comp3
    -Mat4
    -Kit2
    --Comp4
    --comp5
    --comp6
    -Material5
    displays as
    TK1
    -Kit1
    --Comp1
    --Comp2
    --Comp3
    -Kit2
    --Comp4
    --Comp5
    --Comp6
    -Mat1
    -Mat2
    -Mat3
    -Mat4
    -Mat5

    co-workers said example picture is misleading.. we can make the order work if everything is a "folder" but not a mix of "folders" and "files" (if making a visual reference to the windows browser). i.e - a file is represented as an empty folder.
    TK1    
    . Mat1
    . Mat2
    . mat3
    > kit1   
    .. comp1
    .. comp2
    .. comp3
    . mat4
    > kit2
    .. comp4
    .. comp5
    .. comp6
    . mat5
    displays at
    TK1
    > kit1
    .. comp1
    .. comp2
    .. comp3
    > kit2
    .. comp4
    .. comp5
    .. comp6
    . mat1
    . mat2
    . mat3
    . mat4
    . mat5
    we can make it work if everything is a folder. This is our current workaround.
    TK1
    > mat1
    > mat2
    > mat3
    v kit1 (when expanded)
    .. comp1
    .. comp2
    .. comp3
    > mat4
    > kit2 (when not expanded)
    > mat5

  • Users not able to see remote users on the node network

    Users that belong to one node are not able to see users in another calendar
    server node. Both calendar servers are pointing to the same directory server.
    Some errors that occur in the log files:
    DEXOTEK ERRCODE Ox13608 -> SchedBaseOpen: Section name too long
    DEXOTEK ERRCODE Ox13608 -> OpenConnection: SchedBaseOpenOnHost
    And when uninode -cws nodeID is run, it does not report being able to see all
    the users and resources on the remote nodes.
    uninode: connected to hostname.net.xxx.com, node 10000
    directory of items: 10 (USERS = 10/RESOURCES = 0)
    CONNECTION EX AV Q-SIZE IN-PROCESS IMPORT-DIR
    (10000)->xxxxxx.xxx.com(10001) 2 2 0 0 370 (U=370/R=0)
    Here is the nodes.ini file:
    + H=xxxxxxx.xxx.com/N=10000
    + H=xxxx.xxx.com/N=10001
    all=2
    There is a reported bug, that 16 chars is max on domain names for the nodes.ini
    file, which means that you need to change that file and use:
         a) an alias that can be resolved on the network with either DNS or local
         host files
         b) use the IP address.
    As documented in the release notes, here is the procedure on how to modify the
    hostname when it is too long. Or how to modify the hostname for any reason.
    Fix for long host names problem
    If the fully qualified domain name for your network exceeds 16 characters, it
    will be necessary to shorten the host name of all the servers in the Calendar
    Server network . These instructions must be carefully followed to avoid causing
    problems with the network. Ensure that the procedure is applied to ALL nodes in
    the Calendar network.
    1) The following procedure should be carried out on each server in the
    Calendar network:
    a) Bring the Calendar services down.
    % unistop -y
    b) Run the unidbfix command in export mode.
    % unidbfix -export -n node-id
    This will create a remotenode.ini file for each node on the server. The file is
    located in the node's perm directory.
    Example:
    If you have two nodes on the server ROCK, node 1(in N1) and node (in N2), the
    files are:
    /users/unison/db/nodes/N1/perm/remotenode.ini
    /users/unison/db/nodes/N2/perm/remotenode.ini
    The remotenode.ini file will look something like this:
    [1]
    RN_NUMCONNECT = 2
    RN_SURNAME = "unison"
    RN_GIVENNAME = "unison"
    RN_ORGUNIT1 = "uni2"
    RN_ORGUNIT2 = "openmail"
    RN_ORGANIZATION = "ABC Corp"
    RN_ACCESSMETHOD = 2
    RN_SERVICENAME = "unieng"
    RN_HOSTNAME = "rock"
    [2]
    RN_NUMCONNECT = 2
    RN_SURNAME = "unison"
    RN_GIVENNAME = "unison"
    RN_ORGUNIT1 = "uni4"
    RN_ORGUNIT2 = "openmail"
    RN_ORGANIZATION = "ABC Corp"
    RN_ACCESSMETHOD = 2
    RN_SERVICENAME = "unieng"
    RN_HOSTNAME = "rock"
    2) Once you have run unidbfix in export mode on all the servers, proceed as
    follows:
    a) Compare the remotenode.ini files and verify that the entries are the
    same. In each file, you will note that an entry for the local node is not
    included.
    b) Edit one of the files (on any of the servers). This file will be
    referred to as the master file. Add the appropriate entries for the
    local node (copy the section from one of the other files). Modify the
    RN_HOSTNAME in each of the sections of the master file to shorten the
    name.
    c) Copy the master file in the perm directories of each node on all the
    servers.
    3) Once the master file is in the perm directory of all the nodes, proceed as
    follows on each server:
    a) Run the unidbfix command in the -import mode.
    % unidbfix -import -n node-id
    b) Edit the nodes.ini file on the hub server and make the same changes to
    the host names. You do not need to apply the changes.
    c) Edit the [UTL] section of the /users/unison/misc/unison.ini file and
    change the host name.
    d) Start up the services.
    % unistart
    4) After all the changes have been made, run the uninode -cws all and
    uninode -snc all commands and verify that the results are accurate.

    See this:
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8203.html
    You should then see your pcs listed in Finder's sidebar under the shared section.
    Regards

  • How to create input text of the node in AVL tree

    Hi experts,
    I create a simple AVL tree to display the sales order items, just two classes for one relationship. Like the left part on the screen in this program "DEMO_ABAP_OBJECTS_CONTROLS".
    I want to let the node of the second class be maintained serial no., somthing like input field behind the node or double click the node, then show up the input field on another space on the same screen.
    And there is a button on screen, I can do some check for the text of input field when pressing the button. If the input data is wrong , then show up the error message.
    I have searched BCALV* in SE38, but i don't see anything helpful.
    Plz give me some advice, thanks a lot!!
    Regards,
    Claire

    To Kunjal and Uwe,
    My AVL tree is declared like this:
    Data: tree TYPE REF TO cl_gui_simple_tree.
    The class is not  "cl_gui_alv_tree" , so I can not use the code.
    The code I create the node is the follwing:
    CALL METHOD tree->add_nodes
             EXPORTING table_structure_name = 'ABDEMONODE'
                       node_table = node_table.
    And I looked the program that Uwe wrote, the tree is declared in class cl_gui_alv_tree, too.
    I want to double click the node and appear a field that can be inputed text.
    Is there any other way to do this with the class cl_gui_simple_tree?
    Thanks for the advence help.
    Claire

  • How to delete an item in the table

    hi all ,
    Is anyone there to give me an idea , how to delete the item in the table , by selecting the row. , for the what i have to do , is there any documentation to follow , guide me itys really urgent.

    Hai Madhu,
    It is pretty simple.
    First u define a button. and in onAction  Event of the button write the following code.
    process is as follows:
    1)get the node
    2)get the element
    3)using the method remove_element() ,remove the element.
    <u><b>The Sample Code is as follows</b></u>
    DATA:
          node_flighttab                      TYPE REF TO if_wd_context_node,
          elem_flighttab                      TYPE REF TO if_wd_context_element.
        node_flighttab = wd_context->get_child_node( 'FLIGHTTAB' ).
      get element via lead selection
        elem_flighttab = node_flighttab->get_element(  ).
        node_flighttab->remove_element( element = elem_flighttab ).
    Follow the above code ,it will definately help you.

  • Runcluvfy.sh stage -pre crsinst: error Unable to reach any of the nodes

    Hii all,
    Well, I've gone through the pre-reqs for trying to install 11G clusterware on RHEL 5.3.
    I'm to the point where i'm trying to run:
    ./runcluvfy.sh stage -pre crsinst -n node1 -verbose
    I get this:
    Performing pre-checks for cluster services setup
    Checking node reachability...
    Node reachability check failed from node "node1 ".
    Check failed on nodes:
    node1
    ERROR:
    Unable to reach any of the nodes.
    Verification cannot proceed.
    Pre-check for cluster services setup was unsuccessful on all the nodes.
    I'm just wanting right now, to install a one node RAC system (I will add servers later as I get them online).
    I've verified that ssh is working (thinking it may be trying to connect to itself by ssh). I have the keys generated and installed...if I connect ssh as the oracle user back to the same machine, it gets me right on with no prompts for passwords.
    nslookup on node1 looks great.
    This box has 2 cards....eth0 and eth1. Right now in the /etc/hosts file, I have node1 to the IP for eth0, and node1-priv set for the IP address eth1.
    I do have a little trouble understanding what the node1-vip is supposed to do or be set. I found the an IP address one higher than for eth0 wasn't being used, and set node1-vip to be that.
    (Can someone explain to me a little more about the vip host?? Is it supposed to somehow point to node1's IP address on eth0 like the regular one does?)
    Since this is a one box, one node install...hoping clusterware and checks are just looking at the /etc/hosts file. I've tried playing around, and setting node1-vip to be the same as node1 (IP)...that doesn't work either.
    One thing I can guess 'might' be wrong. Does runcluvfy use "ping"? I found the oracle user cannot ping this box from this box. The box (node1) can be pinged from outside the box...it is registered on DNS, I can ssh into it no problem, and again, oracle can ssh into himself on same box with keys properly generated).
    I've been looking around, and I just don't see much of what to look at to troubleshoot with this error, I guess everyone gets past the verification the first time with no host unreachable errors?
    I'm a bit weak when it comes to networking. Any help greatly appreciated...suggestions, links...etc!!
    cayenne

    Ok...looks like this was the problem. It appears the SA's, per newer policy, had turned off "ping" for any other user on the box besides root.
    I took a shot in the dark, and had them turn it on (as that ssh'ing and other items to check seemed to work outside the runcluvfy script). They turned on ping. The nodes from the script are now reachable and test positive for equivalency.
    Performing pre-checks for cluster services setup
    Checking node reachability...
    Check: Node reachability from node "node1"
    Destination Node Reachable?
    node1 yes
    Result: Node reachability check passed from node "node1".
    Checking user equivalence...
    Check: User equivalence for user "oracle"
    Node Name Comment
    node1 passed
    Result: User equivalence check passed for user "oracle".
    Pre-check for cluster services setup was unsuccessful on all the nodes.
    I"m guessing that last line...was due to not having the clusterware running on any other boxes?
    Anyway, will try to config. RAC, and get things installed.

  • How to get the node value of payload

    Hi
    The null is returned when I use the following code to get the User_ID element in the payload, but there are values in the User_ID element of the payload
    Task task_test = wfSvcClient.getTaskQueryService().getTaskDetailsById(wfCtx, taskId);
    System.out.println("the payload value is " + task_test.getPayloadAsElement().getElementsByTagName("User_ID").item(0).getNodeValue());
    How to get the node value of payload ? any suggestion?
    Thanks
    Jayson

    Hi Jayson,
    Try:
    System.out.println("the payload value is " + task_test.getPayloadAsElement().getElementsByTagName("User_ID").item(0).getFirstChild().getNodeValue());
    So add the getFirstChild() call in between.
    If this works, maybe consider using JAXB to marshall the payload details to POJO's. This will make reading the payload details much easier.
    Regards, Ronald

  • Mapping Multiple line item. Target node generation problem

    Hi,
    I am trying to create a mapping to handle multiline items.
    my source structure is
    ns0:OrderCreate>
    <ns0:Header>
    <ns0:OrderCreateBody>
         -<ns0:OrderCreateProperties>
         -<ns0:PurchaseOrderNumber>
            -<ns0:OrderCreatePartners>
         -<ns0:OrderCreateDetails>
                   --<ns0:OrderCreateProductLineItem>
           -</ns0:OrderCreateDetails>
    </ns0:OrderCreateBody>
    </ns0:OrderCreate>
    Here    <ns0:OrderCreateProductLineItem> is the node which will occure multiple time in new requirment (which is mapped to E1EDP01).
    my target structure is
    <ORDERS05>
    <IDOC>
       <EDI_DC40>
       <E1EDK01>
       <E1EDK14>
       <E1EDK05>
       <E1EDK02>
       <E1EDKA1>
       <E1EDKT1>
       <E1EDK36>
       <E1EDP01>
    - - POSEX
    - - MENGE
    - - MENEE
    - - <E1EDP02>
    - - <E1EDP19>
    - - <E1EDP35>
    Currently for each line item ( <ns0:OrderCreateProductLineItem>) target structure contains one <E1EDP01> segment (having two <E1EDP02> and one <E1EDP19> subnode ).
    In Multiline Scenario for each occurance of node <ns0:OrderCreateProductLineItem> target structure should have one <E1EDP01> segment (having two <E1EDP02> and one <E1EDP19> subnode for every line item ).
    For example if source is ::
    ns0:OrderCreate>
    <ns0:Header>
    <ns0:OrderCreateBody>
         -  <ns0:OrderCreateProperties>
         -  <ns0:PurchaseOrderNumber>
            -  <ns0:OrderCreatePartners>
         -  <ns0:OrderCreateDetails>
                  - -  <ns0:OrderCreateProductLineItem>
                                  - -  <ns0:OrderCreateProductLineItem>
                                  - -  <ns0:OrderCreateProductLineItem>
           </ns0:OrderCreateDetails>
    </ns0:OrderCreateBody>
    Then target should be ::
    <ORDERS05>
    <IDOC>
       <EDI_DC40>
       <E1EDK01>
       <E1EDP01>
                  - - POSEX
                  - - <E1EDP02>
                  - - <E1EDP02>
                 - - <E1EDP19>
       <E1EDP01>
                  - - POSEX
                  - - <E1EDP02>
                  - - <E1EDP02>
                 - - <E1EDP19>
        <E1EDP01>
                  - - POSEX
                  - - <E1EDP02>
                  - - <E1EDP02>
                 - - <E1EDP19>
    How to acheive this mapping please suggest ?
    Edited by: gumshu on Oct 4, 2011 2:26 AM

    Hello,
    The details you have provided are incomplete, e.g where do you get
    - - POSEX
    - - <E1EDP02>
    - - <E1EDP02>
    - - <E1EDP19>
    But if you want  E1EDP01 to appear multiple times, you can use this mapping
    OrderCreateProductLineItem -> removeContext -> E1EDP01
    Hope this helps,
    Mark

  • How to hide messagetextinput item on root node in HGRID

    Hi,
    I have added one messagetextinput item in HGRID.
    But it is showing 3 items(one for root node, 2 for the actual items) when there are 2 rows in master node.
    +Employee          |________|
    -101 |________|
    -102 |________|
    I want to hide the item at root node(i.e. for employee.)
    I am working on seeded page, not the custom page.
    Can someone help me..
    --Parag                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Add a switcher in Hgrid, Create 2 items in switcher. One is input type and other is styled text. Switch the values of switcher based on condition from VO.
    For detailed help, feel free to mail me at [email protected]
    OAHGridBean hGridBean =
    (OAHGridBean)webBean.findChildRecursive("QotLinesHGridRN");
    if (hGridBean != null) {
    OASwitcherBean switcherbean =
    (OASwitcherBean)createWebBean(pageContext, SWITCHER_BEAN, null,
    "DellPriceSwitcher");
    switcherbean.setLabel("Dell Auth. Unit Price");
    switcherbean.setViewAttributeName("Attribute20");
    switcherbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    hGridBean.addIndexedChild(9, switcherbean);
    //Add dell auth unit price text input item
    OAMessageTextInputBean inputbean =
    (OAMessageTextInputBean)createWebBean(pageContext,
    MESSAGE_TEXT_INPUT_BEAN,
    null,
    "DellAuthPriceinp");
    OAMessageStyledTextBean styledbean =
    (OAMessageStyledTextBean)createWebBean(pageContext,
    MESSAGE_STYLED_TEXT_BEAN,
    null,
    "DellAuthPricestyled");
    inputbean.setReadOnly(false);
    inputbean.setViewAttributeName("Attribute1");
    inputbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    styledbean.setViewAttributeName("Attribute1");
    styledbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    inputbean.setColumns(5);
    switcherbean.setNamedChild("DellAuthPriceinp", inputbean);
    switcherbean.setNamedChild("DellAuthPricestyled", styledbean);

  • Changing node data not the node itself.

    Dear everyone,
    I'm trying to nest DOM hierarchies within another, and I have most of it worked out,
    but there are a few niggles.
    The first problem is as follows:
    My first document is:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <WfMessage>
    <ATO_ATO>
    <ATO_FileLoadedIntoSystem>No</ATO_FileLoadedIntoSystem>
    <ATO_RawXML>XML DATA HERE</ATO_RawXML>
    </ATO_ATO>
    </ProcInstInputData>
    </ProcessTemplateExecute>
    </WfMessage>
    What I want to do is to insert my second XML file between the tags so that
    it reads:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <WfMessage>
    <ATO_ATO>
    <ATO_FileLoadedIntoSystem>No</ATO_FileLoadedIntoSystem>
    <ATO_RawXML>
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    (XML data in here...snipped for brevity)
    </ATO_RawXML>
    </ATO_ATO>
    </ProcInstInputData>
    </ProcessTemplateExecute>
    </WfMessage>
    (By the way, I do need the second root in the nested document- thats the second problem!)
    I've come up with some code that comes up with the following XML:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <WfMessage>
    <ATO_ATO>
    <ATO_FileLoadedIntoSystem>No</ATO_FileLoadedIntoSystem>
    (data in here...snipped for brevity) // TAGS AND ROOT MISSING !!!
    </ATO_ATO>
    </ProcInstInputData>
    </ProcessTemplateExecute>
    </WfMessage>
    Which is nearly what I need when I use the following code:
    ATO_document = builder.parse( "D:\\ATO.xml" );
    XML_document = builder.parse( "D:\\XML.xml" );
    NodeList replacedNodeList = XML_document.getElementsByTagName("ATO_RawXML");
    Node foundnode = replacedNodeList.item(0);
    if ( foundnode != null )
    Node modfiedReplacedDocument = replaceNode(XML_document, ATO_document,
    foundnode);}
    else
    // error message here.
    and replaceNode is defined as follows:
    public static Node replaceNode(Document replacedDocument, Document
    replacingDocument, Node replacedNode)
    //Create a documentFragment of the replacingDocument
    DocumentFragment docFrag = replacingDocument.createDocumentFragment();
    Element rootElement = replacingDocument.getDocumentElement();
    docFrag.appendChild(rootElement);
    //Import docFrag under the ownership of replacedDocument
    Node replacingNode =
    ((replacedDocument).importNode(docFrag, true));
    //In order to replace the node need to retrieve replacedNode's parent
    Node replaceNodeParent = replacedNode.getParentNode();
    replaceNodeParent.replaceChild(replacingNode, replacedNode);
    return replacedDocument;
    I've tried using insertBefore functions in the replaced document to
    artificially recreate the <ATO_RawXML> tags, but the code
    grumbles that the parent element is missing. I'm sure a solution is very
    simple
    but I am losing my hair over this. Can anyone suggest anything (other than
    a lotion to keep my hair in) ?
    Best wishes
    Paul

    A XML document should have one declaration in the beginning of the document.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    Xml document has two xml declarations.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <WfMessage>
    <ATO_ATO>
    <ATO_FileLoadedIntoSystem>No</ATO_FileLoadedIntoSystem>
    <ATO_RawXML>
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    (XML data in here...snipped for brevity)
    </ATO_RawXML>
    </ATO_ATO>
    </ProcInstInputData>
    </ProcessTemplateExecute>
    </WfMessage>

  • Unable to drag the Icon associated with the node

    I am working on dragging a node from Tree to a list.
    I have to drag the Icon associated with the leaf too. I am able to drag only the string of the node not the Icon that is associated with it. Can you help me with this? I have the code as below. Thanks.
    public class IconNode extends DefaultMutableTreeNode {
    protected Icon icon;
    protected String iconName;
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode() {
    this(null);
    }//end IconNode
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode(Object userObject) {
    this(userObject, true, null);
    }// end IconNode
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode(Object userObject, boolean allowsChildren
              , Icon icon) {
    super(userObject, allowsChildren);
    this.icon = icon;
    }//end IconNode
    //* setIcon
    /**sets the Icon to the node*/
    public void setIcon(Icon icon) {
    this.icon = icon;
    }// end setIcon
    //* getIcon
    /**gets the Icon of the node*/
    public Icon getIcon() {
    return icon;
    }//end getIcon
    //* getIconName
    /**gets the IconName*/
    public String getIconName() {
    if (iconName != null) {
    return iconName;
    } else {
    String str = userObject.toString();
    int index = str.lastIndexOf(".");
    if (index != -1) {
    return str.substring(++index);
    } else {
    return null;
    }//end getIconName
    //* setIconName
    /**sets the IconName*/
    public void setIconName(String name) {
    iconName = name;
    }//end setIconName
    }// end IconNodepublic class IconNode extends DefaultMutableTreeNode {
    protected Icon icon;
    protected String iconName;
    //* IconNode
    /**Creates an IconNode Object*/
    public IconNode() {
    this(null);
    }//end IconNode
    public class DNDTree extends JTree
    public DNDTree (IconNode top)
    super (top);
    DNDTreeHandler dndHandler = new DNDTreeHandler(this);
    setAutoscrolls(true);
    public class DNDTreeHandler extends DnDHandler
    TransferableDataItem transDataItem = new TransferableDataItem();
    public DNDTreeHandler(Component dndComponent)
    super(dndComponent);
    public DataFlavor[] getSupportedDataFlavors()
    return transDataItem.getTransferDataFlavors();
    * Gets the data from the selected object being dragged
    * @return node DataItem being dragged
    public Transferable getTransferable()
    TreePath path = getSelectionPath();
    //DefaultMutableTreeNode selection = (DefaultMutableTreeNode)path.getLastPathComponent();
    IconNode selection = (IconNode)path.getLastPathComponent();
    if (path == null)
    return(null);
    else
    TransferableDataItem node = new TransferableDataItem(selection);
    return(node);
    * Handles the drop of the component after the drag is complete
    * @param transferable Object being dropped
    * @param event drop event information
    public void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception
    Point location = event.getLocation();
    //Get path of node where object being dropped
    TreePath path = getClosestPathForLocation(location.x, location.y);
    //No drop target
    if(path == null)
    System.err.println ("Rejected");
    event.rejectDrop();
    else
    Transferable tr = event.getTransferable();
    if(tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
    System.out.println("Got transfered data");
    Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    //DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();
    IconNode node = (IconNode)path.getLastPathComponent();
    IconNode newNode = new IconNode(userObject);
    DefaultTreeModel model = (DefaultTreeModel)getModel();
    model.insertNodeInto(newNode, node, 0);
    else
    System.err.println ("Rejected");
    event.rejectDrop();
    public abstract class DnDHandler implements DropTargetListener,DragSourceListener, DragGestureListener
    protected DropTarget dropTarget;
    protected DragSource dragSource;
    public DnDHandler(Component dndComponent)
    dropTarget = new DropTarget (dndComponent, this);
    dragSource = new DragSource();
    dragSource.createDefaultDragGestureRecognizer( dndComponent, DnDConstants.ACTION_COPY_OR_MOVE, this);
    //creates transferable based on what's selected or returns null if nothings selected
    protected abstract Transferable getTransferable();
    protected abstract void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception;
    protected abstract DataFlavor[] getSupportedDataFlavors();
    public void dropFailed (DragSourceDropEvent event)
    System.out.println("Drop Failed");
    public void dropSuccess (DragSourceDropEvent event)
    System.out.println("Drop was successful");
    private boolean isTransferableSupported(Transferable t)
    DataFlavor[] flavors = getSupportedDataFlavors();
    for (int i=0; i<flavors.length; i++)
    if (t.isDataFlavorSupported(flavors) )
    return true;
    return false;
    public void dragGestureRecognized( DragGestureEvent event)
    Transferable trans = getTransferable();
    Cursor dragIcon = getDragCursor(event);
    if (trans != null)
    // Starts the dragging
    dragSource.startDrag (event, dragIcon, trans, this);
    else
    System.out.println( "nothing was selected");
    * a drop has occurred
    public void drop (DropTargetDropEvent event)
    try
    Transferable transferable = event.getTransferable();
    // we accept only Strings
    if (isTransferableSupported (transferable))
    event.acceptDrop(event.getDropAction());
    handleDrop(transferable, event);
    event.getDropTargetContext().dropComplete(true);
    else
    event.rejectDrop();
    catch (Exception e)
    e.printStackTrace();
    System.err.println( "Drop Exception" + e.getMessage());
    event.rejectDrop();
    //DragSourceListener interfaces
    * is invoked when you are dragging over the DropSite
    public void dragEnter (DropTargetDragEvent event)
    // debug messages for diagnostics
    //System.out.println( "dragEnter");
    int action = event.getDropAction();
    event.acceptDrag (action);
    * is invoked when you are exit the DropSite without dropping
    public void dragExit (DropTargetEvent event)
    //System.out.println( "dragExit");
    * is invoked when a drag operation is going on
    public void dragOver (DropTargetDragEvent event)
    //System.out.println( "dragOver");
    * is invoked if the use modifies the current drop gesture
    public void dropActionChanged ( DropTargetDragEvent event )
    //gets the cursor to start drag
    protected Cursor getDragCursor( DragGestureEvent event)
    if (event.getDragAction() == DnDConstants.ACTION_MOVE)
    return DragSource.DefaultMoveDrop;
    if (event.getDragAction() == DnDConstants.ACTION_COPY_OR_MOVE)
    return DragSource.DefaultCopyDrop;
    else
    return Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
    * this message goes to DragSourceListener, informing it that the dragging
    * has ended
    public void dragDropEnd (DragSourceDropEvent event) {
    if ( event.getDropSuccess())
    dropSuccess(event);
    else
    dropFailed(event);
    * this message goes to DragSourceListener, informing it that the dragging
    * has entered the DropSite
    public void dragEnter (DragSourceDragEvent event)
    //System.out.println( " dragEnter");
    * this message goes to DragSourceListener, informing it that the dragging
    * has exited the DropSite
    public void dragExit (DragSourceEvent event)
    //System.out.println( "dragExit");
    * this message goes to DragSourceListener, informing it that the dragging is currently
    * ocurring over the DropSite
    public void dragOver (DragSourceDragEvent event)
    //System.out.println( "dragExit");
    * is invoked when the user changes the dropAction
    public void dropActionChanged ( DragSourceDragEvent event)
    //System.out.println( "dropActionChanged");
    public class TransferableDataItem extends DefaultMutableTreeNode implements Transferable
    final static int DATA_ITEM = 0;
    final static int STRING = 1;
    final static int PLAIN_TEXT = 2;
    //final public static DataFlavor DEFAULT_MUTABLE_DATAITEM_FLAVOR =
    // new DataFlavor(DefaultMutableTreeNode.class, "Default Mutable Data Item");
    final public static DataFlavor DEFAULT_MUTABLE_DATAITEM_FLAVOR =
    new DataFlavor(IconNode.class, "Default Mutable Data Item");
    static DataFlavor flavors[] = {DEFAULT_MUTABLE_DATAITEM_FLAVOR, DataFlavor.stringFlavor, DataFlavor.plainTextFlavor};
    private Object data;
    public TransferableDataItem()
    public TransferableDataItem(Object data)
    this.data = data;
    public DataFlavor[] getTransferDataFlavors()
    return flavors;
    public Object getTransferData(DataFlavor flavor)
    throws UnsupportedFlavorException, IOException
    Object returnObject;
    if (flavor.equals(flavors[DATA_ITEM]))
    returnObject = data;
    else if (flavor.equals(flavors[STRING]))
    returnObject = data.toString();
    else if (flavor.equals(flavors[PLAIN_TEXT]))
    returnObject = new ByteArrayInputStream(data.toString().getBytes());
    else
    throw new UnsupportedFlavorException(flavor);
    return returnObject;
    public boolean isDataFlavorSupported(DataFlavor flavor)
    boolean returnValue = false;
    for (int i=0, n=flavors.length; i<n; i++) {
    if (flavor.equals(flavors[i]))
    returnValue = true;
    break;
    return returnValue;
    public class DNDList extends JList
    DropTarget dropTarget;
    public DNDList()
    DNDListHandler dndHandler = new DNDListHandler(this);
    setModel(new DefaultListModel());
    //private void addElement(Point location, Object element)
    private void addElement(Point location, IconNode element)
    int index = locationToIndex(location);
    // If index not found, add at end, otherwise add one beyond position
    if (index == -1) {
    index = getModel().getSize();
    else
    index++;
    ((DefaultListModel)getModel()).add(index, element);
    public class DNDListHandler extends DnDHandler
    TransferableDataItem transDataItem = new TransferableDataItem();
    public DNDListHandler(Component dndComponent)
    super(dndComponent);
    public DataFlavor[] getSupportedDataFlavors()
    return transDataItem.getTransferDataFlavors();
    public DataFlavor[] getTransferDataFlavors()
    return transDataItem.getTransferDataFlavors();
    * Gets the data from the selected object being dragged
    * @return node Node being dragged
    public Transferable getTransferable()
    Object selectedItem = getSelectedValue();
    System.out.println("Selected Value is " + selectedItem);
    TransferableDataItem item = new TransferableDataItem(selectedItem);
    return(item);
    * Handles the drop of the component after the drag is complete
    * @param transferable Object being dropped
    * @param event drop event information
    public void handleDrop(Transferable transferable, DropTargetDropEvent event) throws Exception
    Transferable tr = event.getTransferable();
    Point location = event.getLocation();
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
    //event.acceptDrop (DnDConstants.ACTION_COPY_OR_MOVE);
    // Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    IconNode userObject = (IconNode)tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    addElement(location, userObject);
    //dropTargetDropEvent.getDropTargetContext().dropComplete(true);
    else
    System.err.println ("Rejected");
    event.rejectDrop();

    I think your problem come from this method :
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
       System.out.println("Got transfered data");
       Object userObject = tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
    //DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();
       IconNode node = (IconNode)path.getLastPathComponent();
       IconNode newNode = new IconNode(userObject);
       DefaultTreeModel model = (DefaultTreeModel)getModel();
       model.insertNodeInto(newNode, node, 0);
    ...You should write :
    if (tr.isDataFlavorSupported(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR))
       IconNode node = (IconNode)tr.getTransferData(TransferableDataItem.DEFAULT_MUTABLE_DATAITEM_FLAVOR);
       IconNode node = (IconNode)path.getLastPathComponent();
       IconNode newNode = new IconNode(node);
       DefaultTreeModel model = (DefaultTreeModel)getModel();
       model.insertNodeInto(newNode, node, 0);
    ...and create a construcor for IconNode :
    public IconNode(IconNode node) {
       super(node.getUserObject, node.getAllowsChildren());
       icon = node.icon;
    }When you use IconNode newNode = new IconNode(userObject), the icon is null (see your constructor).
    If I can say something, you should simplify your code : you can do the same thing dividing the size of your code by five (at less).
    Denis

  • Treeview: Howto clear/remove the node-list/nodes

    Hi,<br />I'm new to InDesign programming. <br /><br />I need to load data (simple strings) from a database and display it in a List (Treeview).<br /><br />After some time trying, it now works pretty well. I have a panel on which a TreeView-widget and a button is.<br />When I click the button, a lot of strings from the database should be queried.<br /><br />This works very well, but there are some things I don't understand.<br /><br />First, if I click the load button the TreeView is populated with data. Anyway, if I close the InDesign Application and reopen it some time later, the data is still in the TreeView.<br />Why is that so and how can I prevent it from auto-loading (some time later the data is outdated, the user needs to manually load the data again).<br />I would like to clear the list, maybe in the destructor of the panel, but I don't know how.<br /><br />Second, if I click the load button twice (because I know the data on the server has changed) my load-method tells me that the new data has been loaded, *but* it does not display the correct new values and if I minimize the panel and open it again InDesign crashes (that happens only when I click the load button a second time).<br /><br />Here is my load-method. I took most of the code from the WListBoxComposite-Example and put it in a loop, but I don't fully understand it.<br /><br />> InterfacePtr<IPanelControlData> panelControlData(this, UseDefaultIID());<br />> IControlView* treeWidget = panelControlData->FindWidget(kLTListBoxWidgetID); <br />> InterfacePtr<ITreeViewMgr> treeMgr(treeWidget, UseDefaultIID());<br />> InterfacePtr<IStringListData> iListData(treeWidget, IID_ISTRINGLISTDATA);<br /><br />> K2Vector<PMString>* myData = getObjectList(); // loads the data from my database<br /><br />> K2Vector<PMString> lists = iListData->GetStringList();<br /><br />> for(int i=0; i<myData->size(); ++i) {<br /><br />>      PMString item((*myData)[i]);<br />>      item.Translate();<br /><br />>      lists.insert(lists.end(), item);<br /><br />>      iListData->SetStringList(lists); // don't understand this line<br /><br />>      NodeID node = StringNodeID::Create(item);<br />>      treeMgr->NodeAdded(node);<br /><br />> }<br /><br />> PMString msg("Total: ");<br />> msg.AppendNumber(myData->size());<br />> msg.Append(" entries");<br />> CAlert::InformationAlert(msg);<br /><br />     <br />     <br />I would be grateful if anyone can help me with my problems.<br />Best Wishes<br />Tom

    As I looked further in the WListBoxComposite example there is a method which does remove a node from the treeview (WLBCmpActionComponent::DoRemoveItem(...)).
    To remove some nodes in this example, they use a
    b NodeIDList
    . But the ITreeViewControler interface has just one method which provides a
    b NodeIDList
    namely
    i void GetSelectedItems (NodeIDList)
    In my plug-in I need a list of all nodes, so that I can remove every item in the treeview.
    Is there a method to get such a NodeIDList of all nodes, or is there another way to clear the treeview?
    I would still be grateful if someone can help me out.
    Best Wishes
    Tom
    btw.: I haven't found out yet why the data in the treeview is persistent. So that when I close the application and re-open it the treeview is still full of (outdated) data.

  • Enlarge the nodes of TreeTable default

    Hi all,
    I have a taskflow and a jsff page. I have add taskflow as a region to my jspx page.
    In my jsff page I have a tree table. My requirement is to enlarge the nodes of the tree table at the begining.
    To do this,
    I tried to call a method in the ControllerClass of the page defination.
    I was going to try to set the disclosed row keys of the treetable component.
    But I could not achive to reach the Tree Table Component from the page.
    I am reaching region and region does not have any children or faces.
    So when i try to find my treetable component null returns.
    What is the correct way of enlarging the nodes of the tree table when page loads.
    Thanks

    Thanks for the reply..when i use schema.getXMLSchemaNodeTable(), the Hashtable contains only the following items, this is as per the schema i have given above
    (java.util.Hashtable<K,V>) {http://www.ifs.com/schema/teamDesc=oracle.xml.parser.schema.XMLSchemaNode@124e935, http://www.w3.org/2001/XMLSchema=oracle.xml.parser.schema.XMLSchemaNode@4ac866}

  • Hiding Page 0 Items and Tree Node Links

    I have two issues I'm trying to work out:
    1) I have created a tree on page 0 that I want to appear on all of my REPORT pages, so the user can filter the reports regardless of which page they're on. The problem is that the tree is also appearing on the login page and the Home page. Is there any way to hide the tree on the login and home pages but have it appear on all other pages? I'm trying to avoid having to create the tree on every single report page.
    2) I need the tree to work like this: the user clicks any node in the tree, and all reports (on multiple pages) are filtered based on the node selected. So I don't actually want the nodes to be links to a report, I just want the reports to be filtered based on the node value selected. Then I'll have tabs to navigate between the different reports. Is this possible?
    Thanks.

    I dunno if you correct it, but there was small mistake in the JS code - a closing bracket was missing
    $s('P0_TREE_NODE', $(this.triggeringElement).parents('li:first').attr('id'));
    it looks like the node value IS being stored in the session stateI hope you checked for items in page 0 (it should then list down page 0 items including P0_TREE_NODE) when you searched for session state(it defaults to whichever page is run currently)
    If these two are working fine, it has to be some page process/computation/item source/item default that modifies the item value when you move between pages.
    To find this: Turn debug on, reload the page , click on a tree node, then redirect to some other page and then check the debug report and see if the page 0 item: P0_TREE_NODE is being set/reset/modified elsewhere.

Maybe you are looking for

  • Firefox now uses Yahoo as default engine in address bar. ow to return to Google?

    Since FF 8.0 typing in the address bar returns a Yahoo search and it is absolutely hopeless, the results bear no relation to the search terms. Using the search box to the right (Google default) is perfect. I have altered the about:config listing and

  • Saving xlsx files in Yosemite Numbers

    New to MAC. Running a MacBook Pro with Yosemite 10.10.2 and numbers 3.5.2 When I create a spreadsheet in numbers or bring one over from my PC I export it to an Exel document. (all is good so far) I have an xlsx copy of my spreadsheet. When I edit it

  • Need help about cloning of apps(r12 v12.4) and DB(10.2.0.2.0)

    Hi, I am going to clone the Apps server and database server. So, Please send me the both cloning steps if anyone have. I had been read the cloning manual from r12 documentation, but I can not understand the proper flow of steps. And anyone can help m

  • Start up error with Premiere Elements 7

    When I start Premiere Elements 7 I get this message. [..\..\Src\DirectoryRegistry.ccp-283] I can just see the Splash screen behind this error message but when I accept this message the computer shuts PE7 down completely. I am using a quad 4 processor

  • How can I avoid opening the several instances of the same form?

    Hi Friends, I have a MDI form with a menu. When open a form by clicking the menu twice, it is opening two instances of the same form. It is eating up all resources of my memory. How can I avoid opening the multiple instances of the same form? I want