• Resolved markw1066

    (@markw1066)


    I seem to be missing something with the set up of responsive master detail tables. I have read the documentation and viewed the demo, but I just can’t seem to get it working. Details as follows :

    Master table is based on a table, the Details table is based on a View. The relationship columns are the ‘id’ column in the Master data table and the ‘id_elect_master’ column in the details data table.

    In the Advanced Settings of the Master data table I have the following code entered, where ‘Electoral_Detail’ is the name of the details data table and 22 is the id of this data table:

    {
    	"initComplete": "function( settings, json ) { wpda_init_master_detail( settings, json, 22, 'Electoral_Detail', 'id', 'id_elect_master' ) }",
    	"drawCallback": "function( settings ) { wpda_nav_master_detail( settings, 22, 'Electoral_Detail' ) }",
    	"select": {
    		"style": "single",
    		"selector": "tr"
    	},
    	"pageLength": 12
    }

    I have added the short code of the Master Data Table to a WP page, but when I click on a row in the displayed master table no details table is displayed.

    Do I also need to add the short code of the details data table to the same page ??

    Many thanks
    Mark W

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Kim L

    (@kimmyx)

    Hi @markw1066,

    Thanks for the post!

    Yes, you need to add both master and detail table shortcodes on the page.

    Only the master table will show up on the initial page load.

    Let us know how it goes. ??

    Thread Starter markw1066

    (@markw1066)

    Thanks Kim, but that doesn’t work. If I add the short code of the details table to the same page both master and detail grids are displayed on page load and all data in the details table is displayed.

    Link to page is here if needed : https://www.pictonheritage.org.au/?page_id=3234

    Note, only rows 1,2 & 3 in the master table are currently linked to records in the detail table as we are still in the process of uploading the other detail data to the site.

    Many thanks
    Mark

    Plugin Contributor Kim L

    (@kimmyx)

    Hi @markw1066,

    Thanks for the response. Do you currently have a premium version of the plugin?

    This feature is not available on the free version.

    If you’re on premium, kindly send us a message at Contact | WP Data Access so we can assist you more thoroughly.

    We’ll wait for your email!

    Thread Starter markw1066

    (@markw1066)

    Hi Kim,

    Yes I have the premium version, will send message as requested, thanks

    Mark W

    Plugin Contributor Kim L

    (@kimmyx)

    Hi @markw1066,

    Thank you! We’ve responded to your email.

    Please check. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Responsive Master Detail Issue’ is closed to new replies.