So my DB has items from multiple users. The datatable is for individual users. I need to use Specification to specify that the query is for a logged in user, which works fine. Now the problem is the total entries.
For example, i have two users, user A has 57 items, user B has 600 items, and the datatable shows this:
Showing 1 to 10 of 57 entries (filtered from 657 total entries)
the total is for both user a and b. But I only want to show this for user a, so I want this:
Showing 1 to 10 of 57 entries (filtered from 57 total entries).
So my DB has items from multiple users. The datatable is for individual users. I need to use Specification to specify that the query is for a logged in user, which works fine. Now the problem is the total entries.
For example, i have two users, user A has 57 items, user B has 600 items, and the datatable shows this:
the total is for both user a and b. But I only want to show this for user a, so I want this:
How to do that?
thanks