I am a Pro user of wpDataTables and interested in the Master-Detail plugin. I had a look at the sandbox and at first it works fine. I am having a question, regarding the detail part.
I am thinking to support a table with several entry and provide a Button per row to allow people edit a number of data associated with the row. I see that the button can actually open a Template Page.
I was thinking to provide a page containing a form that from a linked table, returns the entries that match a specifc value of a foreign key.
Imagine a People/Orders scenario. I am having a wpDataTable for People, for each Person in the People table I provide a button "Orders" and when I click "Orders", I open a page that brings me a table with that Person'sorders.
There must be a good way of doing that. Any hints and/or links are welcome.
Thank you very much Aleksandar! It will require some work from me to apply this method but these are exactly the clarifications I needed at this stage. I will come back to this if it is needed.
I am a Pro user of wpDataTables and interested in the Master-Detail plugin. I had a look at the sandbox and at first it works fine. I am having a question, regarding the detail part.
I am thinking to support a table with several entry and provide a Button per row to allow people edit a number of data associated with the row. I see that the button can actually open a Template Page.
I was thinking to provide a page containing a form that from a linked table, returns the entries that match a specifc value of a foreign key.
Imagine a People/Orders scenario. I am having a wpDataTable for People, for each Person in the People table I provide a button "Orders" and when I click "Orders", I open a page that brings me a table with that Person's orders.
There must be a good way of doing that. Any hints and/or links are welcome.
Best,
Yannis
Hello Yannis
If I understood you correctly, you'd be able to do that with SQL query based tables, using the CONCAT statement, in combination with URL filtering.
You would need to create the other table, though.
So, you have a master table (People) and the child table (Orders).
The People table would need to be a database table, which will be pulled like this:
This will lead you to a table which will be filtered via URL per the second column [1] by the name selected in the first table.
I hope that helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Thank you very much Aleksandar! It will require some work from me to apply this method but these are exactly the clarifications I needed at this stage. I will come back to this if it is needed.
Kind regards
Yannis
You're welcome Yannis
If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables