zoukankan      html  css  js  c++  java
  • Create Hierarchical Tree To Control Records In Oracle Forms

     

    clip_image002[4]

     

    Providing an example form for creating hierarchical trees in Oracle Forms to control data block records. In this form whenever user selects any node in tree menu then corresponding record is displayed at right side.

     

    This form is having two data blocks, EMP and Control, the control block is having Tree Item and populating that tree on PRE-FORM trigger with the following code:

     

    ftree.populate_tree('CONTROL.EMP_TREE');

    ftree.set_tree_property('CONTROL.EMP_TREE', FTREE.QUERY_TEXT,

       'SELECT decode(level, 1, 1, -1), level, INITCAP(ename), ''fxrun'',' ||

        'empno FROM   SCOTT_emp ' ||

        'START WITH mgr IS NULL CONNECT BY PRIOR empno = mgr');

     

    And whenever user select any node then the following code is written on When-Tree-Node-Selected trigger to fetch the record for the selected employee:

     

    go_block('EMP');

    set_block_property('EMP', DEFAULT_WHERE, 'EMPNO='||

       ftree.get_tree_node_property('CONTROL.EMP_TREE', :SYSTEM.TRIGGER_NODE,

          FTREE.NODE_VALUE));

    execute_query;

     

    The fxrun.ico icon and table scott_emp is used in this example and script of this table and icon file are available in source code.

    Like us to get notifications for free source code in future, thanks.

  • 相关阅读:
    makedown
    前端
    关于阅读与自我认同
    Win10任务栏透明工具 TranslucentTB
    Linux文件属性
    解决vscode出现两个光标的问题
    一文搞懂vim复制粘贴
    解决vim选中文字不能复制的问题
    简单配置让iterm2用得更爽
    区块链相关在线加解密工具(非对称加密/hash)
  • 原文地址:https://www.cnblogs.com/quanweiru/p/6218770.html
Copyright © 2011-2022 走看看