11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

REPLACE_CONTENT_VIEW built-in<br />

Description<br />

Replaces the content canvas currently displayed in the indicated window with a different content canvas.<br />

Syntax<br />

PROCEDURE REPLACE_CONTENT_VIEW<br />

(window_id Window,<br />

view_id ViewPort);<br />

PROCEDURE REPLACE_CONTENT_VIEW<br />

(window_name VARCHAR2,<br />

view_id ViewPort);<br />

PROCEDURE REPLACE_CONTENT_VIEW<br />

(window_id Window,<br />

view_name VARCHAR2);<br />

PROCEDURE REPLACE_CONTENT_VIEW<br />

(window_name VARCHAR2,<br />

view_name VARCHAR2);<br />

Built-in Type unrestricted procedure<br />

Enter Query Mode yes<br />

Parameters<br />

window_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns the window when<br />

created. Use the FIND_WINDOW built-in to return the ID to an<br />

appropriately typed variable. The data type of the ID is Window.<br />

window_name Specifies the name that you gave the window when creating it. The data<br />

type of the name is VARCHAR2.<br />

view_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns the view when it creates<br />

the object. Use the FIND_VIEW built-in to return the ID to an<br />

appropriately typed variable. The data type of the ID is ViewPort.<br />

view_name Specifies the name that you gave the object when defining it. The data type<br />

of the name is VARCHAR2.<br />

REPLACE_CONTENT_VIEW restrictions<br />

• The canvas that replaces the window’s current content canvas must have been assigned to that<br />

window at design time. That is, you cannot replace a window’s content view with a content view<br />

from a different window.<br />

• If you replace a content canvas that contains the item that currently has focus, <strong>Form</strong> <strong>Builder</strong> will<br />

immediately undo the replacement to keep the focus item visible to the end user.<br />

REPLACE_CONTENT_VIEW examples<br />

338<br />

/*<br />

** Built-in: REPLACE_CONTENT_VIEW<br />

** Example: Replace the ’salary’ view with the ’history’<br />

** view in the ’employee_status’ window.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!