This topic is locked

Show Records when select date in add page

2/19/2019 2:07:11 PM
PHPRunner General questions
G
georgweber author

I would like to do following:

i Have a add page where a have a date field. When i choise a date i would like that open a windows and show all records with the same date.
Is this possible?

admin 2/20/2019

It is definitely possible.
As a first step you need to take a look at how search URLs are constructed. Take a look at this livedemo search that displays all orders for July 19, 1996:

https://xlinesoft.com/livedemo/phprunner/livedemo1/orders_list.php?q=(OrderDate~equals~1996-7-19)
So in your button code you need to read the value of date control, format it as yyyy-mm-dd, prepare the URL of search results similar to one above and open that page in popup.
Get value of an edit control:

https://xlinesoft.com/phprunner/docs/ctrl_getvalue.htm
Opening page in the popup:

https://xlinesoft.com/phprunner/docs/how_to_display_any_page_in_boo.htm

G
georgweber author 2/22/2019

Ok. works. Thank you
If i would like to show the result not in a popup, but yes on the bottom of the add page in the same window?