博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Create Hierarchical Tree To Control Records In Oracle Forms
阅读量:6423 次
发布时间:2019-06-23

本文共 1161 字,大约阅读时间需要 3 分钟。


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.

转载地址:http://barra.baihongyu.com/

你可能感兴趣的文章
javascript ---IPhone滑动解锁
查看>>
table固定行和表头
查看>>
<每天读一点职场心理学>读书笔记
查看>>
Android权限大全代码
查看>>
android 判断SIM卡是哪个运营商
查看>>
删除N天前的M(天)个目录 、删除N天前最后修改的文件 ForFiles, dos command 批处理命令cmd/bat...
查看>>
十进制数1~n中1出现的次数
查看>>
PostgreSQL 的 语法分析的理解(五)
查看>>
[转载]Visual Studio 2010敏捷利剑:详解Scrum
查看>>
Java Collection: List、Set、 Map、 HashMap、 Hashtable、 Vector
查看>>
T-SQL查询进阶--流程控制语句
查看>>
Excel VBA小试
查看>>
备份Toad中保存的数据库连接用户名和密码
查看>>
ASP.NET中 Repeater 的使用前台绑定
查看>>
微信公众平台模拟群发技术
查看>>
C语言学习之指针详解
查看>>
学习使用Bing Maps Silverlight Control(一):准备和新建
查看>>
python Property属性用法(转)
查看>>
code review 工具
查看>>
五种类型的程序员
查看>>