Okay
  Public Ticket #1078135
Restricting data to a table
Closed

Comments

  •  3
    hypercubemd started the conversation

    Hello,

    I have created several tables and I have run into a situation where I need to dynamically filter data going into one of the tables i have created. For example column has data A, B and C entries only and I want to see is there is a way to limit the data populated to only one of the three names based on a userlogin. I was hoping there is a way with some php coding that could entered somehow. Is this possible?

    Thanks for your help!


  • [deleted] replied

    Hi hypercubemd,
    Thank you for the purchase.

    Unfortunately populating filters based on user login is not possible out of the box, but it can be done with plugin customization. 

    If you are using Server-side tables you can take a look at these two functions and customize it by your needs:

    getColumnFilterDefs() in file ../wpdt.plugin/wp-content/plugins/wpdatatables/source/class.wpdatatable.php 

    and

    getFilterType() in file ../wp-content/plugins/wpdatatables/source/class.wpdatacolumn.php