Friday 13 December 2019

Stacked canvas in oracle forms

Stacked canvas in oracle forms

In this post , We will discuss about the Stacked canvas in oracle forms. Stacked Canvas is one of the Canvas type of Oracle Forms canvas. Canvas’ type defines how Oracle Forms will display it in the Forms window to which it is assigned. Stacked Canvas is more advanced form of content canvas. Stacked canvas can be displayed or hidden dynamically. In Simple Form , We can say about Stacked canvas , if we want to display objects in the Form , we need to create the canvas in the Form Window. We do design the Oracle forms layout above canvas in oracle forms window. 

Stacked canvas in oracle forms

Uses of  Stacked canvas in oracle forms

Stacked Canvas is more advanced version of content canvas and this is very usefully for displaying the large volume of Columns.

For Example :
If we want to create a form with 30 columns and 20 rows, if you place all 30 columns in constant canvas you have to scroll the complete form to see the 30th column. Instead of that if can create a stacked canvas with say example for 20 columns out of 20 then you need not scroll the complete form you can scroll the stacked canvas part so that the remaining 10 columns will remain constant.

Types of Canvas in oracle forms

The four canvas types are:

  • Content
  • Stacked
  • Tab
  • Toolbar

Steps of Create Stacked canvas in oracle forms

Step1:- For Example , Here below is the Default Content Canvas. 
Stacked canvas in oracle forms


Step2:- Here below in the Tool Bar.Select the Highlighted 'Stacked canvas' and drag and drop this Stacked canvas in content canvas in oracle forms.


Step3:- As below in the the Forms Main Window , We have the Main Canvas which is 'Content Canvas' Under Main Canvas , We have drag and drop the Stacked canvas as in Step 2. 
Now we need to change the properties of Stacked canvas so Click on the CANVAS6 and click on F4 to view the properties.
Stacked canvas in oracle forms

Step 4:-  As below is the Stacked Canvas With Canvas Type 'Stacked' 
We need to enable the Show Horizontal and Show vertical Scroll var.

Specify the View port X and Y position, Width and Height of the Stacked Canvas.

Stacked canvas in oracle forms



Step 5:- 

Ensure to include the below snippets of code in ‘WHEN-NEW-FORM-INSTANCE’ trigger
 
SHOW_VIEW('STACKEDCANVAS'); - Stacked Canvas Name
GO_BLOCK('BLOCK_NAME');
GO_ITEM('ITEM1');

8. The Canvas can be hidden using ‘HIDE_VIEW('STACKEDCANVAS'); - Stacked Canvas Name



Stacked canvas in oracle forms

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *