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!
Similar Messages
-
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 !!!!! -
Populate hierarchical tree with Query "Select * from EMP"
Dear(S)
I want to populate a Hierarchical Tree to display results
in a well alligned form as results usually display in SQL Plus environment.
I try much using LPAD() and RPAD() function but fail to get required results.
I want to display more than one field values by concatenating them.
e.g.
SMITH CLERK 800
ALLEN SALESMAN 1600
WARD SALESMAN 1250
JONES MANAGER 2975
Please someone guide me how i can allign more than one field values in a Hierarchical tree.
Thanks and regards,
Tanveer Ahmad.Dear Thiru,
I have successfully populate the tree
but i want to display these fields at a specific distance.
How i can do it? (I have try it with LPAD() and RPAD() but fail.)
Thanks
Tanveer -
Succinct encoding for binary tree with n nodes...
How do I find all possible bit strings (Succinct encoding) for a binary tree with order n? Can anybody give me an algorithm?
I associate the order of a tree with some sort of a search or traversal. What do you mean by a "+tree with order n+"?
Could you perhaps give an example of what you're looking for? -
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.
ThanksI 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 -
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 :)
nullHere 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 and keyboard navigation
Does anyone know how to use Hierarchical Trees with keyboards, or to disable keyboard actions? (forms 9.0.4)
My form has a tree which does processing in a When-Tree-Node-Selected trigger to populate some blocks depending on the selected node. If the user selects nodes with the mouse then all is fine, but if they move between nodes with the keyboard then the processing for each selected node is only run the next time a node is selected with the mouse. This means the data for each node will flash up in the blocks for a split second when the mouse is next used.
I've tried Key-Up/Key-Down triggers to prevent keyboard navigation, but they don't fire. Setting Keyboard Navigable to false doesn't fix it either.
Using the When-Tree-Node-Activated trigger doesn't help. The online help says this trigger fires when the user presses Enter or double-clicks a node. I find that each node for which Enter was pressed is processed only when the user next double-clicks a node, and the node they double-click is not processed.
Tree Query:select 1, level, ename, null, null
from scott.emp
connect by prior empno = mgr
start with mgr is NULLWhen-New-Form-Instance:ftree.populate_tree('B.T');When-Tree-Node-Selected (1st and 4th lines commented out when changed to WTNA trigger):if :system.trigger_node_selected = 'TRUE' then
message(ftree.get_tree_node_property(
'B.T',:system.trigger_node,ftree.node_label));
pause;
end if;Hi James,
We have got the same problem, after searching Metalink I found that this is a known bug. See Metalink Bug no 4565623 (base bug 4509399).
Sjoerd -
The ' VISIBLE' property of hierarchical tree
Hi, all,
I'm a new user of Forms6. When I buitld my first app for Oracle, I got one problem on hierarchical tree. The nodes all 'disappeared' if I changed the property 'VISIBLE'. For example, if I change the 'VISIBLE' from TRUE to FALSE and TRUE again, nothing there but a blank tree. Does any one can help me? Or is there any Build-in program unit like "Refresh"?
Thank you.
hao
nullunfortunately there is no "Refresh" built-in for Hierarchial trees
Candace Stover
Forms Product Management -
Hierarchical Tree Node icon ?
Hi
How to create a icon on Hierarchical tree
Regards
ShahzaibThanks 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 -
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 -
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.
MonicaIf 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. -
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
MaheshNo the tree will not allow checkboxes
-
How to go to a particular node in a hierarchical tree?
I want to do this simple thing with a Forms hierarchical tree.
Since tree has lots of levels and branches I want to give a search box.
User types the label and press a button. The form then has to query the tree node and expand ONLY the path where the node is (if found) and highlight it. If a node with a label is NOT found I give an error message to the user.
I got hold of a code segment to explode a tree and modified it, but it does not work. The entire tree is expanded and you don't know where you are.
Any help will be greatly appreciated?
PROCEDURE Expand_All_Nodes_in_Tree IS
node ftree.node;
htree ITEM;
state varchar2(30);
BEGIN
-- Search the tree identifiant --
htree := Find_Item('menu.tree');
-- Search the root --
node := Ftree.Find_Tree_Node(htree, '');
-- Expand all nodes --
WHILE NOT Ftree.ID_NULL(node) LOOP
state := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_STATE);
IF state = Ftree.COLLAPSED_NODE THEN
Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_STATE, Ftree.EXPANDED_NODE);
END IF;
node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
IF Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_LABEL) = :ctrl.node_lable_to_search THEN
EXIT;
END IF;
END LOOP;
END;Hi Channa,
Try this code with you tree i am using the same situation and this code is working perfect with me.
PROCEDURE find_node_in_tree(search_string varchar2, find_type varchar2) IS
htree ITEM;
search_start_node ftree.node;
find_node ftree.node;
BEGIN
htree := Find_Item('blk_tree.main_tree');
search_start_node := nvl(ftree.get_tree_selection(htree,1),ftree.root_node);
find_node := ftree.find_tree_node(htree,upper(search_string)||'%',ftree.find_next,ftree.node_label,ftree.root_node,search_start_node-1);
if find_node = 0 then
find_node := 1;
end if;
Ftree.Set_Tree_selection(htree, find_node, Ftree.SELECT_ON);
exception
when others then
NULL;
END;
-Ammad -
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
Byehi,
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 -
Hierarchical Tree: When-Tree-Node-Activated is not working
I'm working Forms 10G rel.2.1 and also using application server 10G 2.
my problem is in Hierarchical Tree [When-Tree-Node-Activated] is not working in Enter this is working in Enter+Tab
I want to this trigger is working in only Enter.
I'm waiting quick responsenode_value is only item which have transfer the form or report name
Trigger Name : WHEN-TREE-NODE-ACTIVATED
Declare
htree Item ;
Begin
--clear_values;
-- htree := Find_Item('tree.htree');
-- Find the value of the node clicked on.
:node_value := ftree.Get_Tree_Node_Property(htree, :SYSTEM.trigger_NODE, Ftree.NODE_VALUE);
----Above node value transfer the procedure and call the form with node_value(Form Name)
Execute_CMD_PROC;
Exception
When Others Then Null;
End ;
when i enter then no value but when i enter+tab then show the form
Maybe you are looking for
-
Remote Panel and DSC interfering?
Hi, I wonder if DSC or OPC is interfering to view my remote panel in a executable, since I installed them and now I cannot see my web page. I mean the instructions says close Labview to gain acces with the executable, does DSC or the shared variabel
-
Transaction code for debugging
CAN ANYONE TELL ME WHAT IS THE TRANSACTION CODE FOR ABAP PROGRAM
-
Filling out PDF paperwork to send to boss
Hello I am trying to fill out a background check form sent from my work in a PDF format and to just fill in the boxes. I just downloaded the $20 annual package so that I could fill out this form and it allows me to fill it out but the "done signing"
-
PS Script to Automate NIC Teaming and Configure Static IP Address based off an Existing Physical NIC
# Retrieve IP Address and Default Gateway from static IP Assigned NIC and assign to variables. $wmi = Get-WmiObject Win32_NetworkAdapterConfiguration -Filter "IPEnabled = True" | Where-Object { $_.IPAddress -match '192\.' } $IPAddress = $wmi.IpAddres
-
Install Application without Internet
Hello, Whenever I choose to install an application from Ovi Suite. I get a message in my phone with the URL. The problem is that my mobile does not have internet. So I cannot open the URL from my mobile. How do I install the application then ?? Regar