SOLUTION - calling one form from another
From: marc.colten <colten_at_cbnewsb.cb.att.com>
Date: Thu, 10 Dec 1992 14:56:43 GMT
Message-ID: <1992Dec10.145643.4213_at_cbfsb.cb.att.com>
Date: Thu, 10 Dec 1992 14:56:43 GMT
Message-ID: <1992Dec10.145643.4213_at_cbfsb.cb.att.com>
I had asked for help in calling one form from another. I got several very good replies and managed to fuse them together into a solution that works for me. The following is the procedure I worked out.
I want to thank Kevin Toepke, Mikko Kuismin and Joel Fedorko for their excellent replies:
Calling form
ON-NEW-FIELD-INSTANCE (FIELD level)
:GLOBAL.field := :block.field; CALL('NEWFORM');
Called form
KEY-STARTUP (FORM level)
BEGIN DEFAULT_VALUE('%','GLOBAL.FIELD'); if :GLOBAL.field = '%' then ENTER_QUERY; else EXECUTE_QUERY; END IF: END;
PRE-QUERY (BLOCK LEVEL) DEFAULT_VALUE(:GLOBAL.FIELD,'block.field');
marc colten Received on Thu Dec 10 1992 - 15:56:43 CET