This topic is locked
[SOLVED]

 Start the list page with a filtervalue on the Filter Panel

7/8/2014 6:59:13 PM
PHPRunner General questions
W
wedi author

Hello.
Is it possible to start the list page with a filtervalue at the filter panel?
Example:

Every row has a field named StatusID which has possible values between 1 and 6. In "Filter as" the field is selected as "Add to Filter Panel" with "Allow multiple selection - always". When the user opens the list page for the first time, the value 2 should be selected for StatusID on the filter panel and of course, the rows should be filtered for that value.
I hope you can imagine what i mean.

Thanks wedi

N
nti 7/9/2014

do this in "Query Designer" Filter = 2

W
wedi author 7/10/2014

Thanks for your suggestion nti,
but what i want is to simulate a click in the checkbox of Filter=2 on the Filter Panel at the first time the list page was opened. With Filter=2 in the Query Designer, i get only rows with Filter=2 and can not filter other values between 1 and 6.
Hope you unterstand what i want.

wedi

Sergey Kornilov admin 7/10/2014

Proceed to Menu Builder, modify this menu item adding filter parameter to the URL i.e.

f=(StatusID~equals~2)
W
wedi author 7/12/2014

Hello Sergey, thanks for your reply, but it doesn't works for me in 2 ways. (The Pagename is ExT_Projektliste)

  1. When i open the Menu Item Editor and click on the '...' Button right in the line of 'Link to:' and add f=(StatusID~equals~2), the URL was build like this:

    ExT_Projektliste_list.php??f=(StatusID~equals~2)

    I think that's one ? to much. Is that a know bug in the current version?
  2. i think, the filter criteria works on every click on the menu item of ExT_Projektliste. It should only set the filter criteria for the first start of ExT_Projektliste.
    BUT with your tip, i found a workaround for me:
    In the event 'After successful login' i add a redirection to ExT_Projektliste_list.php?f=(StatusID~equals~2) and that works!
    Thanks for your help.

    wedi