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.

FIND_VIEW built-in<br />

Description<br />

Searches the list of canvases and returns a view ID when it finds a valid canvas with the given name.<br />

You must define an appropriately typed variable to accept the return value. Define the variable with a<br />

type of ViewPort.<br />

Syntax<br />

FUNCTION FIND_VIEW<br />

(viewcanvas_name VARCHAR2);<br />

Built-in Type unrestricted function<br />

Returns ViewPort<br />

Enter Query Mode yes<br />

Parameters<br />

viewcanvas_name Specifies the VARCHAR2 name of the canvas.<br />

FIND_VIEW examples<br />

/*<br />

** Built-in: FIND_VIEW<br />

** Example: Change the visual attribute and display position<br />

** of a stacked view before making it visible to<br />

** the user.<br />

*/<br />

DECLARE<br />

vw_id ViewPort;<br />

BEGIN<br />

vw_id := Find_View(’Sales_Summary’);<br />

Set_Canvas_Property(’Sales_Summary’, VISUAL_ATTRIBUTE,<br />

’Salmon_On_Yellow’);<br />

Set_View_Property(vw_id, VIEWPORT_X_POS, 30);<br />

Set_View_Property(vw_id, VIEWPORT_Y_POS, 5);<br />

Set_View_Property(vw_id, VISIBLE, PROPERTY_TRUE);<br />

END;<br />

141

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

Saved successfully!

Ooh no, something went wrong!