How To Change the Default Search Type in the PaperVision ASP.NET Application from Or to And.


Version: R69 and Above

Article ID: PE000090

How To Change the Default Search Type in the PaperVision ASP.NET Application from Or to And.main image

Description

It is possible to change the default search type for the ASP.NET application by making a simple change in the javascript source code.

Summary

  1. On the application server find the PVEWebjavascript directory and open pveProjectSearch.js in Notepad.
  2. Click EditàFind and type in lastSearch.SEARCHTYPE = "Or"; and click Find Next. Make the following changes to the line:From:lastSearch.SEARCHTYPE = "Or";

To:

lastSearch.SEARCHTYPE = "And";

  1. Save the file. Note: If you are unable to save the file, you may need to right-click on the file and select Properties and uncheck Read-only in the Attributes section and click OK before it will allow you save.
  2. Start a new browser session and delete the existing cookie (if applicable). The search type will now default to “Andbut will still retain the user’s last search type if cookies are supported and enabled by the browser.