Create Stacked Canvas to Scroll Horizontal Tabular Data Blocks In Oracle Forms

來源:互聯網
上載者:User

標籤:file   import   port   detail   follow   pointer   ace   main   ati   

In this tutorial you will learn to create horizontal scrollable tabular or detail data block by using stacked canvas in Oracle Forms.
As shown in below picture the first column Empno is fixed and middle columns Ename, Job, Mgr and Hiredate are scrollable and last columns Sal, Comm, Deptno are fixed which are right side. Download Form First thing is clear that the those columns which are fixed will be placed on Content Canvas and those column which are scrollable will be placed on Stacked Canvas.

Now the main part is to set the positioning of stacked canvas items and content canvas items and the position of stacked canvas and for this I will tell you to set some important properties of the items and stacked canvas.
To set the stacked canvas position and scrollable area stacked canvas, you have to note down the properies of the following items:
1. The X and Y position and the Width of First fixed column Empno Which is in this case are:X = 15
Y = 172
Width = 45
2. Note down the X property of first right side column Sal, which is:
X = 218

Now we have the property values and what we need to do is some calculation to get the exact placement of Stacked Canvas and the following is the formula:
The first column Empno X is 15 and width is 45, hence the stacked canvas Viewport X Position will be 15 + 45 + 1Set Viewport X Position = 61

The first column Empno Y is 172, hence the stacked canvas Viewport Y Position will be 172 - 10 (Prompt height) Set Viewport Y Position = 162   Set the Viewport Width using following formula:   Sal column X Position(218) - First Column Empno X+Width (60) - 4 = 154 Set Viewport Width = 154   Set the Viewport Height as per the number of items displayed on content canvas.   Now your scrollable Stacked canvas is ready and I am attaching the form including Emp table script so that you download and take the reference from it.   Download this form using this link from Google Drive : Stacked.Zip

Create Stacked Canvas to Scroll Horizontal Tabular Data Blocks In 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.