Tree with Icons

hi, i need to hava a tree with icons in apex
is it possible?

hi, First of all You have to create table .
CREATE TABLE "APEX_PAGES"
(     "IDENTIFIER" NUMBER(10,0) NOT NULL ENABLE,
     "PAGE_NO" NUMBER(10,0) NOT NULL ENABLE,
     "PARENT_PAGE_NO" NUMBER(10,0),
     "NAME" VARCHAR2(4000) NOT NULL ENABLE,
     "NAVIGATION" VARCHAR2(100) NOT NULL ENABLE,
     "IMG" BLOB
     CONSTRAINT "APEX_PAGES_PK" PRIMARY KEY ("IDENTIFIER") ENABLE
then create form with report on table apex_pages.
Please note : - P20_IMG is an form item name...
use following sql query for tree with image :
select PAGE_NO id,
PARENT_PAGE_NO pid,
'<img src="'||*APEX_UTIL.GET_BLOB_FILE_SRC*('*P20_IMG*',IDENTIFIER)||'" />'||NAME name,
'f?p=&APP_ID.:'||page_no||':&SESSION.' link,
null a1,
null a2
from APEX_PAGES
Also u can highlight the current node ................
select PAGE_NO id,
PARENT_PAGE_NO pid,
CASE WHEN page_no = :APP_PAGE_ID THEN
'<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P20_IMG',IDENTIFIER)||'" />'
||'<b>'||NAME||'<blink>'||'<font color="red">'||' <='||'</font>'||'</blink>'
ELSE
'<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P20_IMG',IDENTIFIER)||'" />' || NAME END
AS name,
'f?p=&APP_ID.:'||page_no||':&SESSION.' link,
null a1,
null a2
from APEX_PAGES
Cheers !!!!!

Similar Messages

  • Hierarchical tree with iconic nodes

    hi i'm using database - 10g, developer suite - 10g; created a hierarchical tree and the icons are displaying along side the nodes when they are being selected or activated.
    problem - i've stored the icons in g:\ICONS (all gif icons). but when i run the form it is picking up the icons from the following location - C:\Documents and Settings\development\Oracle Jar Cache\frmall_jinit.jar-63ace618-1160d49b\oracle\forms\icons. I've a button in the same form and the icon showing on it is from the location G:\ICONS(as desired); but in case of tree it's from the location which is not desirable.
    any help.

    Hello,
    You need to change the imagebase parameter to be documentbase instead of codebase.
    When imagebase is set to codebase forms looks for Images in the jar files and then in the absolute path, otherwise it check direct path.
    For details in deploying the Images please check:
    http://docs.oracle.com/cd/B14099_19/web.1012/b14032/configure009.htm
    Clear the Java cache and browser cache after the above changes!
    Regards,
    Alex
    If someone's answer is helpful or correct please mark it accordingly!

  • Current node tree with tooltip_text

    Hello,
    How can i display a tooltip_text for the current node from a tree ?
    I tried with
    :Ctrl.Node_Selected     := Ftree.Get_Tree_Node_Property('BL_TREE.MENU',
    :SYSTEM.TRIGGER_NODE,
    Ftree.NODE_VALUE);
    set_item_property('BL_TREE.MENU',
    tooltip_text,
    :Ctrl.Node_Selected);
    I didn't find something with the build_in set_Tree_Node_Property
    There is a possibility to display an icon for each node ? I build the tree with a record group. How can I do it ?
    Thanks
    Bye

    hi,
    you can set the tooltip-text of the whole treebean according to the currently selected "active" node.
    Try to use the code you already used in a WHEN-TREE-NODE-SELECTED-Trigger.
    It's not possible to have a tooltip-text for each node separately.
    Yes, you can assign an icon to each node. Whn you use a recordgroup to fill the tree, one of the columns of the recordgroup has to be the name of the icon
    If i remember correctly the columns are
    NODE_STATE
    NODE_DEPTH
    NODE_LABEL
    NODE_ICON
    NODE_VALUE

  • To populate a tree with httpService

    Hi,
    i don't arrive to populate my tree with an httpService.
    Here is the code
    <mx:Tree width="30%" height="100%" id="arboChambre"
    labelField="@name"
    dataProvider="{restree.lastResult.chambres.type}"
    labelFunction="displayNodeName" />
    and the script in <mx:Script>
    private function displayNodeName( item:Object ) : String {
    var node:XML = XML(item);
    return node.@name;}
    the xml returned by httpservice
    <?xml version='1.0' encoding='utf-8' ?>
    <chambres>
    <type name="standart">
    <chambre name="chambre1"/>
    <chambre name="chambre2"/>
    <chambre name="chambre3"/>
    <chambre name="chambre4"/>
    <chambre name="chambre5"/>
    </type>
    <type name="superieur junior">
    <chambre name="chambre9"/>
    <chambre name="chambre10"/>
    </type>
    </chambres>
    And in my application i see only five icons files but not
    directory and not name of the files (or directory ....)
    Can you say me where is my mystake.

    Thank for your answers and sorry for my english
    here is my httpservice definition in my file.mxml
    quote:
    <mx:HTTPService id="restree" url="
    http://lesite.com/index.php"
    useProxy="false" method="POST" >
    <mx:request xmlns="">
    <action>
    getTree
    </action>
    </mx:request>
    </mx:HTTPService>
    If i don't want to use lasResult , i think that i must call
    the data in AS3 but it's difficult for me to understand the
    documentation in english ;I tried to use URLLoader but when i
    compile i have a lot of mistake.
    is it the good way to use URLLoader in <mx:script>???
    thank you

  • Managing ldap sub tree with Solaris Mnagement Console

    Hi,
    I'm using Sun ONE Directory Server 5.2 in Solaris 9 envronment.
    I want to use Solaris Management Console to manage my Ldap Name Service.
    On my ldap server I can display two scopes :
    Scope 1 file:/example/example
    Scope 2 ldap:/example/dc=example,dc=com
    With SMC Editor I've created a toolbox to manage my ldap domain and I can manage users and groups only on trunk tree but not on the sub tree.
    Does someone can tell me please if it's possible to display the ldap sub tree with SMC and if it's possible to manage other cotainers than people or group containers with SMC (for ex. netgroup container) ?
    Thanks.
    Dra

    By try and error I found out that even when I upgraded my
    Sun ONE Directory Server 5.2 to patch level 2, the configuration
    in the administration directory was not changed to the new
    version. So one couldn't connect with the new console
    version 5.2pl2 but used and needed the old one effectively.
    To use the 5.2 pl 2 console there need to be the following
    files in the client directory:
    <root of sun ldap console>/java/jars/
    ds522.jar (main console application)
    ds522_en.jar (english language resources)
    ds522_de.jar (german language resources, in my case, optional)
    ds522.icon (icon used in the console)
    and for the administration console:
    admserv522.jar
    admserv522_en.jar
    admserv522_de.jar
    admserv522.icon
    The old file with the '52' in their name may stay where they
    are to connect to unpatched 5.2 Servers and 5.2pl2 Servers
    without updated configuration.
    The configuration is under:
    cn=ResourceEditorExtension, ou=4.0, ou=Admin, ou=Global Preferences, ou=zentrale.edekanet.de, o=NetscapeRoot
    Search for the attribute 'nsclassname' in all subentries where there
    is a substring '@ds52.jar' and change it to '@ds522.jar'.
    With newer versions of the Sun Directory Server there are
    even jar files with names like 'ds523.jar'. Proceed like above.
    After the next start of the console you are using the new 5.2pl2
    Versions with all bugfixes and enhancements. To verify you may
    move the '52' files away, start and connect. If the directory server
    is configured the right way it won't try to download the '52' files
    to your local computer.
    Frerk

  • Treeview datawindow with icon - performance issue

    Hi all,
    i have a treeview dw and have set the "use tree node icon" property with 2 different icons (bmp) at the first level (when the level is expanded or collapsed)
    Then a different icon (ico) file is used for the second level
    Unfortunately, this is causing a huge performance issue when i run the application.
    If i disable the "use tree node icon" property, everything works fine.
    Is there any known issues on the treeview dw with icons? any work around?
    am using pb11.2
    thanking you in advance,
    -a

    First question is which jdev version you are using?
    I made a quick test and did not see a long busy state.
    Run your app with -Djba.debugoutout=console as java option. You get more output in the log window, but may be some hint about what's going on.
    Timo

  • Refresh tree with value LOV

    Hi,
    I'm using Oracle APEX 4.0
    In a page, i have item of type "Popup LOV": "TEXT".
    I have region of type "Tree" with query:
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           "VLINTEXTO" as title,
           null as icon,
           "VLINEA" as value,
           null as tooltip,
           null as link
    from "#OWNER#"."LINEAMENU"
    where VSISTEMA = NVL('&TEXT.', 'AAAA')
    start with "VLINPADRE" = 0
    connect by prior "VLINEA" = "VLINPADRE"
    order siblings by "VORDEN"If i execute the page ("TEXT" without value), tree show for "AAAA", but if i change value of TEXT for "BBBB".... the tree also is for the value "AAAA". No refresh.
    Any solution??
    Thnks
    Edited by: jortri on 18-nov-2010 13:58

    Please check that the selective search criteria should be marked as true in the properties of LOV on the page.
    Also search allowed property shud be set to true on the lov region item.

  • GET WRONG with ICON serialization/deserialization!!!

    GET WRONG with ICON serialization/deserialization!!!
    I have my own class X, which implements Serializable.
    My own class X contains an Icon and a String!
    I've created an obj (type X) !
    set its Icon = UIManager.getIcon("Tree.closedIcon);
    set its String = "yyyy";
    i 've serialized it , and then deserialized , read it into my new var !
    (my new var is also X obj!)
    i've debugged my code : the Icon field and the String in my new var had
    new values !
    ( the new values are not null ,and seem to be the original values)!
    But when i put those values into a jLabel ,
    the label show just the String !
    i dont know how to over come it !
    plz help ...

    it's me urgent !
    plz help !

  • How to build a BIG TREE with Tree-Form layout

    Hi,
    I do have a self-referenced table with our org structure - 15 000 positions.
    I do want to create a tree with this structure.
    Requirements :
    a, to have a tree-form layout
    b, to have search capabilities
    I have tried to use several combinations (maybe all)
    - from using only one View object and create recursive tree - doesn't even run
    - to use two View objects, first as top level nodes, the other as the rest - it runs
    but I can search only top level, and what is worse, by clicking on the node for showing additional information (tree-form layout) I'm waiting for ages for seeing the info
    (it seems that all records are loaded one by one into AS)
    Could you provide some ideas how to deal with this ?
    Thanks.

    I am sorry, this is beyond the scope of this forum.
    As with any functionality not directly provided by JHeadstart, you can build it yourself using the ADF design time tools in JDeveloper. Please use the JDeveloper forum for help on this first step.
    Then, to keep your pages generatable you can move these customizations to custom templates. We are happy to help you with this last step, should you have problems there.
    Steven Davelaar,
    JHeadstart Team.

  • ALV GRID with icon fields. When exports to Excel, icon fields are emtpy.

    Hi all,
    In our SAP system (6.0 ECC) we've noticed the following behaviour:
    In ALV GRID with icons (color lights for example...) when we export the list to Excel format with the standard button bat, the icon column is always empty.
    We think that in previous SAP version (4.7), the code corresponding to the icon appeared (For example @08@ for green light).
    It's possible to have tha same functionality in this new version like in 4.7?
    Regards.
    Edited by: Ole ES on Nov 17, 2010 6:05 PM

    Hi,
    Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
    I think the integrated Excel mode shows '@08@'.
    Best regards,
    Guillaume

  • Using depth first traversal to add a new node to a tree with labels

    Hello,
    I'm currently trying to work my way through Java and need some advice on using and traversing trees. I've written a basic JTree program, which allows the user to add and delete nodes. Each new node is labelled in a sequential order and not dependent upon where they are added to the tree.
    Basically, what is the best way to add and delete these new nodes with labels that reflect their position in the tree in a depth-first traversal?
    ie: the new node's label will correctly reflect its position in the tree and the other labels will change to reflect this addition of a new node.
    I've searched Google and can't seem to find any appropriate examples for this case.
    My current code is as follows,
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.tree.*;
    public class BasicTreeAddDelete extends JFrame implements ActionListener
        private JTree tree;
        private DefaultTreeModel treeModel;
        private JButton addButton;
        private JButton deleteButton;
        private int newNodeSuffix = 1;
        public BasicTreeAddDelete() 
            setTitle("Basic Tree with Add and Delete Buttons");
            DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode("Root");
            treeModel = new DefaultTreeModel(rootNode);
            tree = new JTree(treeModel);
            JScrollPane scrollPane = new JScrollPane(tree);
            getContentPane().add(scrollPane, BorderLayout.CENTER);
            JPanel panel = new JPanel();
            addButton = new JButton("Add Node");
            addButton.addActionListener(this);
            panel.add(addButton);
            getContentPane().add(panel, BorderLayout.SOUTH);
            deleteButton = new JButton("Delete Node");
            deleteButton.addActionListener(this);
            panel.add(deleteButton);
            getContentPane().add(panel, BorderLayout.SOUTH);    
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setSize(400, 300);
            setVisible(true);
        public void actionPerformed(ActionEvent event) 
            DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
            if(event.getSource().equals(addButton))
                if (selectedNode != null)
                    // add the new node as a child of a selected node at the end
                    DefaultMutableTreeNode newNode = new DefaultMutableTreeNode("New Node" + newNodeSuffix++);
                      treeModel.insertNodeInto(newNode, selectedNode, selectedNode.getChildCount());
                      //make the node visible by scrolling to it
                    TreeNode[] totalNodes = treeModel.getPathToRoot(newNode);
                    TreePath path = new TreePath(totalNodes);
                    tree.scrollPathToVisible(path);               
            else if(event.getSource().equals(deleteButton))
                //remove the selected node, except the parent node
                removeSelectedNode();           
        public void removeSelectedNode()
            DefaultMutableTreeNode selectedNode = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
            if (selectedNode != null)
                //get the parent of the selected node
                MutableTreeNode parent = (MutableTreeNode)(selectedNode.getParent());
                // if the parent is not null
                if (parent != null)
                    //remove the node from the parent
                    treeModel.removeNodeFromParent(selectedNode);
        public static void main(String[] arg) 
            BasicTreeAddDelete basicTree = new BasicTreeAddDelete();
    }      Thank you for any help.

    > Has anybody got any advice, help or know of any
    examples for this sort of problem.
    Thank you.
    Check this site: http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JTree.html

  • Problem in using AdvanceDataGrid as tree with drag n drop functionality

    Hi All,
    I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.
    Overwritten dragDrop handler event for ADG.
    Issues: Not getting target node on which I am dropping currently selected node.

    Please don’t use this forum for support questions, go use flexcoders or the Adobe forums instead.
    Matt
    On 2/10/09 11:21 PM, "rakess" <
    [email protected]> wrote:
    A new discussion was started by rakess in
    Developers --
      Problem in using AdvanceDataGrid as tree with drag n drop functionality
    Hi All,
    I am using AdvancedDataGrid as tree for displaying my data. Within this ADG tree I have to enable drag n drop i.e. user can select one node and will able to drop that on another node within tree.  
    Overwritten dragDrop handler event for ADG.
    Issues: Not getting target node on which I am dropping currently selected node.
    View/reply at Problem in using AdvanceDataGrid as tree with drag n drop functionality <
    http://www.adobeforums.com/webx?13@@.59b7e11c>
    Replies by email are OK.
    Use the unsubscribe <
    http://www.adobeforums.com/webx?280@@.59b7e11c!folder=.3c060fa3>  form to cancel your email subscription.

  • Problem in Tree with in a table

    Hi Experts,
    I have created a WDC which contains the tree with in a table.
    I have created a table in the view and a Master column in it.
    Initially i loaded the tree with some values in my WDDOINIT of my view.
    I have also created the event handler for that Master column i.e., OnLoadChildren event handler.
    I have written some code in it, so that this event handler method will be called when i try to expand a node in the table.
    Unfortunately, the debugger is not getting in to that method, and that event is not being called when i Expand the tree node in the table.
    Please suggest me so that i can complete the assignment.
    Thanks in advance and for all the help given till now.

    Hi
    You can join a hierarchical query as you suggest; you can also use SYS_CONNECT_BY_PATH() to identify the subproduct. Here's the kind of query you need - I've used the HR sample data, but you should be able to transform this into products, subproducts etc
    select subproduct.first_name, subproduct.last_name, part.job_id, sum(part.salary), count(distinct part.employee_id)
    from employees subproduct
    left join (
    select level lev
         , sys_connect_by_path(last_name,'/') reportsto
         , sys_connect_by_path(to_char(employee_id,'fm0000'),'/') ancestors
         , substr(sys_connect_by_path(to_char(employee_id,'fm0000'),'/'),7,4) subprodid
         , emp.*
    from employees emp
    start with employee_id = 100 -- like identifying the product
    connect by prior employee_id = manager_id
    ) part
    on part.subprodid = to_char(subproduct.employee_id,'fm0000')
    where subproduct.manager_id=100
    group by subproduct.first_name, subproduct.last_name, part.job_idYou'll see I've used a fixed format connect_by_path (with 4 digits per level) which makes it easy to pull out the second level.
    HTH
    Regards Nigel

  • How to create  a very simple dyamic tree with rich faces

    hi i have spent more than 5 days trying to make a very simple rich faces tree but with no result
    i want to make a very simple dyamic tree
    for example i have a button when i click it.i want to add two nodes in my tree("node 1" and "node 2")
    i have also failed in making even a static tree with richfaces i think that some thing is wrong with them i checked the live demo website
    http://livedemo.exadel.com/richfaces-demo/richfaces/tree.jsf?c=tree
    i have tried the source code but with no result :(
    thank you

    You can try something like this
    <rich:tree switchType="server" >
    <rich:treeNodesAdaptor nodes="#{CB.calendarioHandler.organizacion.departamentos}"
    var="departamento">
    <rich:treeNode>
    <h:outputText value="#{departamento.nombre}"/>
    </rich:treeNode>
    <rich:treeNodesAdaptor nodes="#{departamento.empleados}"
    var="empleado">
    <rich:treeNode>
    <h:outputText value="#{empleado.nombre}"/>
    </rich:treeNode>
    <rich:treeNodesAdaptor nodes="#{empleado.calendarios}"
    var="calendario">
    <rich:treeNode>
    <h:outputText value="#{calendario.nombre}"/>
    </rich:treeNode>
    </rich:treeNodesAdaptor>
    </rich:treeNodesAdaptor>
    </rich:treeNodesAdaptor>
    </rich:tree>
    where departamentos, empleados and calendarios are just simple pojos lists.
    I hope to help.
    Edited by: sfdgd on Apr 1, 2009 6:40 PM

  • Is it possible to create a tree with drag-and-drop functionality using ajax

    I saw these samples;
    Scott Spendolini's AJAX Select List Demo
    http://htmldb.oracle.com/pls/otn/f?p=33867:1:10730556242433798443
    Building an Ajax Memory Tree by Scott Spendolini
    http://www.oracle.com/technology/pub/articles/spendolini-tree.html
    Carl Backstrom ApEx-AJAX & DHTML examples;
    http://htmldb.oracle.com/pls/otn/f?p=11933:5:8901671725714285254
    Do you think is it possible to create a tree with drag-and-drop functionality using ajax and apex like this sample; http://www.scbr.com/docs/products/dhtmlxTree/
    Thank you,
    Kind regards.
    Tonguç

    Hello,
    Sure you can build it, I just don't think anyone has, you could also use their solution as well in an APEX page it's just a matter of integration.
    Carl

Maybe you are looking for