I love wpDataTables and it is working great for us but I have a general usage question regarding wpDataTables as a watchlist for stocks.
Is it possible for wpDataTables to be configured so each user can enter the unique list of stocks they are following and then retrieve that list (table) in future sessions based on their login? Our code would take care of updating each individual table row with the appropriate stock quote but we would like wpDataTables to handle each user entering their unique list of stocks and storing them for later retrieval.
For users to enter their data, and have that data linked to their User ID, you would need to enable "users see and edit only own data", so their ID is automatically added to an integer column.
Then, you would be able to retrieve that table on the page, showing only the data they've added, without being able to see other people's data.
If you want to allow them to see all data, you would be able to do it in a separate table, using an SQL query. The "MySQL table name for Editing" would be copied from the first table (manual table) - from the Editing tab above the table, and a new SQL table would be created, like:
I love wpDataTables and it is working great for us but I have a general usage question regarding wpDataTables as a watchlist for stocks.
Is it possible for wpDataTables to be configured so each user can enter the unique list of stocks they are following and then retrieve that list (table) in future sessions based on their login? Our code would take care of updating each individual table row with the appropriate stock quote but we would like wpDataTables to handle each user entering their unique list of stocks and storing them for later retrieval.
Is that possible?
Thx,
Gary
Hello Gary
For users to enter their data, and have that data linked to their User ID, you would need to enable "users see and edit only own data", so their ID is automatically added to an integer column.
Then, you would be able to retrieve that table on the page, showing only the data they've added, without being able to see other people's data.
If you want to allow them to see all data, you would be able to do it in a separate table, using an SQL query. The "MySQL table name for Editing" would be copied from the first table (manual table) - from the Editing tab above the table, and a new SQL table would be created, like:
SELECT * FROM wp_wpdatatable_15
That table would display all data.
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