Page 1 of 1

reload page without losing Filter

Posted: 2023-02-08 08:12
by mcvaidas
is possible to reload table not full refresh? how can i save last filter options? location.reload() clears all filters and as result i have full table

Re: reload page without losing Filter

Posted: 2023-02-08 14:07
by D Oliveira
if you want dynamic control with JS:

Code: Select all

$j(function(){
    setInterval(function(){
        $j('table').parent().load('tablename_view.php?SortField=5&SortDirection=desc table', function(){
        	// do something after reloading the table view
        });
    }, 10000);
})
https://bigprof.com/appgini/help/advanc ... parameters

Re: reload page without losing Filter

Posted: 2023-02-08 14:43
by mcvaidas
Thank you, but this is simple part of table refresh with sortField but still Lose my selected filter (search plugin)
D Oliveira wrote:
2023-02-08 14:07
if you want dynamic control with JS:

Code: Select all

$j(function(){
    setInterval(function(){
        $j('table').parent().load('tablename_view.php?SortField=5&SortDirection=desc table', function(){
        	// do something after reloading the table view
        });
    }, 10000);
})
https://bigprof.com/appgini/help/advanc ... parameters

Re: reload page without losing Filter

Posted: 2023-02-08 15:53
by D Oliveira
you'd have to save filters on cookies with localStorage on filter page and check those cookies on your table-tv.js file to execute the .load()