stateSave and stateDuration set to -1, nothing in session

stateSave and stateDuration set to -1, nothing in session

nWidartnWidart Posts: 4Questions: 2Answers: 0
edited February 2015 in Free community support

Hello,

I would like to access the current state. I've set the bStateSave to true, and stateDuration to -1.

But when performing a search operation and dumping the $_SESSION, nothing about datatables is present.

But it does save the state somewhere, because after a page reload it remembers the search query. It doesn't refill the input though, that's why I'd like to access the current state.

Thank you,

Answers

  • nWidartnWidart Posts: 4Questions: 2Answers: 0
    edited February 2015

    From what I understand it saves in the HTML5 sessionStorage.

    But, when searching on a specific column, the columns.#.search.search key is empty.
    It works though when using the global search. Then the search.search key is correctly set.

    I'm setting the search options like so:

    table.fnFilter(value, columnIndex);
    

    Where the columnIndex should be the # in the sessionStorage columns.#.search.search key.

    Any tips ?

    Thanks

This discussion has been closed.