This content has been marked as final. Show 4 replies
Here is the content of the first note:
A hierarchical tree component is used within Forms. When the tree is populated with (ftree.populate_tree), it does not show the associated icons "from the icon column within the query". The icons are stored in a jar file.
The environment file and the web configuration file are correctly set. For example, an image in the jar file appears on an iconic button.
The cause of this issue is determined by the unpublished Bug 10410309: FTREE.POPULATE_TREE DOES NOT SHOW ICONS
If the icon node value is refreshed, then the associated image appears.
A simple loop like this will solve the problem:
-- Find the tree itself.
htree := Find_Item('TREE.TREE');
-- Find the root node of the tree.
node := Ftree.Find_Tree_Node(htree, '');
-- Loop through all nodes and refresh their icon value
WHILE NOT Ftree.ID_NULL(node) LOOP
state2 := Ftree.Get_Tree_Node_Property(htree, node, Ftree.NODE_ICON);
IF state2 is not null THEN
Ftree.Set_Tree_Node_Property(htree, node, Ftree.NODE_ICON, lower(state2));
node := Ftree.Find_Tree_Node(htree, '', ftree.find_NEXT,Ftree.NODE_LABEL,'', node);
Now the icon image value will be read from the jar file containing the images.
The second note talks about not using subdirectories inside the jar file.
If someone's answer is helpful or correct please mark it accordingly.