This topic is locked

default values

11/20/2019 10:50:22 AM
PHPRunner General questions
F
franzrueh author

Hallo, I am a complete newbie with respect to phprunner but I hve managed to create my fist site without too many difficulties. Nevertheless, i have encountered the following problem: I have create a dasboard with search, list and details - so far so good. In the search form it is possible to define defaul values für the search criteria - there are two on my search panel. However, when the dasboard opens/loads, the default values do not work, the list page is not restricted to the data filtered by the default values defined.

Thank for your help!
franzrueh

Sergey Kornilov admin 11/20/2019

Default search page values are not supposed to run the search. They are used to prepopulate search fields and nothing else.
You can filter the list page initially passing search/filter parameters via URL. Run the search on that List page manually, copy the URL and use it as list page URL in the dashboard.

F
franzrueh author 11/20/2019

Sorry, but the default values I enter do not even prepopulate the two search fields - tey stay blank.

And how can I rund the search on the list page manually and use it als list page URL in the dashboard? As I've said I am a newbie and no programmer.
franzrueh

S
Steve Seymour 11/20/2019

I think this is what is trying to be done....
Two fields in the search panel.

example, name and account_id
These can be passed on the URL

table_list.php?q=(search_field1~contains~VALUE1)(search_field2~contains~VALUE2)
ie. searching a customer table on fields account_id and name

passing account_id M005 with name Chapman
customer_list.php?q=(account_id~contains~M005)(name~contains~Chapman)
Calling this URL will open the customer_list page with the two search fields populated with the passed values

and will do the search.

F
franzrueh author 11/20/2019

Thanks halcyondaze, I have managed to do the search/filter having this URL: http://localhost:8087/v9_list.php?q=(Spielklasse_ID~equals~5)(saisonID~equals~1)&f=all - But the problem ist that the dasboard is called: http://localhost:8087/tabelle_dashboard.php - how can I "use it as list page URL in the dashboard" as Sergey writes in his answer?
franzrueh

S
Steve Seymour 11/21/2019



Thanks halcyondaze, I have managed to do the search/filter having this URL: http://localhost:8087/v9_list.php?q=(Spielklasse_ID~equals~5)(saisonID~equals~1)&f=all - But the problem ist that the dasboard is called: http://localhost:8087/tabelle_dashboard.php - how can I "use it as list page URL in the dashboard" as Sergey writes in his answer?
franzrueh


Depending on what you are displaying on the dashboard, you could have a button in a grid, or a code snippet displaying a Link perhaps ?

F
franzrueh author 11/21/2019

Sergey, I managed to run the search manually and copy it and use it as a list page Url - and it works! But it doesn't work, if the list page is an element of a dashboard. Can you or somebady else explain to me how it works if the list page is an element of a dashboard?
Please help!
franzrueh