Informix Error -1114: No form has been displayed.
Cause and resolution
No form has been displayed.
The current statement requires the use of a screen form. For example, DISPLAY...TO or an INPUT statement must use the fields of a form. However, the DISPLAY FORM statement has not been executed since the current window was opened. Review the program logic to ensure that it opens and displays a form before it tries to use a form.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-1114 fires when a statement that requires an active screen form (such as DISPLAY ... TO or
INPUT) runs before DISPLAY FORM has been executed for the current window — per the official
guidance, form-dependent statements need a form already displayed to reference its fields.
- A form-dependent statement (
INPUT,DISPLAY ... TO, etc.) executed beforeDISPLAY FORM, per the official guidance — the direct, only cause. - A new window opened without re-issuing
DISPLAY FORM, per the official guidance's specific framing — the requirement is per-window, so opening a new window resets it.
Solutions / Resolution
- Execute
DISPLAY FORMbefore any form-dependent statement, per the official guidance, for the current window. - Check window-opening logic for a
DISPLAY FORMcall missing after a new window is opened, per the official guidance's per-window framing.
Examples
A form-dependent statement without DISPLAY FORM
OPEN FORM f1 FROM "order_entry"
INPUT BY NAME order_id, status FROM s_order.*
-- -1114: DISPLAY FORM f1 was never executed for this window
Corrected
OPEN FORM f1 FROM "order_entry"
DISPLAY FORM f1
INPUT BY NAME order_id, status FROM s_order.*
Diagnostic Checks
- Check whether
DISPLAY FORMwas executed for the current window before the failing form-dependent statement.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -1114 in this set yet.
A form-dependent statement ran without DISPLAY FORM having been executed for the current
window — add the missing DISPLAY FORM call.