Possible to count the result after filter at "backend" ?

Possible to count the result after filter at "backend" ?

0okevino00okevino0 Posts: 1Questions: 1Answers: 0

HI, I'm new to datatables. As a summary, I have 2 tables wrap by "tab" in a page. A "Search" key is pass to this page and will apply as filter for both table. One of the table (Table B) is kind of confidential and only authentic personal have the access. On table B I'll do a pre-search to get the result count without expose data to user. Is that possible? The objective is just to get a count for the filtered result without expose it to user.
Really appreciate if anyone can help me.

Answers

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    On table B I'll do a pre-search to get the result count without expose data to user. Is that possible?

    I'm afraid I don't really understand. If its confidential and you don't want to expose it to all users, why would you have the table on the client-side at all for users who can't access it? And if the table isn't present, you can't query it.

    It sounds like you need to make an Ajax request to the server to get the result count, and the server can process that based on the users access rights.

    Allan

This discussion has been closed.