I want to know if it is possible to get an id from wpDataTable record and post it to the api url to get more information because the information is not sitting in one table in the database?
I have a wpDataTable that is reading from a JSON, now when you click on a row i need to show more info/details of the record in a custom page, but for me to get that info i need to pass the id of the record clicked and pass it to an api/url to get the data that i need to display
I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.
You can check out our hooks and filters, and see if there's anything there that could help you develop a custom solution. Also, we have created an add-on that serves that purpose - Master-Detail Tables. Please check it out.
Am currently using Master-Detail Tables would you please advice me to the location of the page that i can customize to get the id from the table when you click to the render the popup, pages and post.
I'm not sure I understand what you're looking for.
The data is being sent with the POST method, so you can use WordPress' hook the_content, where the data can be taken be taken from the POST and forwarded to do_shortcode function. There, our shortcode can be placed with the placeholder %VAR1% like in the following example. Of course, you first need to create an SQL Query based table, where you'll filter the desired column with %VAR1%. Here's the example:
The data of an entire row you clicked on are located in $_POST['wdt_details_data']. The format is that of an array of the pairs the row contains (columnName=value), where 1 is the ID of the table on the Master page, and it needs to replace the columnName with orig header of the column you wish to filter.
This will be added to every page, so you need to add another condition above everything for the posts you need.
Good Day
I want to know if it is possible to get an id from wpDataTable record and post it to the api url to get more information because the information is not sitting in one table in the database?
e.g http://172.10.10.231:81/api/auditfirm/efcc1acf-be49-e611-90c6-f04da24029fd
Hello e
We don't have any API, and I'm not sure I understand what you're trying to achieve.
Can you please provide more details about your inquiry?
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
I have a wpDataTable that is reading from a JSON, now when you click on a row i need to show more info/details of the record in a custom page, but for me to get that info i need to pass the id of the record clicked and pass it to an api/url to get the data that i need to display
Hi again Pulego
I am sorry to disappoint you, but unfortunately something like this is not possible with the plugin's built-in features.
You can check out our hooks and filters, and see if there's anything there that could help you develop a custom solution. Also, we have created an add-on that serves that purpose - Master-Detail Tables. Please check it out.
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
Good Day
Am currently using Master-Detail Tables would you please advice me to the location of the page that i can customize to get the id from the table when you click to the render the popup, pages and post.
I'm not sure I understand what you're looking for.
The data is being sent with the POST method, so you can use WordPress' hook the_content, where the data can be taken be taken from the POST and forwarded to do_shortcode function. There, our shortcode can be placed with the placeholder %VAR1% like in the following example. Of course, you first need to create an SQL Query based table, where you'll filter the desired column with %VAR1%. Here's the example:
The data of an entire row you clicked on are located in $_POST['wdt_details_data']. The format is that of an array of the pairs the row contains (columnName=value), where 1 is the ID of the table on the Master page, and it needs to replace the columnName with orig header of the column you wish to filter.
This will be added to every page, so you need to add another condition above everything for the posts you need.
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