Informix Error -2957: You may not set the next field to that-tag because none of its associated database columns belong to the same table as this-tag.
Cause and resolution
You may not set the next field to that-tag because none of its associated database columns belong to the same table as this-tag.
The field that is named in a NEXTFIELD statement must be associated with the same table as the current field. Review the relationships between columns and tables in this form, and revise it.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-2957 fires when a NEXTFIELD statement names a target field associated with a different
table than the current field — per the official guidance, the field named in NEXTFIELD must
be associated with the same table as the current field.
- A
NEXTFIELDtarget field belonging to a different table than the current field, per the official guidance — the direct, only cause.
Solutions / Resolution
- Review the relationships between columns and tables in the form, and revise it, per the
official guidance, choosing a
NEXTFIELDtarget that shares the current field's table.
Examples
A NEXTFIELD target in a different table
INSTRUCTIONS
AFTER FIELD ordnum
NEXTFIELD cust_name
END
-- -2957: ordnum is from orders, cust_name is from customer
Corrected
INSTRUCTIONS
AFTER FIELD ordnum
NEXTFIELD order_date
END
Diagnostic Checks
- Check the table each field's associated column belongs to, and confirm every
NEXTFIELDtarget shares its table with the current field.
Related Errors / Related Topics
- -2956 — "You may not set display field field-tag to a value because none of its
associated database columns belong to the same table..." A closely related table-scoping
restriction, applied to
LETassignments rather thanNEXTFIELDnavigation.
A NEXTFIELD target belongs to a different table than the current field — choose a target
sharing the same table.