Welcome Guest, Not a member yet? Register   Sign In
Keep table filtering while adding new item.
#1

[eluser]_krc_[/eluser]
Hi guyz.

I've been having this problem since the beginning of coding in CI..

For example, I have a table (with items) on the page, I click "Add new item", so that the page reloads, showing add form together with table.. then I submit form, so the page reloads again submitting data and showing back the table.

So now.. how can I have the table filtered during all this time?

Usually when I open index page, the filtering data is taken from the url routing and I don't want the filter data to be passed in url when adding/editing item.. so is there any other way to do this? I'm running out of ideas ;/

Thanks
#2

[eluser]dudeami0[/eluser]
Could set some variables inside the form containing the filtering info, like:

Code:
<input type="hidden" name="filterA" value="filtersHere" />
<input type="hidden" name="filterB" value="moreFilters" />
...

Then check which to use when making the table (From either segments or POST data). One possible solution Smile




Theme © iAndrew 2016 - Forum software by © MyBB