Monday, October 12, 2015

Oracle Forms - Stacked Canvas creation over the Content Canvas

This article explains the technical aspects of developing a Stacked Canvas in Oracle Forms.
 
Canvas is a surface inside a window container on which we place objects. To see a canvas, we need to display it in a window. A canvas will be displayed on the window on which it is assigned.
 
We have several types of Canvas. This document will briefly explain us on how to create a Stacked Canvas and Content Canvas in the same window in Oracle Forms.

Steps for creating Stacked Canvas over the Content Canvas

1. From the Object Navigator,  Create a Detail Block which has more number of Columns and
   place it in the default Content Canvas. 

2. Click the ‘Stacked Canvas tool’ in the toolbar. 

3. Drag and Drop it on the Content Canvas where we want to position the Stacked Canvas.

4. Press ‘F4’ and click on the property pallette of the Stacked Canvas.
 
5. Specify the View port X and Y position, Width and Height of the Stacked Canvas.

 
6. Show Horizontal Scroll bar/Vertical Scroll bar to ‘Yes’ 
7. Ensure to include the below snippets of code in ‘WHEN-NEW-FORM-INSTANCE’ trigger
 
SHOW_VIEW('STACKED1'); - Stacked Canvas Name
GO_BLOCK('BLOCK_NAME');
GO_ITEM('ITEM1');
8. The Canvas can be hidden using ‘HIDE_VIEW('Stacked Canvas’);
9.  In the Screenshot given below, Columns A to H is placed on a Content Canvas while from Column I to the last columns are placed in the Stacked Canvas.

5 comments:

  1. Hi ,

    I have developed similar form. If i am clicking on column H which is just before stack canvas.
    My Stack can is hiding.Could you please help me on this.

    ReplyDelete
  2. Thanks for sharing very good information about OCI Punchout.
    OCI Punchout

    ReplyDelete
  3. Thanks for sharing article about Benefits of OCI Punchout, Open Catalog Interface Punchout
    Benefits of OCI Punchout

    ReplyDelete
  4. I need to give space between horizontal scroll bar and data block.
    Right now it is sticked to each other.

    How can I achieve this?Please help.

    ReplyDelete
  5. A Stacked Canvas with RAISE ON ENTRY Property Set to YES can be displayed only through Navigation or Programmatic Control. IS is True or False.

    ReplyDelete