Sort Detail Data Block Example - Oracle Forms

Posted ORACLE EBS

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Sort Detail Data Block Example - Oracle Forms相关的知识,希望对你有一定的参考价值。

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.

以上是关于Sort Detail Data Block Example - Oracle Forms的主要内容,如果未能解决你的问题,请参考以下文章

SwiftUI + Core Data - 更新对象(Detail -> DetailEdit)

sklearn逻辑回归实战

Django:如何根据 order_id 获取 order_detail_data

Data Block Compression

Hibernate HQL 多对一连接

java中的sort方法排序问题