

Get in touch

Download Plugin Now
  • Follow
  • Follow
WP Data Access
  • Download
  • Support
  • Features
  • Pricing
  • Documentation
    • Tool Guide
    • App Builder
    • Data Explorer
    • SQL Query Builder
    • Plugin Settings
    • Legacy Tools
    • Remote Connections
a
M
M
  • Download
  • Support
  • Features
  • Pricing
  • Documentation
    • Tool Guide
    • App Builder
    • Data Explorer
    • SQL Query Builder
    • Plugin Settings
    • Legacy Tools
    • Remote Connections
Download Plugin Now

App Builder

  • Getting Started
  • App Builder Dashboard
  • Creating your first App
  • Running Apps
  • Export/Import Apps
  • Road Map
  • App Shortcodes
    • Shortcode Usage
    • Shortcode Parameters
    • URL Parameters

App Manager

  • Getting started
  • Supported App Types
  • Supported Languages
  • App Authorization and Access
  • Full-Screen Mode

Table Builder

  • Getting started
  • Relationships
  • Lookups
  • Computed Fields
  • Table
    • Global filter
    • Column filters
    • Bulk Actions
    • Row Actions
    • Column Actions
    • Default where
    • Default Order By
    • Pagination
    • Inline Editing Settings
    • Layout & Responsiveness
      • Responsiveness
      • Density
      • Table Header
      • Table Footer
  • Columns
    • Introduction
    • Column Settings
    • Column Actions
    • Lookup
    • Aggregations
    • Column Metadata
  • Performance
    • Large Table Support
    • Server/Client-Side Processing
  • Filters
    • Global filter
    • Column filters
    • Default where
    • URL parameters
    • Shortcode parameters

Form Builder

  • Getting started
  • Relationships
  • Lookups
  • Computed Fields
  • Form
    • Understanding the Grid
    • Field Layout
    • Column Behaviour
    • Null Value Handling
  • Columns
    • Column Settings
    • Validation
    • Lookup
    • Column Metadata
  • Layout & Behaviour
    • Grid Positioning

Map Builder

  • Getting started
  • Creating a map
  • Using maps

Chart Builder

  • Getting started
  • Creating a chart
  • Using charts

Hooks

  • Getting started with hooks
  • App Hooks
    • global
    • onAppOpen
    • onAppClose
  • Table Hooks
    • customActionsTop
    • customActionsBottom
    • postQuery
    • renderDetailPanel
    • Table Column Hooks
      • render
  • Form Hooks
    • customActionsBottom
    • onRowInit
    • preFormSubmit
    • postFormSubmit
    • Form Column Hooks
      • onBlur
      • onChange
      • onClick
      • onDoubleClick
      • onFocus
      • onKeyDown
      • onKeyUp
  • Built-Ins
    • Overview
    • wpda.log
    • wpda.alert
    • wpda.confirm
    • wpda.snackbar
  • Examples
    • Display specific columns in detail panel
    • Auto-reload table at specific intervals
    • Adding SEO links to table
    • Styling fields with setColumnStyle
    • Hide empty table column
    • Replicate data entered on field into another field

Layout & Styling

  • Fonts
  • Palette
  • Layout
  • Manual Styling (CSS)

Demos

  • Classic Models
  • Student Administration System
  • Data Table

Tutorials

  • Creating a Data Table App
  • Creating a Data Management App
View Categories

Relationships

The following relationship types are supported

  • One-to-one relationship (1:1)
  • One-to-many relationship (1:m)
  • Many-to-many relationship (m:m)

Adding Relationships #

Relationships can be added using the Table Builder or Form Builder

  • Create an app
  • Edit a row
  • Open the Table Builder or Form Builder
  • Access the relationship wizard from the Table or Form menu under Relationships

The Relationship Wizard #

To add a relationship, click the “Start Relationship Wizard” button and follow the instructions. Relationships are added to the bottom of the form. Use the display type to define how relationships are shown. Available display types are Accordion, Tabs, or Titles. Repeat the process to add multiple relationships.

App Builder - Relationship Wizard

Multi-Level Relationships #

The App Builder supports multi-level relationships (e.g., grandparent-parent-child-grandchild). The Table Builder and Form Builder for the master table are accessible directly from the app toolbar. The Table Builder and Form Builder for detail tables are available from the table footer or form footer, respectively.

To add a relationship to a detail table

  • Open the detail table
  • Open the Table Builder or Form Builder for the detail table (button available from the footer)
  • Go to the Relationships section and start the Relationship Wizard

There is no restriction on the number of relationship levels, but keep in mind that a high number of levels requires more resources and can negatively impact performance, especially for users with low-capacity computers.

Notes #

  • Detailed instructions are available in the wizard
  • Deselect only columns containing sensitive data that should not be visible to the user (columns containing non sensitive data can be hidden in the Table Builder and Form Builder allowing to e.g. access these values in computed field)
  • Relationships can be established with both local and remote databases
  • The base table and related tables can be stored in different databases
  • For m:m relationships, the join table must be in the same database as the relation table
  • If the structure of a table changes, click the refresh icon button to apply the new structure
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on 2025-02-11
Getting started

2 Comments

  1. Robert
    Robert on 2024-09-26 at 2:10 pm

    I think there is a bug when creating a DataTable with a relationship with M:M cardinality.
    When i create such a relationship it isn’t possible to hide the columns within the referenced table.

    example:

    company –> employment –> employee

    when i would create the mentioned M:M relationship it isn’t possible to hide the employee’s name/birthdate/etc. You can try to change the visibility but after pressing “apply” the columns are still visible.

    kind regards,

    Robert

    Reply
    • Kim Leong
      Kim Leong on 2024-09-27 at 10:24 am

      Hi Robert,

      Thanks for the comment. We couldn’t reproduce this locally. Could you send us a ticket via Contact and give us more information about the issue?

      We’ll wait for your email!

      Reply

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Table of Contents
  • Adding Relationships
  • The Relationship Wizard
  • Multi-Level Relationships
  • Notes
WP Data Access
  • Follow
  • Follow
Quick Links
$

Blogs

$

Tutorials

$

Demos

Get in touch
$

Premium support

$

Free support forum

$

Contact us

Resources


WordPress plugin directory



YouTube tutorials

Copyright © 2025 | All Right Reserves

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok