limpar tree

Dicas do Oracle Forms Builder - Blocos, Itens, LOV, Canvas, Triggers, comandos, PLL, d2kwutil, FMB, Alert, menus, etc
Responder
aline_plr
Rank: Analista Júnior
Rank: Analista Júnior
Mensagens: 92
Registrado em: Qui, 27 Ago 2009 9:13 am
Localização: Rio Preto

Olá pessoal...

Gostaria de saber como faz para limpar todos elementos de um tree de uma só vez ?
Avatar do usuário
dr_gori
Moderador
Moderador
Mensagens: 5024
Registrado em: Seg, 03 Mai 2004 3:08 pm
Localização: Portland, OR USA
Contato:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Acho que você pode usar DELETE_TREE_NODE.
(tem um exemplo no help do forms)

Ai basta colocar o nodo principal.

Selecionar tudo

/*  

** Built-in:  DELETE_TREE_NODE 
*/

-- This code finds a node with the label "Zetie"
-- and deletes it and all of its children.

DECLARE
   htree         ITEM;
   delete_node   FTREE.NODE;
BEGIN
   -- Find the tree itself.
   htree := Find_Item('tree_block.htree3');

   -- Find the node with a label of "Zetie".
   -- Start searching from the root of the tree.
   delete_node := Ftree.Find_Tree_Node(htree,
                                       'Zetie',

                                       Ftree.FIND_NEXT,
                                       Ftree.NODE_LABEL,
                                       Ftree.ROOT_NODE,
                                       Ftree.ROOT_NODE);

   -- Delete the node and all of its children.
   IF NOT Ftree.ID_NULL(delete_node) then
      Ftree.Delete_Tree_Node(htree, delete_node);
   END IF;
END;
Responder
  • Informação
  • Quem está online

    Usuários navegando neste fórum: Nenhum usuário registrado e 9 visitantes