Folder icon in a hierarchical tree

Hello, I don't know how can I put a folder icon in a hierarchical tree.
I have this query, and I know I have to change the 4th column, but I don't know how to do it.
SELECT -1,level,d_carpeta, null, id_carpeta
FROM DOCUMENTUM.doc_carpetas
START WITH id_carpeta_padre is null
CONNECT BY id_carpeta_padre = prior id_carpeta
and in the trigger (WHEN-TREE-NODE-SELECTED) I have this code
declare
htree ITEM;
n_selected NUMBER;
current_node FTREE.NODE;
begin
htree := Find_Item('blk_arbol_detalle.arb_carpetas');
n_selected := Ftree.Get_Tree_Property(htree, Ftree.SELECTION_COUNT);
FOR j IN 1..n_selected LOOP
current_node := Ftree.Get_Tree_Selection(htree, j);
if Ftree.Get_Tree_Node_Property(htree,
:SYSTEM.TRIGGER_NODE,Ftree.NODE_DEPTH) > 0 then
:blk_detalle.id_carpeta := Ftree.Get_Tree_Node_Property(htree,
:SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
else
:blk_detalle.id_carpeta := null;
end if;
END LOOP;
end;

Jesús,
just give it the name of an icon without the '.ico' extension. If you run it on the Web then the icon must be available in a gif format. Just the name nothing else. Make sure that in c/s the icon is in a directory mapped by the UI_ICON variable in of the Window Registry. For configuring icons on teh Web, have a look at this paper
http://otn.oracle.com/products/forms/pdf/webicons.pdf
If you need different folder icons on different tree levels, then instead of using a query, use a record group to populate the tree.
Frank

Similar Messages

  • Folder icon display at richfaces tree node

    Hello All,
    I would like to use richfaces tree structure.
    But the issue with that is the folder icon display at each tree node.
    For some reason i don't want the folder icon at the tree node.
    Is there anyway to get rid of that?
    I tried to change the image (iconFolder.gif) to some 1X1 pixel image in the richfaces jar file.
    But when i added the new jar with new image for icon, that image is not loading.
    I'm using Jboss4.2 as my application server.
    Please help me to remove the folder display at tree node.
    Thanks in advance.
    Regards,
    Elizabath

    Hi,
    I could see the icon attribute to specify the folder icon at the node. I placed a 1x1 pixel image as the iconfolder image. But that results in a blank pixel at the node. I wish to get rid of that.
    Also i wanted to change the navigation images too. i would like to have the + and - sign images instead of arrows.
    Any suggestions?

  • Hierarchical Tree Icon Alignment

    Hi
    I am able to create and display a hierarchical tree with icons in the nodes okay. The default is that the icon is placed at the left of the node (like a folder icon on windows explorer). Is there any option to display icon at right side of node? I am unable to find any such option, but wish to confirm or seek other ideas.
    Thanks

    I think there is no option to display the icon in right side of the node. Even i tried to display only the icon without node label. And big icon (more then 16*16 pixel) with minimum of node label. If I succeed above two options then I might make an icon and label as a single image (even left icon right label or left label and right icon) and show it for a node.
    So by default for hierarchical tree icon will be displayed left side with Dimensions: 16 (height) * 16 (width) pixels.
    Regards
    Balaji.M

  • ADF 10.1.3.0.4: tree leaf with no child nodes still displays folder icon?

    I was reading through Frank Nimphius's Blog and found the entry entitled "ADF Faces: Building a hierarchical tree from recursive tables - October 05, 2006" and found a tree example in which a tree leaf with no child nodes do not display the folder icon.
    I've followed the instructions listed with adf:tree, CoreTree and ChildPropertyTreeModel, but my tree leaves with no child nodes still displays the folder icon.
    How do I remove this icon when the node is a leaf with no children?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I figured it out.
    I used the ChildPropertyTreeModel.isContainer() method.
    --Todd                                                                                                                                                                                           

  • Can i have a check box in the hierarchical tree in the icons place, urgent!!! please

    Hi,
    I'am working on the Hierarchical Tree structure which should have three levels, I need to have a check box in the place of the icon & if i select a node that node & the child nodes should get selected.
    After this when i say move selected ( i'am trying to use picklist class also) the entire checked tree has to move to the display area to the right & should display as tree structure & after this if i save then the checked records which are moved to another text area should get saved!!
    How to achieve this? I have the tree structure ready but the check box part is the worrying factor! & then moving the checked records to the right using picklist class is the second problem & finally saving records to database.
    Any help in this regard will be deeply appreciated:)
    If check box is not possible then i will have to look at other methods, will the tree structure allow checkboxes????
    Thanks
    Mahesh

    No the tree will not allow checkboxes

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

  • Folder Icon in Trees

    I'm using Forms 6i and need to use Hierarchial trees. I've never worked on tree items. I have somehow populated data to the tree but my problem now is i'm not able to display a folder icon for the nodes. I would be very grateful if someone could explain me from the basics, of how to show a folder icon in the nodes, also the icon should be different when a node is expanded ie. folder to be opened when node expanded and closed when node collapsed.

    Anitha,
    the initial icon can be set when creating the tree. There are two ways to create a tree, one to use a query and another to use a record group.
    To set icons due to a user action (e.g. a node selection):
    DECLARE
    htree ITEM;
    current_node FTREE.NODE; 
    find_node FTREE.NODE; 
    BEGIN
    -- Find the tree itself. 
    htree := FIND_ITEM('tree_block.htree3');   
    -- Change the icon of the clicked node.  The icon name
    -- is "Open"
    FTREE.SET_TREE_NODE_PROPERTY(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_ICON, 'Open'); 
    If you running in client/server, the icons need to be in the directory specified by the UI_ICONS registry variable. On the Web the icons must be in a gif format and in the same directory or archive you use for the iconic buttons
    see: http://otn.oracle.com/products/forms/pdf/webicons.pdf
    Frank
    Frank
    END;

  • B-tree catalog error, missing folder icons, item in use errors - Related?

    Hi,
    I have a B&WG3 running 10.3.9 and two hard drives. I can boot from
    one drive into OS 9.2.X. The other drive is also bootable into 10.3.9, and
    is partitioned. There are 25 Gigs free on the partition containing 10.3.9.
    I went to update to 10.4 and could not (yes, it is the retail version -
    black disk). I found there are some
    problems with the b-tree catalog and a missing thread record. fsck in single-user
    mode (-f) cannot repair the catalog problem, nor does the Apple disk repair utility.
    I have not yet tried a third-party program such as disk warrior or tech tool pro.
    Am currently backing up datafiles to Lacie external firewire hard drive.
    Computer operation seems normal.
    Just after the 10.4 installation failure, indicating failing to repair the b-tree catalog (extent check seemed OK), I noticed that some folder icons went
    missing and and the directory creation dates associated with those directories are bogus (December 31, 1903). If I move the items to the trash - I get the error that the items are in use (they are not in
    use according to activity monitor and are all related Arcsoft digital camera/imaging programs). Trash cannot be emptied even when done from UNIX prompt as sudo whether typing the path name directly or by dragging the contents of the trash into the terminal window. Also I cannot
    rm -r directoryname (directories are not empty - although they take up 0kb space and no
    files are visible either from the GUI or from a terminal window). **I really don't know that
    much about how to work in UNIX**
    Are these problems related?
    10.3.9 build 7W98
    Disk repair: Keys out of order, 4, 1317
    fsck -f (highlights only)
    missing thread record (id=8249)
    [31 mKeys out of order [0m
    Rebuilding catalog b-tree
    verify repair failed error -9972
    target volume is damaged and cannot be repaired
    Thanks for any insight!
    bdennehey

    Hi,
    Just to update, I ran through a couple of iterations of repair with TechToolPro which
    seemed to fix the "keys out of order" problem, but created/left other issues. However,
    it fixed things enough to run the Apple Disk Utility. Finally things "appear" OK. Installed 10.4 without a hitch, things still seem OK.
    Did find a new mystery folder that wasn't there before and was appearing/disappearing
    after running TTP, but before running the Apple utility. After running the Apple utility,
    the folder is a constant.
    The directory name is:
    -1010759277
    containing the file
    keyedobjects.nhb
    (Yes, that's nhb, not nib). Does anyone know what it is?
    Does anyone know if it is safe to dump it?
    % ls:
    -1010759277 TheVolumeSettingsFolder mach
    Applications Users mach.sym
    Desktop DB Volumes mach_kernel
    Desktop DF automount opt
    Desktop Folder bin private
    Library cores sbin
    Network dev tmp
    System etc usr
    TheFindByContentFolder lost+found var
    Thank you!
    bdennehey

  • 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

  • Can Tree's folder icon node changed to different icon?

    Hi,
    Currently, the tree and tree table node's icon is a "folder" icon. Can this be customized to different icons? We would like to have different icons for the nodes for different level in the tree/tree table. For example, level 1's node is icon A; level 2's node is icon B, etc...
    Any suggestions?
    Thanks.
    -Mina

    Hi,
    I think the right way of doingthis indeed is skinning. I would try to
    - set a styleClass value to the styleClass property using EL against a managed bean method.
    - The managed bean method now is called for each node. Use EL in the managed bea method to access the #{node} EL to determine the row you are on
    - set the style class to e.g. level1, level2, level3
    - Then in the skinning you use
    level1 af|tree...{}
    level2 af|tree...{}
    To define the different icons for the tree levels. Note that using DAF all icons are using folders. So there is no sense in skinning leaf icons
    Frank

  • Make an hierarchical Tree in oracle Forms 6i

    Hi everybody,
    I want to make an hierarchical tree. I work in Forms 6i
    I create one non database block e.g. 'Bloc2' then
    add hierarchical control item in that. e.g 'Menu'.
    I create a record group named 'RG_DATA_TEST'
    Before I use a table in this record_group.
    I want a tree as this :
    - Menu1
    Menu1 option1
    Menu1 option2
    - Menu1 option3
    Menu option3 Sub opt 3
    + Menu2
    the table 'Menu_tree' is described' :
    CREATE TABLE MENU_tree
    ID NUMBER(5),
    LABEL VARCHAR2(128 BYTE),
    ICON VARCHAR2(40 BYTE),
    MASTER NUMBER(5),
    STATUS NUMBER(1) DEFAULT 1,
    VALUE VARCHAR2(128 BYTE)
    Here the data in the table :
    INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES (1, 'Menu1', 'mainmenu', NULL, 1, NULL);
    INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES (
    2, 'Menu1 Option 1', 'optionmenu', 1, 1, 'Dialog11');
    INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES ( 3, 'Menu1 Option 2', 'optionmenu', 1, 1, dialog12');
    INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES (4, 'Menu1 Option 3', 'optionmenu', 1, 1, NULL);
    INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES ( 5, 'Menu1 Opt 3 Sub Opt 3', 'suboptionmenu', 4, 1, 'Dialog131');
    INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES ( 6, 'Menu2', 'mainmenu', NULL, -1, NULL);
    INSERT INTO MENU_tree ( ID, LABEL, ICON, MASTER, STATUS, VALUE ) VALUES ( 7, 'Menu2 Option1', 'optionmenu', 6, 1,'Dialog21');
    The record_group use this instruction SELECT :
    SELECT STATUS, LEVEL, LABEL, ICON, VALUE
    FROM MENU_tree
    CONNECT BY PRIOR ID = MASTER
    START WITH MASTER IS NULL
    And At the trigger When_new_form_instance , i do this code :
    DECLARE
    htree ITEM;
    V_IGNORE number;
    BEGIN
    HTREE := FIND_ITEM('BLOC2.MENU');
    V_IGNORE := POPULATE_GROUP('RG_DATA_TEST');
    FTREE.POPULATE_TREE(htree);
    END;
    When i run the forms, It don't give me a structure of node.
    It give me only a icon with two arrows.
    Where is the problem ?
    Must I add code somewhere ?
    Help me for your ideas.
    Regards.
    Edited by: 794982 on 17 sept. 2010 04:55
    Edited by: 794982 on 17 sept. 2010 05:01
    Edited by: 794982 on 17 sept. 2010 05:04
    Edited by: 794982 on 17 sept. 2010 05:06
    Edited by: 794982 on 17 sept. 2010 05:13
    Edited by: 794982 on 17 sept. 2010 05:19
    Edited by: 794982 on 17 sept. 2010 05:23

    Ok Francois Thanks for your response.
    Just I pricise i work with oracle forms version 9.0.4.0.19 .
    But I am putting this code in trigger When_New_form_Instance but it didn't work.
    When I execute it just shows a line with two arrows but not a real tree.
    Then I do a block-non based and a elemnt with type hierarticall tree and a canevas.
    and i create a record_group. and in a palette property of the element i precise the canevas and the record_group
    I don't khnow where is the problem ?
    Any other suggestion ? please
    Regards.

  • Hierarchical Tree not showing using a record group to populate

    Hi, I am trying to set up an hierarchical tree. Can someone please give me the exact steps I need to take to get this right.
    I am trying to create a hierarchical tree to behave like a menu on a Main form from where I will call the other forms of my application.
    I have done the following
    select 1, level, null, form_name, form_name
    from iso_forms
    connect by prior form_name=action
    start with action is null
    and get this when I run the statement in pl/sql
    1 LEVEL NULL FORM_NAME FORM_NAME
    1 1 Edit Edit
    1 2 Holder Holder
    1 2 Isotopes Isotopes
    1 2 Laboratories Laboratories
    1 2 Personal Personal
    1 2 Incident Incident
    1 2 Equipment Equipment
    1 2 Over Exposure Over Exposure
    1 2 Archive Archive
    1 1 Print Print
    1 1 Queries Queries
    My tree on my main form is still blank, I have checked that the tree is the only item in the block but I am not sure how to confirm that it is a control block. I created the tree in layout editor by clicking on the Hierarchical Tree icon on the left and then dragging out a block, so I am assuming that the block is of the correct type.
    Thank you for your assistance
    Michael

    a control block is one not based on a table/view/procedure . check the block's query data source name. its must be blank.
    I suggest you create a procedure where you create the record_group using
    CREATE_GROUP_FROM_QUERY,populate_group and ftree.set_tree_property
    Here is my code that I i used to populate my tree .it works:
    PROCEDURE populate_the_tree IS
    grp recordgroup;
    error_number number;
    grpname varchar2(20) :='rg_group';
    tree_id item :=find_item('ctrl.tree');
    grp_qry2 varchar2(500) :='select -1,level,ename,null,empno from emp start with mgr is null connect by prior empno=mgr';
    begin
         grp := find_group(grpname);
         if not id_null(grp)
              then delete_group(grp);
         end if;
    --     grp := create_group_from_query(grpname,grp_qry1||grp_qry2);
         grp := create_group_from_query(grpname,grp_qry2);
         error_number:=populate_group(grpname);
         if error_number <> 0
              then message('Error while populating tree');
              raise form_trigger_failure;
         end if;
         ftree.set_tree_property(tree_id,ftree.record_group,grp);
    END;
    Message was edited by:
    lewismak2000

  • Forms 6 hierarchical Tree

    I would like to Know concept of Hierarchical Tree of forms 6i. What query should be written in the record group to populate the tree and how to implement hierarchical tree to make the form act like Windows Explorer .
    Thank You.

    Read the documentation. Here is a sample query to load the record group.
    PROCEDURE prc_populate_record_group
    IS
    CURSOR g IS
    SELECT groupnum,
    groupnm
    FROM merch_group
    ORDER BY groupnm;
    CURSOR c (l_groupnum NUMBER) IS
    SELECT categorynum,
    categorynm
    FROM merch_group_category
    WHERE groupnum = l_groupnum
    ORDER BY categorynm;
    i NUMBER;
    l_rg_id RECORDGROUP;
    l_init_state GROUPCOLUMN;
    l_level GROUPCOLUMN;
    l_label GROUPCOLUMN;
    l_icon GROUPCOLUMN;
    l_value GROUPCOLUMN;
    l_node ftree.node;
    l_next_node ftree.node;
    l_tree_item ITEM;
    BEGIN
    l_rg_id := FIND_GROUP('PRC_GROUP_CAT');
    IF NOT ID_NULL(l_rg_id)
    THEN
    DELETE_GROUP(l_rg_id);
    END IF;
    l_rg_id := CREATE_GROUP('PRC_GROUP_CAT');
    l_init_state := ADD_GROUP_COLUMN(l_rg_id, 'init_state', NUMBER_COLUMN);
    l_level := ADD_GROUP_COLUMN(l_rg_id, 'level', NUMBER_COLUMN);
    l_label := ADD_GROUP_COLUMN(l_rg_id, 'label', CHAR_COLUMN, 40);
    l_icon := ADD_GROUP_COLUMN(l_rg_id, 'icon', CHAR_COLUMN, 20);
    l_value := ADD_GROUP_COLUMN(l_rg_id, 'value', CHAR_COLUMN, 40);
    i := 1;
    FOR g_rec IN g
    LOOP
    ADD_GROUP_ROW (l_rg_id, i);
    SET_GROUP_NUMBER_CELL(l_init_state, i, -1);
    SET_GROUP_NUMBER_CELL(l_level, i, 1);
    SET_GROUP_CHAR_CELL(l_label, i, g_rec.groupnm&#0124; &#0124;' - '&#0124; &#0124;g_rec.groupnum);
    SET_GROUP_CHAR_CELL(l_icon, i, NULL);
    SET_GROUP_CHAR_CELL(l_value, i, g_rec.groupnum);
    i := i + 1;
    FOR c_rec IN c (g_rec.groupnum)
    LOOP
    ADD_GROUP_ROW (l_rg_id, i);
    SET_GROUP_NUMBER_CELL(l_init_state, i, -1);
    SET_GROUP_NUMBER_CELL(l_level, i, 3);
    SET_GROUP_CHAR_CELL(l_label, i, c_rec.categorynm&#0124; &#0124;' - '&#0124; &#0124;c_rec.categorynum);
    SET_GROUP_CHAR_CELL(l_icon, i, NULL);
    SET_GROUP_CHAR_CELL(l_value, i, c_rec.categorynum);
    i := i + 1;
    END LOOP;
    END LOOP;
    --Find the tree
    l_tree_item := find_item('CONTROL.TREE4');
    -- Assign record group to item causing the data to display
    ftree.set_tree_property(l_tree_item, ftree.record_group, l_rg_id);
    -- Find the root node of the tree
    l_node := ftree.find_tree_node(l_tree_item, '');
    END;
    null

  • How do we create Hierarchical tree??

    Can I get help on creating hirerchical tree with detailed description ?? I tried basing hierarchical item on query but it didn't work.Do i need to specifically give code for populating it ??
    Also I need help on basing it on Record Group ??
    Is there any rule for having specific no of columns for a tree ??

    You can create Hierarchical Tree in two ways.
    One using "connect by prior" and another
    by Adding columns and row to record group at run time.
    If your table has Self reference Key then
    you can create using connect by prior.
    Otherwise you have to go for second one.
    Go and check the navwiz.fmb in oracle demo files.
    Following example is from navwiz.fmb
    (open navwiz.pll and then check refresh_tree)
    In this example they used both.For Emp they used connect by prior.
    PROCEDURE refresh_trees(p_view VARCHAR2) IS
    cursor cursor_dept is
    select dname, deptno
    from dept
    order by dname;
    cursor cursor_emp(p_dno number) is
    select ename, empno
    from emp
    where deptno = p_dno
    order by ename;
    v_i number;
    v_ignore number;
    rg_emps recordgroup;
    rg_depts recordgroup;
    v_init_state groupcolumn;
    v_level groupcolumn;
    v_label groupcolumn;
    v_icon groupcolumn;
    v_value groupcolumn;
    begin
    if p_view = 'EMP' then
    --the emps hierarchy
    rg_emps := find_group('EMPS');
    if not id_null(rg_emps) then
    delete_group(rg_emps);
    end if;
    rg_emps := create_group_from_query('EMPS',
    'select 1, level, ename, NULL, to_char(empno) ' &#0124; &#0124;
    'from emp ' &#0124; &#0124;
    'connect by prior empno = mgr ' &#0124; &#0124;
    'start with mgr IS NULL');
    v_ignore := populate_group(rg_emps);
    ftree.set_tree_property('navigator.nav_display', ftree.record_group, rg_emps);
    else
    --the organization
    rg_depts := find_group('DEPTS');
    if not id_null(rg_depts) then
    delete_group(rg_depts);
    end if;
    rg_depts := create_group('DEPTS');
    v_init_state := add_group_column(rg_depts, 'init_state', number_column);
    v_level := add_group_column(rg_depts, 'level', number_column);
    v_label := add_group_column(rg_depts, 'label', char_column, 40);
    v_icon := add_group_column(rg_depts, 'icon', char_column, 20);
    v_value := add_group_column(rg_depts, 'value', char_column, 5);
    v_i := 1;
    for deptrec in cursor_dept loop
    add_group_row(rg_depts, v_i);
    set_group_number_cell(v_init_state, v_i, 1);
    set_group_number_cell(v_level , v_i, 1);
    set_group_char_cell (v_label , v_i, deptrec.dname);
    set_group_char_cell (v_icon , v_i, NULL);
    set_group_char_cell (v_value , v_i, to_char(deptrec.deptno));
    v_i := v_i + 1;
    for emprec in cursor_emp(deptrec.deptno) loop
    add_group_row(rg_depts, v_i);
    set_group_number_cell(v_init_state, v_i, 1);
    set_group_number_cell(v_level , v_i, 2);
    set_group_char_cell (v_label , v_i, emprec.ename);
    set_group_char_cell (v_icon , v_i, NULL);
    set_group_char_cell (v_value , v_i, to_char(emprec.empno));
    v_i := v_i + 1;
    end loop;
    end loop;
    ftree.set_tree_property('navigator.nav_display', ftree.record_group, rg_depts);
    end if;
    My query******
    procedure refresh1 is
    v_i number;
    v_ignore number;
    Rg_Menus recordgroup;
    rg_depts recordgroup;
    Begin
    Rg_Menus := find_group('MENUS');
    If not id_null(Rg_Menus) then
    delete_group(Rg_Menus);
    End If;
    Rg_Menus := create_group_from_query('MENUS',
    'select 1, level, item_name, NULL, item_id ' &#0124; &#0124;
    'from Item_all '
    &#0124; &#0124;' where Item_id in (select Item_id from Item_access_all where role_id in
    (select role_id from org_access_all where user_id =
    (select gsp_user_id from users_all where upper(user_name) = upper(USER))
    and code = :global.code) )
    and item_id not in (select item_id from item_Exception where Code = :Global.Code)' &#0124; &#0124;
    'connect by prior item_name = main_name ' &#0124; &#0124;
    'start with item_name = ''MAIN''');
    v_ignore := populate_group(Rg_Menus);
    ftree.set_tree_property('tree_blk.tree_menu', ftree.record_group,Rg_Menus);
    Exception
    When Others then
    Bell;
    Message('You cannot Access any menu item...');
    Raise Form_trigger_Failure;
    End;
    viji.
    null

  • Colourful Hierarchical Tree

    Hi,
    This is the first thread am posting. I searched ur discussions for "How to show the hierarchical tree in forms 10g with different colours and in different fonts weigth for different nodes". But i found nothing.
    Hopefully looking forward for your replies.

    You should use a less specific search string if you don't find anything first time but in this case it won't have helped you.
    You can set an icon for each node in the tree, which might be an acceptable alternative to writing lots of java.
    The icon can be set as a property
    http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builts/set_tree_node_property_built_in.html?tp=true
    or it can be built into the select statement that creates the tree (if your tree is query-driven).

Maybe you are looking for