Hey there, Awesome Customers!

Just a heads up: Our team will be out of the office on Monday, November 11th in observance of Armistice Day, but don’t worry—we'll be back in full swing on Tuesday, November 12th.

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.

Thanks a bunch for your understanding and support!

Warm regards,

TMS

Okay
  Public Ticket #1886149
Can I make a way to filter by year, and sport like:
Closed

Comments

  • Mark Spector started the conversation

    I want to display our winning data like the way they do in the example url of this ticket.

    Is there a way to give users on the front end the ability to see data by year and sport?

    Also the chart below it thats connected to the table.

  • Mark Spector replied

    Also how can I structure the data in the table to be able to get this result. Right now what I did as a test was create a manual table for NFL and I added the columns Bet Type, Record, Win %, Money Won, ROI in it. I have not figured out where to put the Years in the table.

    The ideal option is anyway that people can sort by year and sport to see the data Bet Type, Record, Win %, Money Won, ROI specific to that year/sport

  • Mark Spector replied

    Im looking at this example table: https://wpdatatables.com/documentation/table-examples/monthly-summary-report-temperature/

    I see the dropdown for period, so Im thinking how would I structure the data to have Sport/Year drop downs with their options and have a table with the columns Bet Type, Record, Win %, Money Won, ROI showing below?

  •  2,572
    Aleksandar replied

    Hello Mark.

    There are a few ways of achieving this. Although, it may not look exactly the same as it does in the example URL.

    Let's say you have six tables: "NFL", "NBA", "MLB", "NCAAF", "NCAAB", and "NHL". You'd store all this data for each table individually, so all six tables would have "Year", "Bet Type", "Record", "Win %", "Money Won" and "ROI".

    Those buttons that would allow you to select a sport would be generated by either JS, CSS or some button-generating plugin. It'd call the table by using its shortcode, and then change the display for each sport. Then, years would be displayed by using filters. Chart for each table would have to be made separately, and every sport would have a separate webpage where the table's and chart's shortcode would be, and "Follow table filtering" would have to be turned on in order for chart to follow the years when you click on a filter. You can read more about charts in our documentation.

    The other way of doing this would be to have a single table with all sports in it. Then all those buttons would simply be filters, and it may be even easier to do. You need a column for each sport, and then a column for each year. In order to use cascade filtering, so you can only choose a year if you select a sport, you'd need to acquire Powerful Filters and use them on that table.

    Basically a table consisting of all the data you need would be filtered on the same page by using filters and cascade filtering so you only have one table and one chart.

    I hope this helps.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Mark Spector replied

    Hi Aleksander

    I did something like your 2nd suggestion, but I have concerns. Please see: https://prosportsinsider.com/test

    The columns I made were this: https://take.ms/Ny4lU4

    I tried to make a chart to go along with the table, but the chart did not allow me to have 2 columns that are strings so I was not able to have years on the x part of the chart and money won on the y part of the chart. https://take.ms/49u11

    How do I do this? Do I need to make additional columns and what do they need to be?

    Also below the chart on https://www.sportsinsights.com/sports-betting-systems/

    There is a table that displays all of the picks for the different sports that were made. When you switch between sports and time range, the table changes. Also the table has a button below it that displays more of the table because the table is really big. https://take.ms/T3hUc

    How would I do this?

    Is it possible to create another table with the same data that switches when you filter by sport or time range? And is it possible to have a button below it to show more?

    Any addons or service you offer that will get us the desired result, is welcomed. Im looking at the powerful filters. Its a good suggestion because it offers more ways to displaying our data. Tx.

  •  2,572
    Aleksandar replied

    Hi Mark.

    I tried to make a chart to go along with the table, but the chart did not allow me to have 2 columns that are strings so I was not able to have years on the x part of the chart and money won on the y part of the chart.

    I'm guessing you set the "money won" column be string because of the $ character, correct? It needs to be an integer column, so you'd be able to use it. You can add the $ sign as a default cell prefix, under column settings:

    3103820396.png

    Powerful filters is a great add-on, but please read more about it in our documentation before purchase, to see if it fits your needs.

    As for having another table with the same info - yes that is possible. You can either create a new table by Generating a query to MySQL database, and then use the table you already have by selecting its name (it can be found under "Editing", when you enable "Allow front-end editing" slider - the name is usually wp_wpdatatable_#).

    However, one filter cannot filter through multiple tables - global filter is not available, so You'd need a new filter for this Copy of the existing table.

    Basically, the final result cannot be the same, but something similar is doable. Unfortunately some limitations, like global filters, and default behavior of charts cannot be changed.

    Also, please note - if your table is very big, the chart may not render or the table load will time out (usually after a couple of thousand rows).

    I hope this helps.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Mark Spector replied

    Hi Aleksanar,

    Sorry Im just responding back, it took me a long time to get all of the data complete. Is there a way to make the table rows nice and fat - https://take.ms/rsDFf

    Is there a setting to increase the size of the rows with the bigger font size?

  • Mark Spector replied

    Also is there a way I can style these filters: https://take.ms/yjTCZ

  • Mark Spector replied

    Hi Aleksandar

    Please forget about the last 2 questions I asked regarding styling. I found a way to style the css and for now its working for me.

    I have a more important question regarding filtering. In the example url https://prosportsinsider.com/test/

    The first filter is for sport and the second is for time range. For some sports e.g. NFL football the game season starts at the end of the year and finishes in the beginning of the following year. So an example of a date range select option for NFL would be: 2018-19, but for MLB baseball the full game season is in a single year, e.g. 2018, 2019, etc. Can I have the time range options change according to the sport you pick? I understand thats something cascading filters does. But I also need the table to be at default sport: NFL time range: since 2010 until you pick something different from the select options. If you choose baseball, the options in the time range dropdown will change (2018, 2019, etc.).

  •  2,572
    Aleksandar replied

    Hi Mark.

    You're correct - cascading filtering from Powerful Filters would be able to do this.

    If you want the filter default value to be NFL, you can change it in the column's settings:

    6008199960.png

    So just set the Predefined value to be "NFL" and it'll load that by default.

    Same goes for the year column.

    Again, for the options to change based on the sport, you'd need the cascading option.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Mark Spector replied

    Predefined filters is grayed out when you have cascading filters checked -  https://take.ms/3mJCs

  • Mark Spector replied

    How can I remove the empty value from the dropdown? https://take.ms/scJt8

    For the table Im making to work, It must have a sport and time range value. Null is not an option because it shows the rows of ML/Spread, OU, and Overall Results repeating for every record which is not like:

    https://www.sportsinsights.com/sports-betting-systems/

    I have to remove this empty value https://take.ms/DqXyO

  • Mark Spector replied

    Hi Aleksandar

    As you can see Im up early writing another message. This issue has stopped my whole process. Just note, I purchased the plugin and the powerful filters addon and spent a ton of time (all day yesterday till bedtime) playing with all of the settings, uninstalling reinstalling, reading documentation and searching forums. If I am not able to achieve this removing empty value in the selectbox that you guys implement as a table reset, all of the time and money I spent will be for nothing.

    The only reference I found to something related to my issue which can be found nowhere in the documentation is this: https://take.ms/EnLPC

    Please help me remove the empty value in the selectbox. Please respect me as a paying customer. If I get an answer like "im sorry , you cannot do that with built in functionality of wpdatatable" its the biggest slap in the face i can get because i did everything a responsible customer should do, I read, I tested, I invested wisely, I asked questions and somehow Im still here. Please help me.

  •  2,572
    Aleksandar replied

    Hi Mark.

    Before answering all your questions, can you please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check Private Reply so nobody can see them except us.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •   Mark Spector replied privately
  •   Mark Spector replied privately
  •  2,572
    Aleksandar replied

    Hi Mark.

    I removed the blank space from the select box. Please clear cache and perform a hard reload of the table if it doesn't apply right away.

    Please save this, because you'll have to do it again once the plugin updates:

    You have to make some changes in code. In file wp-content/plugins/wpdatatables/assets/js/wpdatatables/wdt.columnFilter.js: around line 667 you will find this:

    select += '<option value="">' + ' ' + '</option>';
    

    and you have to comment it like this:

    //select += '<option value="">' + ' ' + '</option>';
    

    Also, you have to set option Number of possible values to load to All on Data tab in column settings. 

    You're correct about the powerful filters - when cascading is selected, there's no way of entering a pre-defined value.

    Unfortunately, this is implemented in the code of the plugin, and can't be changed that easily. This is achievable with some custom work, which unfortunately isn't covered in the included support of the plugin. We can offer you our paid customization service where you can hire one of our developers to implement this feature for you. If you are interested please let me know, and I can send you quote for this service.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Mark Spector replied

    If predefined value is not an option for the select box is there a different way to do this:

    Sport: NFL

    Time Range: Since 2010, 2010-11, 2011-12, 2012-13

    Sport: MLB

    Time Range: Since 2010, 2010, 2011, 2012, 2013,

    When you choose MLB, the time range options for NFL will not be in the dropdown

    That is the reason I bought the plugin, and I am not sure how to work around that. Any suggestions?

  • Mark Spector replied

    ** No Need to reply to this ** 

    I see there is not search box in the selectbox anymore

    Only issue left is the message below this one ( MLB Time Range )


    If I want to remove the searchbox in the selectbox do I remove this from the same file? (line 700)

    // Add event to perform search on selectbox change
        select.on('change.selectChange', function () {
            selectboxSearch.call(jQuery(this));

  •  2,572
    Aleksandar replied

    Hi Mark.

    No, unfortunately it can't be changed there.

    The search appears for limited Number of possible values to load. So, again, you have to set option Number of possible values to load to All on Data tab in column settings for it to remove the search.

    And again, make sure to delete cache and perform a hard reload to apply the changes if they don't apply right away.

    As for conditional formatting:

    IF sport column is set to NFL, Time range column should display Since 2010, 2010-11, 2011-12, 2012-13 - unfortunately conditional formatting between columns is not possible.

    So, custom work for Powerful Filters would be the only way to have cascade filtering enabled.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Mark Spector replied

    On the front end it still has the empty value in the dropdown

    http://prosportsinsider.com/test/

    Its not there in the admin area - https://take.ms/7W3qV

    I dont know what cache needs to be removed. I cleared all wordpress cache and my browser is clean. Its still there

    and no cache on the reverse proxy nginx on the server

  •  2,572
    Aleksandar replied

    Sorry, Mark.

    I forgot to mention that "Use minified wpDataTables Javascript" slider has to be disabled for the feature to work on front-end.

    I apologize for that. I've disabled it, and now the empty value is hidden from front-end as well.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  •  2,572
    Aleksandar replied

    Here's the attachment of the settings.

    Best.


    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Mark Spector replied

    Thank you it works.

    Im just not sure why I bought powerful filters now if it doesn't set predefined values. Because that was the reason I bought it, to fix the time range issue between MLB and the other sports. It was told to me that way thats why I bought it. Are you saying there is no way predefined values can work for it somehow in some way, today tomorrow etc?

  •  2,572
    Aleksandar replied

    Good to hear that it works, Mark.

    There is a way predefined values can work with Powerful Filters, but it would require changing a few .js, .css and .php files in the code. So, it's not as simple as commenting lines of code, etc. and that's why it falls under customization which is offered through paid custom work.

    You can take a look at ../wp-content/plugins/wdt-powerful-filters/assets/js/wdt.pf.backend.js

    If you were to change the following line of code (around line 126) from:

    .prop('disabled', true)

    to:

    .prop('disabled', false)
    

    You will be able to set a pre-defined value. And the table will filter with these predefined values.

    However, let me show you an example:

    Predefined values for SPORT and TIME RANGE are there and the table filters correctly. You will not be able to select the rest of the filters until you select a different value for SPORT filter, and switch back to NFL. Same goes for TIME RANGE.

    For instance, you change the line of code mentioned above, and you enable predefined value while using cascade filtering; so you have two predefined filters:

    NFL; Since 2010; THIRD FILTER; FOURTH FILTER

    Since 2010, THIRD and FOURTH filters will still be disabled, even though the Since 2010 is loaded. So, you need to click on another value in SPORT (for instance NBA), then click back on NFL to be able to select the "Since 2010" again.

    You're welcome to explore the .js and .php files and to try and make it work.

    Other than that - again, we can offer paid custom service for us to implement this.

    The reason Predefined values don't work with Cascade filtering is simply because it would allow users to select a predefined value for a column and then try to apply the cascade logic - so if a user sets a predefined value for the third column, cascade filtering becomes non-cascade filtering - obsolete function.

    The issue has been forwarded to our development team, and we added the idea to our list, to enable pre-defined filtering at least for the free (independent) filtering.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Mark Spector replied

    Hi Aleksander

    When you set 

    .prop('disabled', false)

    the cascade logic does not work anymore. The goal is to only show the select options for Time Range: that MLB has records for. So if you choose MLB, you should not see 'all' possible Time Range options -  https://take.ms/qKQUG only MLB  Time Range options that there are records for.

    Sport: MLB

    Time Range: Since 2010, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019

    Sport: NFL

    TIme Range: Since 2010, 2010-11, 2011-12, 2012-13, 2013-14, 2014-15, 2015-16, 2016-17, 2017-18, 2018-19

    I will see if I can find somebody to look at it. Will this be fixed in the future? If yes, I can try to make select options that both nfl and mbl can use but it will not look 100% accurate. How much money does this cost to fix?

  •   Mark Spector replied privately
  •  2,572
    Aleksandar replied

    Hello again Mark.

    The price for customization is $50 per hour.  If you are interested please let me know, so I can forward the request to our developers, and if they have time to do it I'll send you a quote for the service with the final price.

    Best regards.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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