Example is given below to sort detail data block data (toggle asc or desc) with push buttons used as header of grid, by setting ORDER_BY property of data block using SET_BLOCK_PROPERTY command.
 
The following is the screen shot of this example and this form can be downloaded from the below link:
 
In this example two data block are being used, one is to contain push buttons to sort data and one is to hold the data in detail block.
 
On every push button of header the following code is written on When-Button-Pressed trigger:
Begin
 If Nvl(Get_Block_Property('scott_emp', order_by), 'ENAME ASC') = 'ENAME ASC' then
    Set_Block_Property('scott_emp', order_by, 'ename desc');
Else    Set_Block_Property('scott_emp', order_by, 'ename asc');  End if;
Go_Block('scott_emp');  Execute_Query;
End;
You see in above example when I am getting the current setting of order by property of the block, I am reading it in upper case because it returns in upper case even if I am setting the property in lower case.

最新文章

  1. day7_subprocess模块和面向对象,反射
  2. 关于GridView中控件的问题
  3. 在ie浏览器,360浏览器下,margin:0 auto;不居中的原因
  4. web项目总结——通过jsp+servlet实现对oracle的增删改查功能
  5. [ActionScript 3.0] 分页排版
  6. 前台传参数时间类型不匹配:type 'java.lang.String' to required type 'java.util.Date' for property 'createDate'
  7. 用Win7自带的磁盘管理工具给硬盘分区
  8. SSH框架构建微信公众帐号服务器小技巧
  9. IOS s数据存储之归档解档
  10. task-clph
  11. Flash与IE奇怪的关键字冲突
  12. 使用PSSH批量SSH操作Linux服务器
  13. 【转】windows7 64位系统认不出8g内存显示只有3G可用
  14. Vue的报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
  15. PaddlePaddle︱开发文档中学习情感分类(CNN、LSTM、双向LSTM)、语义角色标注
  16. openlayers三:添加图片和图标
  17. 一个.net的程序员如何转到java的?
  18. [React] immutable.js
  19. python爬虫 scrapy框架(一)爬取壁纸照片
  20. 利用DNSlog回显Weblogic(CVE-2017-10271) 漏洞执行命令结果

热门文章

  1. DevOps实施的三种IT障碍
  2. Windows Server 2012 R2:细节信息汇总
  3. IOS开发---菜鸟学习之路--(十二)-利用ASIHTTPRequest进行异步获取数据
  4. day02_05.除数与被除数
  5. Python 字节与字符串的转换
  6. [oldboy-django][2深入django]FBV + CBV + 装饰器
  7. CodeForces Round #521 (Div.3) A. Frog Jumping
  8. c#的字典序
  9. String 类详解
  10. JavaScript 笔记(3) -- JSON