AutoFiltering with variable parameter

AutoFiltering with variable parameter

cyril_muroncyril_muron Posts: 1Questions: 1Answers: 0

Hello Everybody,

I would like to find a way in order to make a "dynamic" show of a simple table. My table is composed of 3 columns:
1st column : Date
2nd column : Time
3rd column : Name

I would like to make autofilter when showing the table but I don't know how to do this (is there any way to have the name of registered user and put it in autofilter?)
I've used this shortcode : [table id=Planning_2022 datatables_auto_filter="muron cyril" /] which work fine but I would like to automatically replace "muron cyril" by the name of the registered user.

As an additional function, I would like to filter rows which are upper than today. By doing this, old rows will be automatically hidden.

I hope I'm clear. I don't have any idea how to begin this...
Many thanks in advance if someone can help me.
Regards.
Cyril.

Answers

  • kthorngrenkthorngren Posts: 21,348Questions: 26Answers: 4,955

    One option might be to use ajax.data as a function and send the registered user to the server and have the server use that to filter the response. See this example.

    Also the server can filter the row results to include the dates you want.

    Kevin

Sign In or Register to comment.