Previous Topic: Specify Attributes in the Search Results

Next Topic: Task Selector Page Customization

Customize the Results Per Page

The Registration Services search page includes a #Records per page field that allows administrators to select the number of results that are displayed per page.

You can customize the items that appear in the #Records per Page list box in the profile_search_init.jsp. The code that determines these items appears below:

<select name="N_MAX_ITEMS">

.

.

.

<option value="5" <% if (searchResultLines <= 5)
                        out.print("selected"); %> >5</option>

<option value="10" <% if ((searchResultLines > 5) &&
                        (searchResultLines <= 10)) out.print("selected"); %> >10
                        </option>

<option value="20" <% if ((searchResultLines > 10) &&
                        (searchResultLines <= 20)) out.print("selected"); %> >20
                        </option>

<option value="50" <% if (searchResultLines > 20)
                        out.print("selected"); %> >50</option>

</select>

In these statements:

To modify a number in the #Records per Page list, modify one of the option statements, as follows:

<option value="30" <% if ((searchResultLines > 20) &&
                        (searchResultLines <= 30)) out.print("selected"); %> >30
                        </option>