Name

findrecentmodels — creates rows in a table managed form with pull-down menus containing details of recently added models and a search box to be fed to findmodel

Synopsis

use Wacs;
use Wacs::WacsStd;
findrecentmodels(...); 
 

Parameters

parameterdescription
offsetthe number of days in the past to consider as recent. Defaults to the current value of layout->newperiod if not specified.
defaultThe default model number if known.
dbhandlepointer to the currently active database handle
cgihandlepointer to the currently active CGI object

Summary

The findrecentmodels function creates rows in a table managed form with pull-down menus containing details of recently added models and a search box to be fed to findmodel. The method selected by the user for specifying their response will be stored in a CGI variable called modmeth which will have one of these values: specify, recent or search. If their response is specify the modelno will be in a CGI variable called spec_modelno. If their response is recent, the modelno will be in a CGI variable called recent_mod. If the value is search the findmodel function should be called passing the CGI variable search as the mname parameter.

Availability

findrecentmodels is only available in perl at this time. This function was introduced in WACS 0.8.5.