This topic is locked

How to call list page with some search criterias?

1/15/2009 8:15:21 AM
PHPRunner General questions
D
Default author

Hi,

I am going to add quick navigation feature to a list page, generated by PHP Runner. Suppose a students table. I want to add listboxes on the top that will allow user to choose quickly faculty, course and group. I have 2 question concerning this:

  1. could this task be accomplish by using a code snippet (which adds above-mentioned listboxes to the page), or it is necessary to completely rewrite list page?
  2. how to pass selected search criterias to list page?

    Thak you in advance.

J
Jane 1/15/2009

Hi,
unfortunately there is no easy way to create dependent dropdowns on the list page.

As workaround use Advanced search page and set up faculty, course and group as dependent dropdowns on the "Edit as" settings dialog on the Visual Editortab.

D
Default author 1/15/2009

Hi Jane,

I know that is not an easy task. I am going to create form and handle dependent values myself. I simply wander, if i insert above code in list page as a snippet, would it work, or there are some other limitations?

I have examined list.php file and as it seems to me to perform search one must set $_REQUEST["a"]=="advsearch", but I am not sure how to set additional fields (which names to use and how). If there is some small tutorial link, I would appreciate it very much.

J
Jane 1/16/2009

Hi,
you can insert simple dropdowns on the list page using custom events.

To link these dropdowns and set up it as dependent you need to edit generated files manually and write custom JavaScript code. Unfortunately we don't have a ready to go solution for this.