Using different instances of Datatables depending on user

Using different instances of Datatables depending on user

blackace227blackace227 Posts: 1Questions: 0Answers: 0
edited April 2013 in General
Hello!

I had a quick question relating to datatables and its ability to change depending on the user. I have a real estate site and would like each user to have their own table to enter in their address of their properties etc. Is this possible to do in datatables?

For example

Logging in as Jim:

House address phone number
my house 123 lane 222-222-2222

Logging in as bob:

House address phone number
his house 142 lane 333-333-3333

The users do not know about each others table and cannot edit delete etc another person's table entries.

Thank You!

Replies

  • allanallan Posts: 63,230Questions: 1Answers: 10,416 Site admin
    If you are using Editor for the editing abilities, you could use the `where` condition to limit access: http://editor.datatables.net/docs/current/php/class-DataTables.Editor.html#_where .

    If not using Editor, then the answer is likely to be the same regardless of if you have a plain HTML table or if you are using DataTables - the data you load and the data which is editable is independent of DataTables, it is up to the rest of the system to tell it what data to show.

    Allan
This discussion has been closed.