Using Call_Form in Oracle D2k
CALL_FORM examples
/* Example 1:
** Call a form in query-only mode.
*/
BEGIN
CALL_FORM(’empbrowser’, no_hide, no_replace, query_only);
END;
/* Example 2:
** Call a form, pass a parameter list (if it exists)
*/
DECLARE
pl_id PARAMLIST;
theformname VARCHAR2(20);
BEGIN
theformname := ’addcust’;
/* Try to lookup the ’TEMPDATA’ parameter list */
pl_id := GET_PARAMETER_LIST(’tempdata’);
IF ID_NULL(pl_id) THEN
CALL_FORM(theformname);
ELSE
CALL_FORM(theformname,
hide,
no_replace,
no_query_only,
pl_id);
END IF;
CALL_FORM(’lookcust’, no_hide, do_replace, query_only);
END;