addedValues Plugin

...Powerful Free! Database Expansion for Manila
logoBottle:

(1 or more words)


Get tropes here!
Click to see internals
Report bug


FemNet

sitepic_femnetscreenshot.gif:
Viewable with Any Browser

Members
Join Now
Login

Search forms and reports

When you use a search form, you can choose to display the search results in a report:

  1. on the same page;
  2. on different pages.

Both involve the use of the addedValueMacros.search macro.

Search form and report on the same page

Let us examine the first case first. Use the form ID of the search form you want to use as the first parameter, and optionally the ID of the search report as the second parameter. The parameter flresultsPage defaults to false, so you don't have to include it. This will make your search results appear on the same page as your search form after the user submits it:

{addedValueMacros.search("mySearchForm","mySearchReport", flresultsPage:false)} 

Search form and report on different pages

In the second case, when we want to submit the search form on one page, and display the search results on a different page, we use the addedValueMacros.search macro twice: the first time on the first page to display the search form, the second time on the second page to display the search results.

On the first page, use the ID of the search form you want to use as the first parameter. For the second parameter, use a shortcut to the page where you want to display the search results. Set the flresultsPage parameter to true:

{addedValueMacros.search("mySearchForm","Shortcut-to-my-Search Results-page", flresultsPage:true)} 

Now, on the page where you want to display the search results, use the ID of the search form as the first parameter again and (optionally) the ID of the search report as the second parameter:

{addedValueMacros.search("mySearchForm","mySearchReport")} 

See also