- You can split the values up individually, to use in a filter, even if they are pulled together in the same cell,
here is an example.
The table pulls the values from all cells, so since you have multiple values together in one cell, it sees it as a unique value.
What you can do is open this column's settings, go to the Data tab. In there, change "Possible values for column" from "Read from table on page load" to "Define values list":
Then, in the "Values list", manually input the individual values that should be included in this column, and that's it. It should allow you to select each value on the filter, as an individual selection.
; here is the resulting filter multiselectbox of this example:
If you need more details, please contact us for further info. Thanks.
Great! I will try this. The table has 100,000 records. When I select a value for the filter it doesn’t bring any results back. Do I need to change processing to local or is there another setting. Thanks for all of your help!
If it has 100 thousand records, i presume it might be an SQL Query Based Table,
but that is only available in the premium version of our Plugin, and you opened a Pre-Purchase Ticket, so i can't see if you have a premium Plugin or Lite version?
-
If you have an SQL Query based Table, then it might be an issue with our SQL Parser for filtering/search in the table.
Could you show me the SQL Query that was used for this table - and I can advise if maybe some small modification/correction is needed to get the search to work?
-
But you can also check these points to save time if you wish.
Our logic is based on a PHP SQL parser which has full support for the SQL dialect for the following statement types
Filtering, sorting, and search may not work properly if you include:
Accent graves ( ` ) around the table name
JOIN functions
UNION functions
CONCAT functions
sub-queries
-
So, first you can check for accent graves around the table name, if you have this, remove it...
Then, see if you used CONCAT to create any column.
If so, go into this column setting, and disable it from "global search" in the Filtering tab.
-
-
If none of that helps,
you can try preparing a MySQL view (which will return the data that you need, call it e.g. “view1” and then build a wpDataTables based on a simple query like "SELECT * FROM view1″.
If you need help with that, you can see our video, where we show an example of using View in our plugin.
-
Let me know If that helped, and i can take a look at the Query, as well.
I have a database table with a field that contains several values. For example:
Apple, Orange
banana
Apple, orange, grape
I want to make the field a multi select filter so the drop-down shows:
Apple
orange
banana
Grape
I need the field values to be able to be comma delimited. Is this possible? In airtable it recognizes the field as a multi select.
Thank you
Hi, Andy.
- You can split the values up individually, to use in a filter, even if they are pulled together in the same cell,
here is an example.
The table pulls the values from all cells, so since you have multiple values together in one cell, it sees it as a unique value.
What you can do is open this column's settings, go to the Data tab. In there, change "Possible values for column" from "Read from table on page load" to "Define values list":
Then, in the "Values list", manually input the individual values that should be included in this column, and that's it. It should allow you to select each value on the filter, as an individual selection.
; here is the resulting filter multiselectbox of this example:
If you need more details, please contact us for further info. Thanks.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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
Great! I will try this. The table has 100,000 records. When I select a value for the filter it doesn’t bring any results back. Do I need to change processing to local or is there another setting. Thanks for all of your help!
Hi, Andy.
Can you tell me what is this Table type?
If it has 100 thousand records, i presume it might be an SQL Query Based Table,
but that is only available in the premium version of our Plugin, and you opened a Pre-Purchase Ticket, so i can't see if you have a premium Plugin or Lite version?
-
If you have an SQL Query based Table, then it might be an issue with our SQL Parser for filtering/search in the table.
Could you show me the SQL Query that was used for this table - and I can advise if maybe some small modification/correction is needed to get the search to work?
-
But you can also check these points to save time if you wish.
Our logic is based on a PHP SQL parser which has full support for the SQL dialect for the following statement types
SELECT, INSERT, UPDATE, DELETE, REPLACE, RENAME, SHOW, SET, DROP, CREATE INDEX, CREATE TABLE, EXPLAIN and DESCRIBE.
Some of them are disabled for security reasons.
Filtering, sorting, and search may not work properly if you include:
-
So, first you can check for accent graves around the table name, if you have this, remove it...
Then, see if you used CONCAT to create any column.
If so, go into this column setting, and disable it from "global search" in the Filtering tab.
-
-
If none of that helps,
you can try preparing a MySQL view (which will return the data that you need, call it e.g. “view1” and then build a wpDataTables based on a simple query like "SELECT * FROM view1″.
If you need help with that, you can see our video, where we show an example of using View in our plugin.
-
Let me know If that helped, and i can take a look at the Query, as well.
Thank you
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
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