Work with table occurrences and relationships

A table occurrence is a named representation of a base table on the relationships graph. Layout contexts and calculation formulas evaluate across table occurrences, which allows multiple occurrences of the same base table to represent distinct relational contexts.

Add a table occurrence

Specify the base table and intended relational context to the coding agent:

Copy
Add an Orders table occurrence for the customer-detail context and relate it to Customers using the existing primary and foreign keys.

The agent applies project standards when generating occurrence names. When multiple key fields or contexts exist, specify the exact match fields rather than letting the agent infer them.

Define relationships

A relationship joins two table occurrences using one or more match criteria. Verify the left and right table occurrences, field pairs, comparison operators, and relationship options before approving changes.

Options such as creating related records or cascading deletes alter data behavior throughout the solution. The agent must summarize these settings explicitly before committing changes.

Organize the graph

ADK can position table occurrences and manage relationship graph text notes. These visual adjustments improve graph readability without altering relational data. Keep organizational changes separate from functional schema changes to simplify review.

Verify context

After creating or updating relationships, have the agent re-read the affected occurrences from the file. Verify that layouts and calculation objects reference the intended occurrence, as an incorrect layout context produces invalid relational results.

See Create layouts for data access for layout context requirements in Web Viewer apps.