Filter list on demand with dropdown |
8/14/2010 11:32:02 AM |
PHPRunner Tips and Tricks | |
F
FunkDaddy author
OK. So, this post elaborates on the tip provided in he online manual found here: http://xlinesoft.com/phprunner/docs/add_dropdown_list_box_with_values_for_search.htm
|
|
![]() |
romaldus 8/18/2010 |
OK. So, this post elaborates on the tip provided in he online manual found here: http://xlinesoft.com/phprunner/docs/add_dropdown_list_box_with_values_for_search.htm ...........
|
F
|
FunkDaddy author 9/6/2010 |
Romaldus, I can't share the screenshot of the app because I'm developing in "stealth mode". Realistically, there isn't a need to view the screenshot... all you will see differently on the screen is an added dropdown box.. .whenever you change the value the list refreshes and loads the new filtered list value. |
R
|
Ricky001 9/27/2010 |
OK. So, this post elaborates on the tip provided in he online manual found here: http://xlinesoft.com/phprunner/docs/add_dropdown_list_box_with_values_for_search.htm There are several other posts in the main PHPR forums that talk about this "feature", but I decided to create a tip & trick entry to help clarify how to use it properly. When I first used this sample code I was a litle confused because I needed to filter a list via a dropdown, but the values of the dropdown needed to be pulled from a different list and used as the values to filter the current list where I needed the dropdown filter box added. The online manual example seems to assume that you are populating the dropdown with values from the current list. This would be fine if the list had unique values... it would act as a defacto "quick" search box without having to press the actual search button to process the request (since the dropdown triggers the action onChange). However, if the list contained records that had columns with similar values (such as "Product_Selected") then the dropdown would populate with those values several times, showing duplicates and making an inordinately long dropdown list). Anyhow, enough background info, heres the scenario I needed to address:
|
F
|
FunkDaddy author 3/30/2011 |
NEW AND IMPROVED VERSION BY AUTHOR!
|
E
|
electromotive 10/18/2011 |
Keeping the value after you refresh the page...
|