Page 1 of 1
Reset previous searched items
Posted: Wed Apr 07, 2021 6:52 am
by mkweiss
Does anyone have any suggestions on how to reset/clear previous searched search panel items? What I would like to see is possible a way to force "cmd=reset" on to each tables' URL.
I would like to be able to clear my search box(s) under the list event. It always shows what I previously search on. I want the search boxes to be blank like what happens when I click the SearchReset button.
Re: Reset previous searched items
Posted: Wed Apr 07, 2021 10:59 am
by mobhar
Does it mean you want to change all the URL to the List page from the related menu items by adding this suffix? cmd=resetall
Re: Reset previous searched items
Posted: Wed Apr 07, 2021 8:28 pm
by mkweiss
Yes, in phpmaker, what section allows me to add the "cmd=resetall" to the list pages?
Re: Reset previous searched items
Posted: Fri Apr 09, 2021 12:27 am
by mkweiss
I can see some of my menu URLs for my list pages have the "cmd=resetall" parameter already added by phpmaker by hovering over the menu items. How can I have all my menus' list pages have "cmd=resetall" added by default?
Re: Reset previous searched items
Posted: Fri Apr 09, 2021 9:26 am
by arbei
You may use MenuItem_Adding server event to change the URL of menu items, see Server Events and Client Scripts in the help file.
Re: Reset previous searched items
Posted: Sun Jul 31, 2022 3:49 pm
by mavel
The ?cmd=resetall url extension appears at the end of some links in the sidebar menu, but not at the end of some links. What is the reason of this? to clear filters, what should i do if i want this extension in all menu items?
What determines in the application whether this url extension will be or not?
Re: Reset previous searched items
Posted: Sun Jul 31, 2022 4:47 pm
by arbei
mavel wrote:
The ?cmd=resetall url extension appears at the end of some links in the sidebar menu, but not at the end of some links. What is the reason of this?
That is for resetting master tables (i.e. tables with detail tables) only.
To change URL of menu items, arbei wrote:
You may use MenuItem_Adding server event to change the URL of menu items, see Server Events in the help file.