finnito - 2 months ago

Hey all,

I'd like to be able to set some default table filters within some custom modules. Is this possible?

Cheers,

Finn

Answer

ryanthompson - 2 months ago

Hmm.. This sounds a little more like views. Can you give us more detail? What values are you defaulting? Is it something like "Unpaid Invoices" that you're trying to show? Something that might be separated a little higher. Default filter values or a query constraint is usually indicative of needing a "table view": https://github.com/anomalylabs/users-module/blob/2.4/src/User/Table/UserTableBuilder.php#L24-L79

ryanthompson - 2 months ago

Hmm.. This sounds a little more like views. Can you give us more detail? What values are you defaulting? Is it something like "Unpaid Invoices" that you're trying to show? Something that might be separated a little higher. Default filter values or a query constraint is usually indicative of needing a "table view": https://github.com/anomalylabs/users-module/blob/2.4/src/User/Table/UserTableBuilder.php#L24-L79

finnito - 1 week ago

Ah yes, that totally looks like what I need. I'll give it a shot today! Thanks Ryan :)

finnito - 1 week ago

@ryanthompson NICE. This is so good. Thanking you greatly!