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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

252<br />

** Local function called recursively to close children at<br />

** all levels of the hierarchy.<br />

*/<br />

PROCEDURE Close_Win_With_Children( parent_win VARCHAR2 ) IS<br />

the_child VARCHAR2(40);<br />

the_parent VARCHAR2(40);<br />

BEGIN<br />

FOR j IN 1..the_Rowcount LOOP<br />

the_parent := Get_Group_Char_Cell(gc_parent,j);<br />

/* If we find a matching parent in the table */<br />

IF UPPER(the_parent) = UPPER(parent_win) THEN<br />

the_child := Get_Group_Char_Cell(gc_child,j);<br />

/*<br />

** Close this child and any of its children<br />

*/<br />

Close_Win_With_Children( the_child );<br />

END IF;<br />

END LOOP;<br />

/*<br />

** Close the Parent<br />

*/<br />

Hide_Window( parent_win );<br />

END;<br />

BEGIN<br />

/*<br />

** Setup<br />

*/<br />

rg_id := Find_Group(’WINDOW_HIERARCHY’);<br />

gc_parent := Find_Column(’WINDOW_HIERARCHY.PARENT_WINDOW’);<br />

gc_child := Find_Column(’WINDOW_HIERARCHY.CHILD_WINDOW’);<br />

the_Rowcount := Get_Group_Row_Count(rg_id);<br />

/* Close all the child windows of ’wn_name’ */<br />

Close_Win_With_Children( wn_name );<br />

/* Navigate to the Destination Item supplied by the caller */<br />

Go_Item( dest_item );<br />

END;

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

Saved successfully!

Ooh no, something went wrong!