Sort Detail Data Block Example - Oracle Forms

來源:互聯網
上載者:User

標籤:ado   default   ora   medium   aaaaa   tle   分享   tom   text   

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: Download   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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.