Save state

Save state

guillermovilguillermovil Posts: 20Questions: 5Answers: 0

Good evening, In one datatable row, I click Edit action and it takes me to a new page with an editing form. In this form by pressing the update button, I want to return to the datatable with the options of: page number, search and sorting I had before I left. Is that posible? How?
Thank you in advance. And sorry for my english.
(I'm working with php)
Guillermo

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    edited September 2019

    Hi @guillermovil ,

    stateSave should do the trick for you,

    Cheers,

    Colin

  • guillermovilguillermovil Posts: 20Questions: 5Answers: 0

    Thank you very much Alan, I did read about statesave but it doesn't help me because when the user submits the form, I call the page that contains the table and it reloads from 0, without the state it was in.
    I set the options "stateSave": true,
    Could it be because my table is serverside type?
    Is there another way to force the parameters?

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    As this example here show, stateSave works fine with serverSide.

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • guillermovilguillermovil Posts: 20Questions: 5Answers: 0
    edited September 2019

    Thanks Colin, sorry but I don't know how to build the test environment with serverside and navigation to another page.
    Unfortunately I cannot give access to the developing system.
    Anyway I appreciate the intention to help.

This discussion has been closed.