got lot of fields to enter. Still they wanted to save the criteria after they
see the results. The best idea is to provide button in the result screen to
save the criteria document. Here is the procedure to achieve that
functionality.
Easy steps to save the criteria document in result screen
Step 1. Criteria screen should be created with fields CriteriaName and
CreatorName along with the other fields.
Step 2. A view should be created to display the Saved searches.
Step 3. Whenever user clicks on ?Search button?, we should check for the
document with CreatorName as ?###CreatorName###?. If any exists, delete that
document and save the current document with CreatorName as ?###CreatorName###?
Step 4. In the result screen, when the user clicks on ?Save Criteria? button,
check for the document with CreatorName as ?###CreatorName###?. Change the
content of creatorname field with CreatorName and populate the CriteriaName
field. Now save the criteria document
This was first published in November 2000