Hierarichal tree from

hi dear all,'
i am new in oracle form developer.
i design a some form in oracle form developer 6i
now i want to run these form in one main form
in this way i want to design a hierarichal tree.
please any body help me how i can do that.....

I would suspect that you would need to build this all yourself. The built in trees are designed to show from top to bottom, with the nodes expanding downward.
You would need to change all of the node images to point upward, which is the easy part. Then you would also need to figure out how to write the code to expand elements upward. I venture to say not a simple task. Although it is probably doable with the right amount of time and skills.
Earl

Similar Messages

  • Create Tree from Preordered data

    Here is a quick summary of what I'm trying to do:
    I have a file with formatted like this
    Does it have legs?
    Dog
    Fish
    and the resulting tree for it should look like this
         Does it have legs?
         Dog        Fishand I'm trying to write a function that takes in a Scanner object that should already be tied to the data file and create a tree from this data that is already listed in Preorder fashion. I know tha recurison is probably the best way to go about this but everything that I have written hasn't worked. Also, I cant really figure out a way to use recursion when the function is taking in a Scanner I dont know how it would work.
    Any help would be greatly appreciated.
    Here is what I have now:
         public BinaryTree<String> readTree(Scanner data)
              BinaryTree<String> temp = new BinaryTree<String>();
              temp.attachLeft(data.next());
              temp.attachRight(data.next());
              return temp;
         }I know this function wont go through the whoel file, but I've tried many loops but I cant figure out how to get it to work so I'm convinced that I need to figure out how to make it recursive
    (yes I know that everything that can be done through recursion can be done with a loop)

    @OP:
    Here's how you could do it:
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.util.Scanner;
    import java.util.Stack;
    class Main {  
        public static void main(String[] args) throws FileNotFoundException {
            Scanner file = new Scanner(new File("data.txt"));
            BinTree tree = new BinTree(file);
            System.out.println(tree);
    class BinTree  {
        private BinNode root;
        public BinTree(Scanner file) {
            // create the root (first line in the file)
            root = new BinNode(file.nextLine());
            // create a stack
            Stack<BinNode> stack = new Stack<BinNode>();
            // push the root on the stack: we need it to add nodes to the left and right of it
            stack.push(root);
            // call the insert method to build the tree
            insert(stack, file);
        private void insert(Stack<BinNode> stack, Scanner file) {
            IF 'file' has no more lines left
                stop this method
            END IF
            BinNode 'next' <- the next line in 'file'
            IF the left node of the last node on the 'stack' equals null
                the left child of last node of the stack <- 'next' (but leave the stack in tact)
            ESLE
                the right child of last node of the stack <- 'next' (remove the last node of the stack)
            END IF
            IF 'next' is a question
                push 'next' on the stack
            END IF
            recursively call the insert(...) method here
    class BinNode {
        String data;
        BinNode right, left;
        public BinNode(String data) { this.data = data; }
        public String toString() { return this.data; }
    }

  • Lookup() in ui tree from fxml and lookup from java built tree

    Hi,
    when I try to find a control by its id I use the lookup()-Method. If I load the ui tree from fxml, I have to call something like root.lookup("#theControlId"). If I built the ui tree in java I can use look("theControlId"). Is this right? I am a little bit confused. Probably the id from fxml is used as id but is meant of the CSS id?
    What should I do If I have a mixed ui tree. Some parts from fxml, some parts java coded?
    Regards
    Oliver

    Probably the id from fxml is used as id but is meant of the CSS id?I think the rule is:
    1. If there is an fxml id and no css id explicitly set, then the fxml loader will set the css id of the element to the fxml id.
    2. If there are both an vxml id and a css id explicitly set, then the fxml loader will set the css id of the element to the explicit id.
    For instance:
    <Label text="Address Book" fx:id="book"/>
    @FXML Label book;After book is injected, it will have the the css id book assigned to it automatically and can be looked up up via:
    root.lookup("#book");
    <Label text="Address Book" fx:id="book" id="the-cat-in-the-hat"/>
    @FXML Label book;After book is injected, it will have the the css id the-cat-in-the-hat assigned to it automatically and can be looked up up via:
    root.lookup("#the-cat-in-the-hat");As opfl points out, in any case "Search by id must be prefixed with #"

  • It's possible to make Hierarchical Tree from multiple tables ?

    the famous example for Hierarchical Tree is about employee_id and manager_id field in employees table ............ so I was wondering it's possible to make[b] Hierarchical Tree from multiple tables ? and How ??
    if the answer associate with example that will be so kind of you :D
    and thanks in advance.

    HI
    use curose in when new form instance or procedure then u can got data more then one table like that
    DECLARE
    htree ITEM;
    top_node FTREE.NODE;
    new_node FTREE.NODE ;
    child_node ftree.node ;
    item_value VARCHAR2(30);
    cursor prime_cur is select main_desc mgr_name, main_code dept
    from pur_item_group_mst;
    cursor child_cur(v_dept number) is select sub_desc,sub_code
    from pur_item_group_dtl where main_code = v_dept ;
    BEGIN
    htree := Find_Item('tmp.tree4');
    for dummy in prime_cur loop
    new_node := Ftree.Add_Tree_Node(htree,
    ftree.root_node,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    dummy.mgr_name,
    'D:\ORYX_POLYBAGS\accept',
    dummy.dept);
    for child in child_cur(dummy.dept) loop
         child_node := Ftree.Add_Tree_Node(htree,
    new_node,
    Ftree.PARENT_OFFSET,
    Ftree.LAST_CHILD,
    Ftree.EXPANDED_NODE,
    child.sub_desc||' '||'('||child.sub_code||' '||')',
    'D:\ORYX_POLYBAGS\next',
    child.sub_code);
    end loop;
    end loop;
    END;
    Rizwan Shafiq
    www.rizwanshafiq.blogspot.com

  • Create a tree from a resultset

    Hi,
    I need to create a tree structure from a resultset and show them into my JSP. Here is my table sql (grup).
    CREATE TABLE GRUP (
    ID_GRUP int(11) NOT NULL default '0',
    ID_GRUP_PARENT int(11) NOT NULL default '0',
    ORDER_BY int(11) NOT NULL default '1',
    DESCRP varchar(100) default NULL,
    PRIMARY KEY ('ID_GRUP'),
    )What I really need is a recursive method to search for all the children of each row and build a tree heirarchy. e.g. the data may look like
    ID_GRUP   ID_GRUP_PARENT      ORDER_BY    DESCRP
    1               0                 1        It itself is the parent
    2               1                 1        It's Parent is ID_GRUP=1
    3               0                 2        It itself is the parent
    4               2                 1        It's parent is ID_GRUP=2
    5               1                 2        It's Parent is ID_GRUP=1
    6               4                 1        It's Parent is ID_GRUP=4
    7               2                 2        It's parent is ID_GRUP=2
    8               2                 3        It's parent is ID_GRUP=2So looking at the top data my final tree structure should look like
    1
      2
        4
          6
        7
        8
      5
    3and so on. ORDER_BY show the order in which each element should display in the heirarchy. I am really struggling to find a way on how to have the heirarchy built and really need some help.
    Thanks
    Here is the SQL i have to het the data
    SELECT ID_GRUP, ID_GRUP_PARENT, DESCRP FROM GRUP ORDER BY ORDER_BY.

    First of all, you can't make a (single) tree out of that, because apparently you have two roots.
    Anyway, one you fix the requirements, you can do this by defining a tree node type (of course), a reference to the root node, and then a temporary data structure to let you go directly to identified nodes without having to traverse the tree from the root (and thus having to know all the paths to the descendant elements). For example, in Java, a good temp data structure might be a java.util.Map<Integer, YourTreeNode>, where you'll use ID_GRUP values for the keys.

  • JAXB: Creating Java content tree from scratch - examples?

    I'm trying to create XML output by building the content tree from scratch (using a the DDI schema which is fairly complex). I don't have any existing XML instances. Sample application 3 in Sun's JAXB tutorial doesn't give enough info about how to relate the nodes to create the heirarchy. I can create the root node and set it's attributes OK, but then the practical info runs out.
    Can anyone point me at some good practical examples? (i.e. not those of the "How to play the quitar: Put your fingers on the frets and move your other hand around" genre).
    Thanks in advance.

    I don't have examples, but the main thing to remember is that you should use the ObjectFactory to create all of the objects in your tree. That's important.
    You must use the element object class for the root node, but you can use type object classes for all the data contained (you can use element object classes for all the nodes, if that's easier).
    Use the accessor methods to load the data into the objects you create.
    One tip that almost everyone runs into - JAXB only provides a getter for lists - use the getter to get the list, then use .add() methods to add the objects to that list.

  • Creating a Java content tree from scratch and then marshal it to XML data

    Hi,
    After binding a schema using JAXB binding, I wrote a class to create a Java content tree from scratch and then marshal it to create an XML document. To see if the resulting xml document is correct, I opened it in XMLSpy and tried to validate it against the original schema.... I got the following error:
    "Unable to locate a reference to a supported schema kind (DTD, DCD, W3C Schema, XML-Data, Biz Talk) within this document instance"
    Then I realized that the generated xml document didnot contain the following for the root element:
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" and xsi:schemaLocation="....."
    i.e, the XML Schema Instance namespace and the schema location.
    How do I get these attributes incorporated into the XML document generated during the marshal process.
    Thanks.

    How do I get these attributes incorporated into the XML document generated during the marshal process.
    Add xmlns:xsi and xsi:schemaLocation attributes to the root element in the schema.
    <xsd:attribute name="xmlns:xsi"  fixed="http://www.w3.org/2001/XMLSchema-instance"/>

  • Traverse object tree from the middle with reflection

    Hi.
    I am new to using reflection in more complex scenarios, and would like some advice.
    If I get back a partial object tree, from an ORM layer for example, where I have a series of associated objects, for example Employee, which has a Department attribute, linking it to its parent department, and a collection of child address objects, is it possible to traverse all objects attached to Employee, calling a given method on them, if they extend a certain class?
    Could someone show an example of doing this, or describe how it could be done?
    Thanks for your help.

    You have an arbritrarily complex hierarchial collection whith a unknown structure.
    You wish to apply a method to all references in the tree.
    There are only two basic storage mechanisms in java; reference or array.
    Setup: Keep a hashtable/dictionary of each visited reference to avoid endless recursion.
    Method, called Doit() which takes an Object 'n'
    - If n is null return
    - if n is already in hashtable return
    - Add to hashtable
    - if n is of type base class then call target method (might want to decide about thrown exception.)
    - reflect through n for members which are either Object or array (base type Object)
    - If single member is Object then call Doit
    - If array recurse through each item and call Doit()

  • Populate tree from a datablock

    Hi,
    I'm using forms6i
    I want to know whether it is possible to create a hierarchical tree from a database block.
    Like if the datablock contains 2 columns(2 items)
    One column (1st column) will be the root nodes of the tree and
    the 2nd column becomes the child nodes
    like if a db table , teacher , having 2 columns tid and tname, having values
    tid                      tname
    1                        Rosy
    2                        Sherinthen the tree should be like
    +1
        Rosy
    +2
        SherinIs this possible??
    Thanks

    How about trying with query like this...
    SQL> SELECT -1, LEVEL, SUBSTR(COL2,1,10) COL2, NULL, SUBSTR(COL2,1,10) COL3
      2  FROM
      3  (
      4  SELECT EMPNO COL1, TO_CHAR(EMPNO) COL2, NULL COL3
      5  FROM EMP
      6  UNION ALL
      7  SELECT 0, ENAME, EMPNO
      8  FROM EMP
      9  )
    10  CONNECT BY PRIOR COL1=COL3
    11  START WITH COL3 IS NULL
    12  /
            -1      LEVEL COL2       N COL3
            -1          1 7369         7369
            -1          2 SMITH        SMITH
            -1          1 7499         7499
            -1          2 SMALL        SMALL
            -1          1 7521         7521
            -1          2 MORGAN       MORGAN
            -1          1 7566         7566
            -1          2 NORGAARD     NORGAARD
            -1          1 7654         7654
            -1          2 MARTIN       MARTIN
            -1          1 7698         7698
            -1          2 BLAKE        BLAKE
            -1          1 7782         7782
            -1          2 FOOTE        FOOTE
            -1          1 7788         7788
            -1          2 SCOTT        SCOTT
            -1          1 7839         7839
            -1          2 ELLISON      ELLISON
            -1          1 7844         7844
            -1          2 TURNER       TURNER
            -1          1 7876         7876
            -1          2 ADAMS        ADAMS
            -1          1 7900         7900
            -1          2 JAMES        JAMES
            -1          1 7902         7902
            -1          2 LOFSTROM     LOFSTROM
            -1          1 7934         7934
            -1          2 MILLER       MILLER
    28 rows selected.
    SQL> -Ammad

  • Creating tree from HTTPService

    Hi, I'm new under flex builder and I have a simple (?)
    problem :
    I would like to generate a tree from a XML file generate by
    PHP. I can display items (source) in tree but not subitems
    (playlist)...
    Here my XML file generated by PHP :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <sourcelist>
    <source id="3" nom="WarholinDaMix">
    <playlist id="0" nom="Tous les
    fichiers"></playlist>
    </source>
    <source id="2" nom="YoyesGirl">
    <playlist id="0" nom="Tous les
    fichiers"></playlist>
    <playlist id="2" nom="Yo la liste
    Girly"></playlist>
    </source>
    <source id="1" nom="Yoyesman">
    <playlist id="0" nom="Tous les
    fichiers"></playlist>
    <playlist id="1" nom="Yo ma liste 1"></playlist>
    <playlist id="3" nom="Yo ma liste 2"></playlist>
    </source>
    </sourcelist>
    Here the code I use :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="GetSource.send(null);">
    <mx:HTTPService id="GetSource" url="
    http://127.0.0.1/SchmittTunes/bin/music.php?gettype=source"
    useProxy="false"/>
    <mx:Panel layout="absolute" left="10" right="10">
    <mx:Tree labelField="nom"
    dataProvider="{GetSource.lastResult.sourcelist.source}"
    width="100%" x="0" height="100%" y="0"
    showRoot="false"></mx:Tree>
    </mx:Panel>
    </mx:Application>
    How I said, I have 3 items displaying the 'source' on my
    tree, but I can't expand them. There is no arrow on the left side.
    So subitems like 'playlist' are not display.
    Does anyone know why or have an idea ?
    Thanks for your help
    Mika

    Thanks ! it's working with resultFormat="e4x" tag in my
    HTTPService, but with some adaptations :
    I change the following :
    <mx:Tree labelField="nom"
    dataProvider="{GetSource.lastResult.sourcelist.source}"
    width="100%" x="0" height="100%" y="0"
    showRoot="false"></mx:Tree>
    By :
    <mx:Tree labelField="@nom"
    dataProvider="{GetSource.lastResult}" width="100%" x="0"
    height="100%" y="0" showRoot="false"></mx:Tree>
    Changes are about labelfield and dataprovider.
    Thanks for your help !

  • Extract Tag Tree from existing PDF

    Hello,
    We are starting a new project where a user can accessibility check their pdf. They do this by uploading the pdf file and on a new screen we are supposed to show if the tag tree of the pdf (if it has tags).
    Can the tag tree from an existing pdf be extracted on the server by running some command line code in the background or by calling a method in the .NET SDK? Anyone have any ideas.
    If this isn't possible does anyone know of any other software programs that I might use in order to get this information. As long as I can get the tag tree I shouldn't have any problem marking it up into HTML and rendering it to the person's browser.
    Thanks,
    Dustin Michaels

    Are you sure you can't install it on a windows server? This links says you can.
    http://www.adobe.com/products/acrobatpro/productinfo/systemreqs/Re: Extract Tag Tree from existing PDF
    Microsoft® Windows® 2000 with Service Pack 4; Windows Server® 2003 (32-bit or 64-bit editions) with Service Pack 1; Windows XP Professional, Home, Tablet PC, or 64-bit Editions with Service Pack 2; or Windows Vista™ Home Basic, Home Premium, Ultimate, Business, or Enterprise (32-bit or 64-bit editions).
    Anyway even if you couldn't install it on a server we could always have it installed on a Windows XP machine and have the windows server contact the Windows XP machine to get the tag tree from the pdf uploaded.
    Do you have any idea how you might extract the tag tree regardless of what operating system adobe acrobat is running on using some .NET code?
    Thanks,
    Dustin Michaels

  • How do I access BSD file tree from within Linux?

    I just installed PC-BSD 8.0 RC on an external USB HDD.  I went with the PC-BSD default partition layout, i.e. one primary partition for the entire PC-BSD slice, and 4 "partitions" within that slice, for /, swap, /usr and /var.
    In order to access the PC-BSD file tree from within Linux, I mount it as follows:
    mount -t ufs -o ufstype=ufs2,ro /dev/sdb1 /mnt/bsd
    But after executing this command I can only access the PC-BSD / , not /usr and /var , presumably because they reside on two BSD "partitions" (subslices) different from / .  Is there any way I can mount these (read-only) in Linux, too, or would I have to reinstall PC-BSD and opt for laying out the slice differently, i.e. specifying only / and swap in sdb1?
    Last edited by RobF (2010-02-13 11:55:39)

    Look at  /dev/sdb*  there should be more than just sdb1.  You would need to mount those to see which is which.  For ufs write support the default kernel needs to be recompiled with experimental enabled.

  • 1488: The workstation is no longer imported to the tree from where you are attempting to launch the operation. The Remote Management session cannot proceed.

    After upgrading a Windows XP Pro SP1 machine to the ZfDagent from the
    zfd65u2 patch I receive the following error:
    1488: The workstation is no longer imported to the tree from where you are
    attempting to launch the operation. The Remote Management session cannot
    proceed.
    For now I have went back to the ZfD 4 IR5 agent which doesn't exhibit this
    problem. Any ideas?
    Jim Webb

    Jim,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • How to build n Tree from Vector

    Hi,
    i just want to build an n Tree from Vector.
    the Vector contains the elements {1,2,3,4}
    the tree should be like this (actually it should not be limited to 3 child, but just as an Example)
    i will be happy to use the jTree from Sun
    ++1
    +++2
    ++++3
    +++++4
    +++++4
    +++++4
    ++++3
    +++++4
    +++++4
    +++++4
    ++++3
    +++++4
    +++++4
    +++++4
    +++2
    ++++3
    +++++4
    +++++4
    +++++4
    ++++3
    +++++4
    +++++4
    +++++4
    ++++3
    +++++4
    +++++4
    +++++4
    +++2
    ++++3
    +++++4
    +++++4
    +++++4
    ++++3
    +++++4
    +++++4
    +++++4
    ++++3
    +++++4
    +++++4
    +++++4
    any Ideas?
    thanx.

    Massive crosspost. Answer here if you must.
    http://forum.java.sun.com/thread.jsp?forum=4&thread=444422

  • Displaying data in a tree from database table

    Hi,
    I want to display data from a database table (mara-matnr) in a tree structure. I went through the coding of SBSPEXT_HTMLB. There static data was taken in to wa_tab. But there I want to bring data from a database table into wa_tab. For this I created an internal table without headerline by taking a work area, now how can I move data from this work area to wa_tab record by record.
    I hope some one might have worked on this. Plz help me....
    Thanks in advance,
    Ravindra.

    Hi,
    take a look at this <a href="/people/tomas.altman/blog/2004/12/13/sdn-blog-how-to-do-internal-tables-in-bsp which explains how internal tables work in ABAP OO.
    Furthermore I think you want to do this:
    insert <yourWorkarea> into table wa_tab.
    A complete mara example would be:
    data tab_mara type table of mara.
    data wa_mara type mara.
    select * from mara into table tab_mara.
    *or you can use:
    select * from mara into wa_mara.
       insert wa_mara into table tab_mara.
    endselect.
    regards
    Thomas

Maybe you are looking for

  • I've downloaded Elements twice and can't open it

    I navigate to the file PhotoshopElements_13_LS25_Win64. When I click on it, my computer doesn't recognize an Lz file and asks me what Ap I should be using. I have Windows 8, which is new to me. Where's the exe file? Anyone know how to open this?

  • OD Accounts keep locking

    Hello We have 10.4.8 Server setup with Open Directory and XSan 1.4 for home directories, but have some strange problems with user accounts locking at random intervals, we thought this was down to user error but seems more then that, we have to enable

  • Satellite Pro A200 (PSAE4E) Disc Creator error while firmware update

    Hi I get the following errors when trying to update firmware for Disc Creator i am using Windows VIsta Home Premium, Unexpected error occurred. Error Code: 32007C-26-00000015 Followed by: Error Code: 320129-26-00000015 - then application crashes. Any

  • Deleted Safari... now it won't let me re install??

    I deleted Safari and all it's preferences / metadata and then downloaded Safari 3.1.1 from the Apple site. I repaired permissions and ran the install package but when I try and install Safari on the hard drive the hard drive has a red exclamation mar

  • F-41 vs MIRO - duplicate credit memo not checked in MIRO

    Hi, We used to do F-41 for credit memos to our suppliers. We recently decided to use MIRO instead. We realized that the system does not warn the user anymore when he tries to enter a duplicate credit memo. In F-41, when we enter 2 credit memos with t