Create tree menu

Hi, I'm trying to create a tree menu, When user click the links on left hand side, the content will be displayed on the right side of the page.
I'm new to html db. Can anyone have some suggestion about this? Is there a how'to doc. or sample application for reference?
Much appreciate your instruct.

Sorry . .. I just read your other posting regarding menu trees
tree menu
and I think I started leading you down a path that is far more complicated than you are looking for. It looks like Jeff has answered you question regarding how to add a tree. The link that I gave you was for creating a dynamic drop down/out menu based on the Suckerfish dropdown menu.
http://www.alistapart.com/articles/dropdowns/
David

Similar Messages

  • Creating Tree Menu with each node referring to a different page

    Hi,
    I've got a Tree with I would like to refer to a different page to each single leaf.
    Tree is the following :
    select "ID_MENU" id,
    "MENU_UNDER" pid,
    "MENU_NAME" name,
    'f?p=&APP_ID.:&app_page_id.:&SESSION.::NO::FSP_AFTER_LOGIN_URL:'||"ID_MENU" link,
    null a1,
    null a2
    from "#OWNER#"."MENU"
    How is possible to refer each single page, stored into the MENU table (wihich contain the menu) to a different node leaf ?
    MENU Table is the following :
    create table MENU
    ID_MENU NUMBER not null,
    MENU_NAME VARCHAR2(500),
    MENU_UNDER VARCHAR2(500),
    PAGE_LINK VARCHAR2(500)
    Thanks,
    Ivan

    Is your MENU table a hierarchical table or just flat. It looks flat, because it doesn't seem to have a foreign key to it's parent menu. Do you just have two levels?
    BTW, you normally would use PAGE_LINK in your link column.
    Why not create a hierarchical table as follows:
    create table MENU
    ID_MENU NUMBER not null,
    MENU_NAME VARCHAR2(500),
    PARENT_ID_MENU NUMBER,
    PAGE_ID NUMBER
    );PARENT_ID_MENU would contain the ID_MENU of the parent menu, for the root menus it would be NULL.
    Then your query would look as follow:
    select ID_MENU        AS id,
         , PARENT_ID_MENU AS pid
         , MENU_NAME      AS name
         , CASE
             WHEN PAGE_ID IS NOT NULL THEN 'f?p=&APP_ID.:'||PAGE_ID||':'||:SESSION
             ELSE NULL
           END            AS link
         , null           AS a1
         , null           AS a2
    from "#OWNER#".MENUPatrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How can I create tree menu (like windows explorer) in Portlet

    On my page I need a portlet which will be a tree menu (expandable and collapsable).Items in the menu are just URLs.
    EG: Main menu
    SubMenu1
    -Item11
    -Item12
    -Item13
    Submenu2
    -Item21
    -Item22
    -Item23
    I crated a menu portlet in 9iAS portal R2, But it is not able to expand or collaps inside the same region.
    When I clik on Submenu1 it open a new window and Items are dispayed on window. I do not want that, I need to see all items in a submenu at the portal region itself, then when I clik on that Item(URL) I wiil get that new page/file as per the URL.
    On the menu portel design/layout screen of Oracle9iAS portal, it looks good (with exand/collaps), I want the exact same functionality for the menu on my page region.
    Please give me a quick answer

    Hi,
    This is not possible with Portal right now. You can run the menu as a tree by clicking on the frame view icon at runtime of the menu in the full page mode. This is not possible on the page.
    Thanks,
    Sharmila

  • Is it possible to create a menu structure within iWeb with a so called tree layout? iWeb only provides automatically a horizontal layout

    Is it possible to create a menu structure within iWeb with a so called tree layout? iWeb only provides automatically a horizontal layout

    Not in iWeb itself.
    You have to create these menus yourself. Start here :
         A List Apart: Articles: Suckerfish Dropdowns
    Also, see podcast episode 9 of
         CSS Tricks and Tips
    and then add them to a webpage with the HTML Snippet.
    Or add the menu to the webpage with a JavaScript.
    Here's a sample page :
         http://www.wyodor.net/mfi/roodhout/
         http://www.wyodor.net/mfi/spelling/
         http://www.wyodor.net/mfi/Maaskant/Some_Menus.html
    The how-to-do page are here and here.
    More sample pages on my Made for iPad with iWeb pages.
         http://www.wyodor.net/mfi/
    You may have to learn HTML, CSS, JavaScript, AJAX, DOM and how iWeb creates its pages.

  • Creating Context menu on TREE control

    Hi,
    How to create Context menu on Tree (Nodes and Subnodes) in Web Dynpro for ABAP.
    Helpful answers will be rewarded.
    Regards,
    Jitesh.

    Hi
    You could go to the following link http://help.sap.com/saphelp_nw2004s/helpdata/en/21/ad884118aa1709e10000000a155106/frameset.htm .
    Also you could have a closer look at wdr_test_events example
    Thanks
    Anzy

  • Creating context menu on TREE

    Hi,
    How to create Context menu on Tree (Nodes and Subnodes) in Web Dynpro for ABAP.
    Helpful answers will be rewarded.
    Regards,
    Jitesh.

    hi jitesh,
    check out the sample tutorials in sap under the package : SWDP_DEMO_TUTORIALS
    thanks
    jaideep
    reward points if useful...

  • How to create a Tree menu?

    Hi,
    I need to create a tree menu navigation in ABAP dialog screen. How do i do it?
    Any guide / sample code for reference?
    Regards,
    Rayden

    Hi,
    I need to create a dialog screen that is split into left and right. The left hand side is a Tree navigation and the right hand side is an abap program. How do i achieve that?
    Regards,
    Rayden

  • Creating Context Menu for JTree Node

    Hi to all,
    I need to create Context Menu, when i right click on any Tree Node.
    Context Menu should contain selected node information.
    if you click on one tree node named as "AAAA"
    Context Menu Format is as follows
    AAAA
    Create New
    Delete
    If any one knows, please help me

    Here is something for you to start
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=538065
    Denis Krukovsky
    http://dotuseful.sourceforge.net/

  • Of Explorer Trees & Menu bars

    This may seem like a dumb question, or that I'm not doing my work but I'm really stumped.
    Using JSP, and HTML tag <DIV> one should be able to create a JTree equivalent display in a frame on the browser right? how is this done?
    Plus, what about a menu bar?? the drop down would use <SELECT> tag?
    thx.

    Here is an excellent site with a free API for doing tree menu's. Its in javascript. But, you could use JSP page to dynamically generate the tree. The author has examples. It works great and I think this is what you are looking for:
    http://www.treemenu.com/

  • Create JTree Menu Using file system

    I want to create a Dynamic tree menu by using the folder structure on my harddisk like I have a "A" folder as a root on C drive and in "A" folder we have a "B" and "C" folder and in "B" folder there are 2 folders like "B1" and "B2" and in "C" , "C1" and "C2". Now using this folder information i have to create a Dynamic Jtree Menu.

    I used this code here is not any methos which you write above:--------
    package com.reports.common;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.io.File;
    import java.util.Collections;
    import java.util.Vector;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultMutableTreeNode;
    import com.reports.utils.ComUtils;
    import components.HDSPanel;
    public class FileTree extends HDSPanel {
              /** Construct a FileTree */
              public FileTree(File dir) {
              setLayout(new BorderLayout());
              // Make a tree list with all the nodes, and make it a JTree
              JTree tree = new JTree(addNodes(null, dir));
              // Add a listener
              tree.addTreeSelectionListener(new TreeSelectionListener() {
              public void valueChanged(TreeSelectionEvent e) {
              DefaultMutableTreeNode node = (DefaultMutableTreeNode) e
              .getPath().getLastPathComponent();
              System.out.println("You selected " + node);
              // Lastly, put the JTree into a JScrollPane.
              JScrollPane scrollpane = new JScrollPane();
              scrollpane.getViewport().add(tree);
              add(BorderLayout.CENTER, scrollpane);
              /** Add nodes from under "dir" into curTop. Highly recursive. */
              DefaultMutableTreeNode addNodes(DefaultMutableTreeNode curTop, File dir) {
              String curPath = dir.getPath();
              DefaultMutableTreeNode curDir = new DefaultMutableTreeNode(curPath);
              if (curTop != null) { // should only be null at root
                   String str = DirName(dir);
                   curTop.add(curDir);
              ComUtils.sop("in the FileTree>>>==curPath== "+ curPath +">>>>curTop===="+curTop);
              Vector ol = new Vector();
              String[] tmp = dir.list();
              for (int i = 0; i < tmp.length; i++)
              ol.addElement(tmp);
              Collections.sort(ol, String.CASE_INSENSITIVE_ORDER);
              File f;
              Vector files = new Vector();
              // Make two passes, one for Dirs and one for Files. This is #1.
              for (int i = 0; i < ol.size(); i++) {
              String thisObject = (String) ol.elementAt(i);
              String newPath;
              if (curPath.equals("."))
              newPath = thisObject;
              else
              newPath = curPath + File.separator + thisObject;
              if ((f = new File(newPath)).isDirectory())
              addNodes(curDir, f);
    //          else
    //          files.addElement(thisObject);
              // Pass two: for files.
              for (int fnum = 0; fnum < files.size(); fnum++)
              curDir.add(new DefaultMutableTreeNode(files.elementAt(fnum)));
              return curDir;
              public Dimension getMinimumSize() {
                   return new Dimension(200, 400);
              public Dimension getPreferredSize() {
                   return new Dimension(200, 400);
              private String strName;
              public String DirName(File dir){
                   strName = dir.toString();
                   int i = strName.lastIndexOf("\\");
                   strName = strName.substring(i+1,strName.length());
                   ComUtils.sop("File Name>>"+strName);
                   return strName;

  • Help:create tree node dynamically from java code...

    hi there...can anyone give me solution how to create or add tree node dynamically from java code???
    currently i am using tree node to handle my menu...i try to create tree and add treenode dynamically from .java page, but it failed...can anyone give solution how to create tree ui from java code, so i can create a dynamic menu...thanz before...

    Hi:
    Just put the statements you would normally put on a sqlplus command line in jdbc statements and execute them?
    http://www-db.stanford.edu/~ullman/fcdb/oracle/or-jdbc.html#0.1_executeUpdate
    MJG

  • BC Sets - in SAP Tree Menu ?

    Hi Experts,
    I have created BC sets based in IMG, But how to create BC Sets based in SAP Tree Menu.
    I have to create BC sets for the Org Structure for which i have created all objects and relationships. Help me out on the same.
    Regards,
    Madhu Sudhanan

    Hi Pablo,
    I want to prepare BC sets for OM Structure. How to do that?
    reagards,
    Madhu Sudhanan

  • Tree Menu creation

    Created a tree menu off of a table and chose 'tree with icons'.
    How can you assign different icons to the tree branches?

    If your question was how to use an HTML DB tree control based on a SQL Query:
    Each tree in HTML DB has a template. HTML DB ships a few tree templates; but you can make your own. These templates control all images and icons used to exand and collapse tree nodes.
    If you want to have icons at the end of your tree branches; like a (+) or something; you can use the #A1#, #A2# controls: for example:
    select "EMPNO" id,
    "MGR" pid,
    "ENAME" name,
    null link,
    'yahoo' a1,
    null a2
    from "#OWNER#"."EMP"
    You can use the template to control the display. You can hard code the image names in your query if you want to use a decode to determine the value.
    Hope this helps.
    Mike

  • What is menu area? can we create a menu exit with tht?

    Hi experts,
    what is menu area? can we create a menu exit with tht? is areamenu(se43n) diff frm menu exit?

    Hi
    Menu Exits
        Menu exits add items to the pull down menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications.
          SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item’s text when activating the item in an add-on project.
    Menu exits allow you to add your own functionallity to menus. Menu exits are implemented by SAP, and are reserved menu entries in the GUI interface. The developer can add his/her own text and logic for the menu.
    Function codes for menu exits all start with "+"
    Example
    We want to create a new menu item in the Office menu. The text for the menu should be "Run ZTEST", and the menu will
    run report ZTEST.
    Goto transaction SE43 Area Menu Maintenance
    In Area Menu Paramenter type 'S000' (S triple Zero)
    Select Change and ignore all the warning screens
    Expand the office menu. In the buttom of the office tree you will find a menu named "Customer function"
    Double click on the text. In the pop-up screen change the text to "Run ZTEST". Note that the trsnaction code is +C01
    Goto transaction SE93 and create transaction +C01 that calls report ZTEST.
    Now you will se the menu displayed in the office tree. If you delete transaction +C01 again, the new menu will dissapear.
    There are 'only' 177 Menu exits in standard - I couldn't see the right one, too.
    But you could search the implemented exits, this should be only a small number. Go to transaction CMOD, enter * and F4, information system (F5), show all selections (Shift+F7) and then you can restrict to search only menu exits.
    Of course there is the possibility, that these are added in a different way...
    ... at least you can be sure, if it's a normal menu exit.
    Check this sap help..
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    http://www.sapbrainsonline.com/TUTORIALS/default.html
    You can achieve this functionality by configuring in IMG.
    Please find the info regarding User-Exit's in the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec07a25db911d295ae0000e82de14a/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    Re: doubt on user exits
    user exits and Badis
    User exits is the enhancements provided by SAP
    You can use them in transactions. Each transaction will have user exits.
    If you want to use your own requirements by making your coding while the transaction is run you can use user exits.
    For example if you want to run the MRP in MD02 specific to MRP controller you can user exit.
    Please also refer the document below.
    USEREXIT
    Userxits allow us to add our own functionality to SAP standard program
    without modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.
    All Userexits start with the word USEREXIT_...
    FORM USEREXIT_..
    z..
    ENDFORM.
    The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary customer code is inserted in the customer include starting with the z.. in the form routine.
    e.g. USEREXIT_SAVE_DOCUMENT_PREPARE
    Certain application like SD still provide this form of enhancement using userexit but this practice is no longer being followed for newer extensions instead they are using EXITs which come bundeled in enhancement packages . Neverthiless existing USEREXITS will be supported by SAP an all the newer versions of SAP.
    HOW TO FIND USEREXITS
    Userexits can be found in number of ways:
    1) To find userexits in SD module , goto object navigator(SE80) and select
    development class from the list and enter VMOD in it. All of the userexits in SD are contained in the development class VMOD. Press enter and you will find all the includes which contain userexits in SD for different functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the requirement and read the comment inserted in it and start coding .
    Some examples of userexits in SD(SALES & DISTRIBUTION ) are:
    1)ADDING OF NEW FIELDS IN PRICING
    In Pricing in SD the fields on the basis of which pricing is done are derived from the FIELD CATALOG which is a structure KOMG .This structure is used to transfer transaction data to the pricing procedure in SD and is also known as communication structure.This structure KOMG consists of two tables KOMK for Header related fields and KOMP for item related fields. The fields which are not in either of the two tables KOMK and KOMP cannot be used in pricing .Sometimes a need arises when the pricing is to be based on some other criteria which is not present in the form of fields in either of the two tables. This problem can be solved by using USEREXITS which are provided for pricing in SD. Pricing takes place both when the SALES ORDER ( Transaction VA01) is created as well as when INVOICING ( Transaction VF01) is done.Hence SAP provides 2 userexits ,one for sales order processing which is
    USEREXIT_PRICING_PREPARE_TKOMP or
    USEREXIT_PRICING_PREPARE_TKOMK
    Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.
    In the case of userexit which will be called when invoicing is done ,these
    are provided in the include RY60AFZZ which is in the standard SAP program SAPMV45A. The name of the userexits are same. i.e
    USEREXIT_PRICING_PREPARE_TKOMP or
    USEREXIT_PRICING_PREPARE_TKOMK
    These userexits are used for passing the data from the communication structure to the pricing procedure, for this we have to fill the newely created field in the communication structure KOMG for this we fill the code in the above userexit using the MOVE statement after the data that has to be passed is taken from the database table by using the SELECT statement. The actual structure which is visible in these userexits and which is to be filled for that particular field is TKOMP or TKOMK.
    Before the coding for these userexits is done ,it is necessary to create a new field in either of the two tables KOMK or KOMP .For this purpose includes are provided in each of them .
    To create the field in header data(KOMK) the include provided is KOMKAZ
    and to create the field in item data(KOMP) the include provided is KOMPAZ.
    One possible example for the need of creating new fields can be e.g. Frieght to be based upon transportation zone ,for this no field is available in field catalog and hence it can be created in KOMK and then above userexits can be used to fill the transportation data to it.
    2)The other method of finding userexit is to find the word USEREXIT in the
    associated program of the transaction for which we want to determine userexit using SE38.
    3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.
    Some other examples of userexits in SD are:
    USEREXIT_NUMBER_RANGE
    This userexit is used to assign a different internal document number to the
    sales order(VA01) when it is created depending on some criteria like a different SALES ORGANIZAION(VKORG) .
    USEREXIT_SAVE_DOCUMENT_PREPARE
    This userexit is used to insert the ABAP code which will be called when
    the document (sales order VA01) is just about to be saved.This userexit is used generally for custom checks on different fields , to display some information before the order will be saved or for making changes to certain fields before the sales order will be saved.
    Exits & Enhancements
    There are mainly six types of EXITs in sap which have been collected in the form of enhancement packages and attached to standard code in SAP.
    These are different from USEREXIT in the way that they are implemented
    in the form of FUNCTIONs while in USEREXITS we use form routines for their implementation. These are also sometimes known as function exits .
    These start from the word EXIT_ followed by the program name and then followed by a three digit number.
    e.g. EXIT_SAPMV45A_002
    This exit is found in SD in enhancement V45A0002.
    TYPES OF EXITS
    1)MENU EXITS
    2)FUNCTION EXITS
    3)TABLE EXITS
    4)SCREEN EXITS
    5)KEYWORD EXITS
    6)FIELD EXITS
    We use SAP transactions CMOD and SMOD to manage exits. Before implementing an exit , it is required to create the project by using CMOD
    selecting the enhancement e.g. V45A0002 and selecting the component
    (one which fulfills our need) i.e the exit which will be implemented in SMOD and after coding has been done the project has to be activated.
    An exit can be coded only once.
    FUNCTION EXITS
    These are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.
    The function exits are called from the standard SAP program in the form
    of ABAP statement
    CALL CUSTOMER-FUNCTION 'NNN'
    This is in contrast to USEREXITs where PERFORM statement is used to call
    the required userexit.
    To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents the function exit to be implemented is selected and on double clicking it the exit code will appear in ABAP EDITOR(se38) where a Z include will be found and the customer code should be entered in this include.
    e.g.
    ADDING A DEFAULT SOLD-TO-PARTY in Sales Order Creation
    To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located in enhancement no V45A0002 . Before we can choose the exit we have to create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the exit EXIT_SAPMV45A_002 . This exit is used for our purpose.
    Double clicking on this exit will takes us to function builder (SE37) . This
    function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR of type KNA1-KUNNR i.e if we move the desired customer name to this structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order. This function also contains a customer include ZXVVA04 . This include will be used to write our custom code .
    Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.
    e.g. E_KUNNR = 301.
    Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined customer .
    FIELD EXITS
    The field exits are managed,created,activated through program RSMODPRF. The field exit is associated with a data element existing in ABAP dictionary and hence to the screen field using that data element.
    The format of field exit is :
    FIELD_EXIT_dataelement_A-Z or 0-9
    If a particular screen and program name is not specified than the field exit will effect all the screens containing that data element.
    The function module associated with field exit shows two parameters
    INPUT and OUTPUT. Input parameter contains the data passed to the field exit when the field exit was invoked by the R/3 , We can write our own code to change the output parameter depending upon our requirements.
    Before the field exit can have any effect the system profile parameter
    ABAP/FIELDEXIT in all the application servers should be set to YES
    ABAP/FIELDEXIT = YES.

  • Tree menu based on session variable?

    Hi all,
    is there somewhere a javascript or php or html (or extension)
    tree menu
    that will highlight the current branch based on a session (or
    cookies, at
    least) variable content?
    I cannot fint it anywhere.
    TIA
    tony

    hi Christian,
    Thanks for your help,
    Here is my situation, I have a fact table of very high volume, because of which reports are taking lot of time in displaying results. Recently I have been assigned one of these reports and asked to improve its performance. so, I thought to use a opaque view(thought to apply all the fact related reports filters into WHERE Clause using session variables which can bring down table volume) and then switch this table source with original fact table using 'dynamic' table under existing alias table definition with the help of session variable. The purpose of this table switch is, all existing reports will  source from original fact table, where as modified report will be sourcing from opaque view.
    I would like to try to your suggested approach "creating a placeholder column which contains the exact variable string content for the table source and the opaque view source respectively", but how does OBIEE switch priority of these LTS, can you please explain me this approach a bit further.
    Thanks,
    vijay

Maybe you are looking for

  • I can't open my photoshop cs 6 at all, but other programmes are all working fine.

    I'm using a iMac. This is the beginning of the long error message. I've tried uninstalling/reinstalling with no change. Help! I'm in the middle of an important design job. Process:         Adobe Photoshop CS6 [946] Path:            /Applications/Adob

  • Oracle Configuration Manager - EBS R12.1.1

    Hi , EBS R12.1.1, on OEL 5.4 Is there forums for Oracle Configuration Manager? I am trying to configure it, but as usual the docs is very topsiturvy. Identifying If Oracle Configuration Manager Is Already Installed or Configured Oracle Configuration

  • New MacPro 8 Core 12gig or 16 gig of ram?

    Hello All, I want to upgrade my memory but I am wondering what to buy? Should I get the (6) 2gigs? or the (8) 2gigs. I keep reading about not to fill up all 8 but only 6 for better performance? Or should i just get the (4) 2gig each stick? This way I

  • Remove illuminated edges

    Hi, I am working on a packaging project for a cookware product at the moment. Can anyone suggest me as to how I can correct the glowing edges of the product as marked in the images attached. This does not create a problem if the image is placed ona w

  • Mail has vanished after Snow Leopard update

    I recently updated to Snow Leopard. Everything was fine after installation, but 3 days later after I started up and all of my email in the Mail program is gone... along with my POP account settings, etc Just a blank mail box. Is there any way to rest