Hierarchical Tree Node icon ?

Hi
How to create a icon on Hierarchical tree
Regards
Shahzaib

Thanks for your reply and i am sorry for not clear my developer version
My developer version is 6I
Database express addition
Well i write the trigger when tree node activate
:parameter.current_emp := ftree.get_tree_node_property(find_item('Block28.Tree8'),
                                                      :system.trigger_node,
                                                      ftree.node_value);
DECLARE
htree         ITEM;
current_node  FTREE.NODE;
find_node     FTREE.NODE;
BEGIN
htree := Find_Item('block28.tree8');
find_node := :SYSTEM.TRIGGER_NODE;
ftree.set_tree_node_property(htree, find_node, ftree.NODE_ICON, 'D:\ico\Ico\favorite.ico');
END;
Ftree.SET_tree_NODE_PROPERTY(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_ICON, 'print');And also when mouse double click
declare
al_button number;     
     pl_id ParamList;
     v_emp_id     number;
     e_child_rec  exception;
     pragma exception_init(e_child_rec, -02292);
     len number := 3; --variable which tells till what length from last not to copy from first string
begin
     v_emp_id := ftree.get_tree_node_property(find_item('Block28.tree8'),
                                                           :system.trigger_node,
                                                            ftree.node_value);
SET_BLOCK_PROPERTY('block3', DEFAULT_WHERE, 'acc_id = ''' || V_emp_id|| '''');
go_block('block3');
EXECUTE_QUERY;
exception
       when e_child_rec then
            Message ('Go Kimi Go');
end;
  Now when i double click the mouse its show tree icon
I want when i run my module its show me all node icon
Hope this time i clear my question
Regards
Shahzaib ismail

Similar Messages

  • How to add custom ADF Tree Node icon

    Hi All,
    i am using below code in style sheet to set the tree node icon,
    af|tree::node-icon:nodetype-collapsed
    but i don't have any idea how to add getnodetype() method in the node class, (I am using Jdeveloper 11.1.1.2.0). please suggest me the steps to achive it.
    Thanks,
    Mahesh

    i did as you suggested, but i am not getting any image, below is my source
    <nodeDefinition DefName="com.mahesh.SSCExplorer.model.ROview.OrdrHdrVO"
    Name="OrdrHdr20"
    TargetIterator="${bindings.OrdrHdr2Iterator}"
    ClosedIcon="/Nuvola_filesystems_folder.png"
    OpenIcon="/Nuvola_filesystems_folder.png"
    Icon="/Nuvola_filesystems_folder.png">
    please suggest is there any other settings i need to do.
    Thanks,
    Mahesh

  • 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!

  • Hierarchical Tree Node Attributes

    Hi,
    I know that Oracle' official answer to this is no, but is there a way to specify attributes for specific nodes in a hierarchical tree? I would like to display specific nodes in bold and specific nodes in a different color.
    Any idea welcomed.
    Monica

    If this were possible then you would have to use the FTree package and probably the FTree.Set_Tree_Node_Property procedure, so check those in the help system. But I'm 99.99% sure you'd be wasting your time.
    You might be able to do it with a JTree in a bean (it looks like it's not possible to extend an htree item in a pjc) but in forms the best you can do is assign icons to the nodes.

  • Update tree node icon, better way?

    Hi,.
    I have my own custom renderer for my JTree....such as
    public class MyTreeNodeRenderer extends JLabel implements TreeCellRenderer {
    public Component getTreeCellRendererComponent(
            JTree treeVal,
            Object valueVal,
            boolean selectedVal,
            boolean expandedVal,
            boolean leafVal,
            int rowVal,
            boolean hasFocusVal) {
            MyTreeNode node = (MyTreeNode) valueVal;
              // get the latest type for this node
            node.type = getType(node);
            if (node.type == 1) {
                    setIcon(TYPE1_ICON);
             else {
                    setIcon(TYPE_BASIC_ICON);
                   return this;
    }...intially the tree nodes have their icons, as they should...later on their "type" is updated...so instead of being 1..its now something else...so the icon should change.....but it doesnt occur fast enough...so i added this to my renderer
    public void doRepaint() {
            repaint();
            myTree.repaint();
        }basically anytime i needed to update the icon in the tree i called the doRepaint when i want the new icon to appear in the tree..that helped somewhat..but it is still kinda slow....any ideas how to do this?

    valueForPathChanged() serves different purposes as you can see from its description. You need to call treeModel.nodeChanged(node) after your node changed its "type". If you don't want to hold or don't have treeModel reference you could use tree classes from .useful library and be able to call nodeChanged() directly from a node that has been changed.
    Denis Krukovsky
    http://dotuseful.sourceforge.net/

  • How to set the control-on hierarchical tree nodes

    Hi,
    I have created form in which at the left it has hierarchical tree structure(BOM) and towards the right it brings up the query results for selected node.
    Now, I have a button upon clicking which I navigate to the root node by issuing
    "Ftree.set_Tree_selection(htree, 1, Ftree.select_on);".
    But, it cannot automatically run the ' when-tree-node-selected' trigger '.
    any solution???
    Its really urgent.I have a customer demo on monday.
    Please help me asap.
    regards,
    Nagadeep.

    Hello Nagadeep,
    couldn't you just put the code from the trigger into a procedure
    and run that after the navigation to the item?
    Just a thought,
    Bernd
    The docs state that:
    No programmatic action will cause the When-Tree-Node-Selected trigger to fire. Only end-user action will generate an event.
    Probably due to performance reasons.
    Bernd
    Message was edited by:
    Bernd Prechtl

  • Tree node icon from XML

    Is there a way to define a linkage id to set the icon for the
    tree component in external XML? This is what I tried and it does
    not work.
    <node label="Test" data="SomeID" icon="SomeLinkageID">
    The tree node is using the default folder icon. I know I
    could set the icon after it is loaded but why cann't I just throw
    in something to define the icon in the XML?
    Thanks

    Hi,
    Could you elaborate a litle more exacly what you need to do?
    I found the link http://help.sap.com/saphelp_470/helpdata/en/86/8280db12d511d5991b00508b6b8b11/content.htm that maybe assist you.
    Please remember to evaluate the replays, this incentive the SDN to keep growing,
    regards,
    Fabio

  • Apex 4 Tree node icon inconsistency ( 4.0.2.00.06 = 4.0.2.00.07)

    <font color="#2C5197">
    <li>If I assign a value to the tree icon column in Apex 4 ( 4.0.2.00.06) , _it is rendered as the node(ins) element's classname_ ( unless it has the "/" character in it,then it becomes the inline background-image property , for example "/add" )
    <li>While in Apex 4( 4.0.2.00.07) , it is always rendered as the background image and I can't make it render as the classname (apex.oracle.com is also on 4.0.2.00.07 and shows the same behaviour as mentioned) .
    </font>
    I have a tree region in apex 4.0(4.0.2.00.06) which has node icons defined conditionally using the SQL query's icon column
    As as example, the code below as Tree Definition (example here)
    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           "ENAME" as title,
           case
             when mod(level,2) = 1 THEN 'add'
             else 'delete'
           END as icon,
           "EMPNO" as value,
           'Drill Down to '||ENAME as tooltip,
           'f?p='||:APP_ID||':1:'||:APP_SESSION as link
    from emp_check
    start with "MGR" is null
    connect by prior "EMPNO" = "MGR"
    order siblings by "ENAME"This renders the tree as with *node icons having a class of "add" or "delete"_ in apex 4.0.2.00.06.
    &lt;ins style=&quot;background-image: url(&amp;quot;add&amp;quot;);&quot;&gt;&amp;nbsp;&lt;/ins&gt;On another instance which is on 4.0.2.00.07, the same tree is rendered with the tree's node having a background-image URL as the "add" or "delete"
    &lt;ins class=&quot;add&quot;&gt;&amp;nbsp;&lt;/ins&gt;The Bug Fix list from the Patch Notes ( 5.2 Bugs Fixed in the 4.0.2.00.07 Patch Set ) mentions in Bug Number:9893260 that +"APP_IMAGES and WORKSPACE_IMAGES used in tree region must be preceded by host URL"+.
    Is it possible that as a result of this bug-fix, any value specified for the icon column is being rendered as the background-image ?
    Can someone confirm whether this behavior is expected or is this is a case which has been overlooked in the bug-fix or just another bug ?

    Hi Vee,
    To respond to your question "+Can someone confirm whether this behavior is expected or is this is a case which has been overlooked in the bug-fix or just another bug ?+", the behaviour you see is expected. We now always create a background-image-url style. The fix for bug 9893260, which you referred to in your initial post, was incorporated in our 4.0.1 patch set, as listed under the section "5.1 Bugs Fixed in the 4.0.1.00.03 Patch Set" in the 4.0.2 Patch Set Notes - http://www.oracle.com/technetwork/developer-tools/apex/application-express/402-patch-189110.html. Therefore, I'm surprised that you're seeing different behaviour between 4.0.2.00.06 and 4.0.2.00.07. I'm not aware of any tree-related changes made between those two versions, so I'll investigate that further....but as I said, the behaviour you are seeing with 4.0.2.00.07 is expected.
    Regards,
    Hilary

  • Call forms and reports from a hierarchical tree node.

    Hello,
    I am new in pl/sql programming and I have some dificulties. I have created a hierarchical tree, in order to use it as a menu in an application that I am trying to develope. The problem is that I do not know how can I make the last nodes to be either a form or a report and when somebody double clicks on these nodes the form or the report will run. What is more, should I use the when-tree-node-selected trigger or the when-tree-node-activated?
    Thank you in advance,
    Vag

    Hi ,
    In Oracle Forms , a hierarchical tree is developed through the use of a sql statement and column which defines the order of leaves...
    Visit the on-line help of Forms10g to find out the details , and the triggers as well...
    Something else...post this question to Oracle Forms to get more detailed answer...
    Regards,
    Simon

  • Call forms and reports through a hierarchical tree node.

    Hello,
    I am new in pl/sql programming and I have some dificulties. I have created a hierarchical tree, in order to use it as a menu in an application that I am trying to develope. The problem is that I do not know how can I make the last nodes to be either a form or a report and when somebody double clicks on these nodes the form or the report will run. What is more, should I use the when-tree-node-selected trigger or the when-tree-node-activated? I use forms 6i.
    Thank you in advance,
    Vag
    Message was edited by:
    user537672

    Thank you very much for your reply. I tried what you said and managed to create a when-tree-node-activated trigger that works fine. The only problem is that I do not know how to find the last 3 characters of every node in order to make the form understand if it is a form or a report. I mean that the name of each node maybe of different length so I do not know how exactly to use the substr().
    Thank you
    Vag

  • Request a Simple Sample of adding Hierarchical Tree Node

    Hai! if you are familiar with hierarchical tree. please show me
    some sample of adding node to the hierarchical tree(simple
    adding node)
    If you are providing code, please also provide information where
    the code am I suppose to be put cause i'm still new in oracle.
    Thanks in advance for spending some time on it...
    Eric :)
    null

    Here is the code for both the tree node selected and tree node activated triggers
    Tree Node Seleceted code:
    :CONTROL.Node_Activated := null ;
    :CONTROL.Node_Selected := Ftree.Get_Tree_Node_Property('CONTROL_TREE.MENU', :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE) ;
    ===========================================================
    Tree Node Activated code:
    Declare
    LN$I Pls_integer ;
    Begin
    :CONTROL.Node_Selected := null;
    :CONTROL.Node_Activated := Ftree.Get_Tree_Node_Property('CONTROL_TREE.MENU', :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE) ;
    If :CONTROL.Node_Activated IS NOT NULL Then
    if :GLOBAL.curr_proc_id <> :control.node_activated or :control.node_activated
    is null then                          
    CALL_FORM(:CONTROL.Node_Activated);     
    else
    Set_Alert_Property( 'AL_FORM_OPENED', ALERT_MESSAGE_TEXT,
    :CONTROL.Node_Activated || ' is already opened. Please check your current or previously opened library.' );
    LN$I := Show_Alert( 'AL_FORM_OPENED' ) ;
    end if;          
    end if ;
    end ;

  • Hierarchical tree node problem

    Hi all --
    Today's problem is (drum roll)............
    My application uses a heirarichal tree where each tree node contains the name of a form within this system. The user can navigate from form to form by clicking the appropriatetly name tree node. This seems to work - sometimes. Some users click on a node for one form, but get transferred to another named form(usually the one above or below the one actually activated). I've also found out that this happens ONLY when the user has their screen resolution set to 800 x 600. This application was developed at screen resolution 1024 x 768 and it woks fine. Anybody know why??

    Here is the code for both the tree node selected and tree node activated triggers
    Tree Node Seleceted code:
    :CONTROL.Node_Activated := null ;
    :CONTROL.Node_Selected := Ftree.Get_Tree_Node_Property('CONTROL_TREE.MENU', :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE) ;
    ===========================================================
    Tree Node Activated code:
    Declare
    LN$I Pls_integer ;
    Begin
    :CONTROL.Node_Selected := null;
    :CONTROL.Node_Activated := Ftree.Get_Tree_Node_Property('CONTROL_TREE.MENU', :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE) ;
    If :CONTROL.Node_Activated IS NOT NULL Then
    if :GLOBAL.curr_proc_id <> :control.node_activated or :control.node_activated
    is null then                          
    CALL_FORM(:CONTROL.Node_Activated);     
    else
    Set_Alert_Property( 'AL_FORM_OPENED', ALERT_MESSAGE_TEXT,
    :CONTROL.Node_Activated || ' is already opened. Please check your current or previously opened library.' );
    LN$I := Show_Alert( 'AL_FORM_OPENED' ) ;
    end if;          
    end if ;
    end ;

  • Hierarchical tree node editable

    hi,
    is there a property to make a tree node label editable? it would be kind to click on the label, change it and save to DB, instead of copying its value into a text field.
    thanks

    Not directly as Andreas said but alternately you can do by
    You can set the label of NODE and update into the BASE table block and re-populate the tree
    - on Double click the label call custom Stack canvas contains new label in text item and user will press OK
    - Sets the Label of the Tree node
    - Update the new label to the base table block
    - Commit and re-populate the tree
    if responses are helpful or correct please mark it
    Baig,
    http://baigsorcl.blogspot.com

  • Tree Node Icons

    This should be an easy one...but it's not working for me.
    When I specify an icon gif for a node in my tree, where does Forms 6i load it from?
    Thanks in advance!

    THANKS for the reply - I have tried your solution and I get the same icon/image for both the branches and leaves of the tree.
    More specifically - If one goees into the Help in JDev 11.1.1.2 and goes to the following help page
    Page --> Bindings tab  > Model --> Bindings --> Insert Item --> tree
    (Under "Create Tree Binding dialog " and "Create Tree Table Binding dialog" in the JDev Help)
    One sees that the tree branches use a folder and the leaves of the tree us a 'sheet of paper'. The same icons also being used for the Tree Table at the same reference. I also have seen this on other doc. No where does it mention anything about how to set any icons for any level in a tree component.
    Thanks again - Casey

  • Setting different tree nodes icons

    Hello.
    I know this thread was discussed and i read it but it did not helped me.
    I need a tree that might look like this:
    +hostname
    +---database1
    --table1
    --table2
    --table3
    +---database2
    --table1
    --table2
    --table3
    This is a database tree.
    Now my code to set different icons is:
    public class DMSTreeCellRenderer extends DefaultTreeCellRenderer {
        private DatabaseInfo databaseInfo;
        private String dbHost;
         /** Creates a new instance of DMSTreeCellRenderer */
        public DMSTreeCellRenderer(String dbHost) {
            this.dbHost = dbHost;
        public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
            ImageIcon rootIcon = new ImageIcon("resources/images/database.png");
            ImageIcon tableIcon = new ImageIcon("resources/images/database_table.png");
            if(tree.getModel().getRoot().toString().equals(dbHost) ) {
                setIcon(new ImageIcon("resources/images/server_database.png"));
                isFirstSetup = false;
            if (rootIcon != null && tableIcon !=null) {
                setClosedIcon(rootIcon);
                setOpenIcon(rootIcon);
                setLeafIcon(tableIcon);
            return super.getTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus);
    }Anyway it does not work. like it should. The root nod has the same icon like the childs :(

    Thank you for your help, i solve my problem like this:
    public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) {
            super.getTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus);
            ImageIcon rootIcon = new ImageIcon("resources/images/database.png");
            ImageIcon tableIcon = new ImageIcon("resources/images/database_table.png");
            if(value.toString().equals(dbHost) ){
                setIcon(new ImageIcon("resources/images/server_database.png"));
            }else {
                if (rootIcon != null && tableIcon !=null) {
                    if(leaf){
                        setIcon(tableIcon);
                    }else {
                        setIcon(rootIcon);   
            return this;
        }

Maybe you are looking for

  • Nokia Lumia 920 Home button not working

    I was using my phone as usual and suddenly the home button stopped working.  I was on Facebook, wanted to go to the start screen because I had just received a text message and I realized the home button was completely unresponsive.  I tried a soft an

  • GL Varaint comparison --pls help

    Hi We are using SAPF100 std SAP program for Foreign Currency Valuation.We have created Test and Update variants for the same for different co codes.Everymonth there is change in the accounts that needs to be included and excluded in the Variant for b

  • Administrator desing star schema for "time series analysis"

    Hi all, I need to develop a set of dashboard with reports display a set of customers properties at the last etl period (this month) and, for these customers, show their properties in the "past" (this month - "n"). I've a fact table with cust_id and t

  • Initial Page View Overide w/ Download?

    Hello, I'm having an issue with my initial page view settings. I have them set to two-up (cover page) which I can view just fine as can a few colleagues I emailed it to. Now the problem occurs once I upload the spread to our ftp site and try to dowlo

  • I cant download a podcast in itunes, error -39

    i cant download a podcast in itunes, error -39 please help