You are on page 1of 1

Call Form in Forms 6i

CALL_FORM
CALL_FORM starts form2 from form1, but leaves form1 in memory. When form2 exits,
control passes back to form1. Both forms use the same
database connection, so it is not possible to commit each one separately. When you call
form2, you either have to commit the changes in form1 first, or when you want to commit
form2, use the POST built-in to post the changes to the database instead. Then you can
commit form1, which will commit the changes in form2 as well.

NEW_FORM
NEW_FORM exits form1 and removes it from memory before calling form2. This is
useful if you know you will come back to form1. If you want to come back to form1 you
have to store the form1 name and pass it to form2, then you could use NEW_FORM to
call form1. Remember though, that you are completely starting form1 again, as in a new
instance.

OPEN_FORM
OPEN_FORM allows more than one form to be open and also lets you open another
database session so you can commit form1 and form2 separately.

Example:
CREATE A FORM WITH EMP DATA AND CHANGE THE NAME OF MODULE1
TO EMP_DATA AND SAVE THE FORM AS EMP_DATA

CREATE A NE FORM WITH DEPT DATA AND PLACE A BUTTON IN IT. WRITE
WHEN-BUTTON-PRESSED TRIGGER AS FOLLOWS:

BEGIN
CALL_FORM(‘EMP_DATA’);
END;

NOTE: YOU CAN CALL FORM USING ALL THE ABOVE METHODS.
PLEASE FIND DETAILED DESCRIPTION ABOUT THE ABOVE METHODS IN
ORACLE FORMS DOCUMENTATION I SENT AS ATTACHMENT.

You might also like