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.

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 + 1

Set 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的更多相关文章

  1. Copy Records From One Data Block To Another Data Block In Oracle Forms

    In this tutorial you will learn to copy the records from one data block to another data block on sam ...

  2. 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 ...

  3. Populating Tabular Data Block Manually Using Cursor in Oracle Forms

    Suppose you want to populate a non-database data block with records manually in Oracle forms. This t ...

  4. devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 163840 free data blocks. Create more free space in thin pool or use dm.min_free_space option to change behavior

    问题: 制作镜像的时候报错 devmapper: Thin Pool has 162394 free data blocks which is less than minimum required 1 ...

  5. How to: Create a Business Model in the XPO Data Model Designer

    How to: Create a Business Model in the XPO Data Model Designer This topic provides step-by-step inst ...

  6. Create Data Block Based On From Clause Query In Oracle Forms

    Example is given below to create a data block based on From Clause query in Oracle Forms. The follow ...

  7. Horizontal Toolbar With Navigational Buttons Form Sample For Oracle Forms 10g/11g

    Sharing an Oracle Form Htoolbar.fmb for Oracle Forms 10g/11g containing Horizontal Toolbar canvas an ...

  8. Create Timer Example To Show Image Presentation in Oracle Forms

    Suppose you want to change multiple images after a specified time in home screen of your oracle form ...

  9. Create Custom Modal Dialog Windows For User Input In Oracle Forms

    An example is given below to how to create a modal dialog window in Oracle Forms for asking user inp ...

随机推荐

  1. JS中数组的操作

    1.数组的创建 var arrayObj = new Array(); //创建一个数组 var arrayObj = new Array([size]); //创建一个数组并指定长度,注意不是上限, ...

  2. js 中的call()函数

    a.call(b); 官方说:什么对象替换什么对象. a对象的方法应用到b对象上(函数apply的意思正好说明符合这样理解:a对象应用到b对象上去) a对象既然添加到b对象上了.那么b对象自然就拥有了 ...

  3. Linux异步IO【转】

    转自:http://blog.chinaunix.net/uid-24567872-id-87676.html Linux® 中最常用的输入/输出(I/O)模型是同步 I/O.在这个模型中,当请求发出 ...

  4. NFine - 全球领先的快速开发平台 Dapper Chloe

    http://www.nfine.cn/ 技术交流群:549652099 出处:http://www.cnblogs.com/huanglin/ 分享一个轻型ORM--Dapper选用理由 Chloe

  5. jQuery 遍历函数(w3school)

    jQuery 遍历函数包括了用于筛选.查找和串联元素的方法.   函数 描述 .add() 将元素添加到匹配元素的集合中. .andSelf() 把堆栈中之前的元素集添加到当前集合中. .childr ...

  6. DockerUI安装、使用

    虽然大多数开发人员和管理人员通过命令行来创建及运行Docker容器,但Docker的Remote API让他们可以通过充分利用REST(代表性状态传输协议)的API,运行相同的命令.这时,Docker ...

  7. Mysql query log

    一.查询日志的概念: 查询日志记录MySQL中所有的query,通过"--log[=file_name]"来打开该功能.由于记录了所有的query,包括所有的select,体积比较 ...

  8. HDU 5724:Chess(博弈 + 状压)

    http://acm.hdu.edu.cn/showproblem.php?pid=5724 Chess Problem Description   Alice and Bob are playing ...

  9. Linux中PHP如何安装curl扩展方法

    如果php已经在系统编译好,后来又需要添加新的扩展. 一种方式就是重新完全编译php,另一种方式就是单独编译扩展库,以extension的形式扩展. 下面以安装curl扩展为例: 1.下载curl安装 ...

  10. CMake快速入门教程:实战

    转自http://blog.csdn.net/ljt20061908/article/details/11736713 0. 前言    一个多月前,由于工程项目的需要,匆匆的学习了一下cmake的使 ...