how do we call reports from forms and also how do we call stand alone forms from another form?
To call another from from one form, use built in GO_FORM procedure:
To programmatically open another form, execute the OPEN_FORM built-in procedure:
OPEN_FORM('stocks');
By default, Form Builder immediately activates the opened form and sets focus in the form's first navigable item. To explicitly specify this default behavior, include the optional ACTIVATE parameter:
OPEN_FORM('stocks', activate);
When you open a form with ACTIVATE specified, Form Builder ignores (and never executes) any trigger statements that follow the call to OPEN_FORM.
If you do not want Form Builder to place focus in the opened form, include the NO_ACTIVATE parameter:
OPEN_FORM('stocks', no_activate);
When you open a form with NO_ACTIVATE specified, Form Builder executes any trigger statements that follow the call to OPEN_FORM after the opened form has been loaded into memory and its initial start-up triggers (if any) have been fired.
Whether you open a form with ACTIVATE or NO_ACTIVATE, Form Builder will fire any triggers in the opened form that normally would fire at form start-up. Potentially, these could include Pre-Form, When-New-Form-Instance, When-New-Block-Instance, When-New-Record-Instance, and When-New-Item-Instance triggers.
To close an independent form, execute the CLOSE_FORM procedure:
CLOSE_FORM('stocks');