This topic is locked

ASPRunner 6.2

7/16/2010 2:03:27 PM
ASPRunnerPro General questions
L
luic author

I pick a date field as the quick search field so that it will appear automatically on the list screen. How can I set default value for the quick search field?
Chris.

A
ann 7/19/2010

Chris,
to set up default value for the fields on the quick search panel open generated classes/serachpanelsimple.asp file, find this code:

do while IsLess(i,asp_count(srchFields))



and add following code just before:

if this_object.allSearchFields(j) = "FieldName" and bValue(asp_in_array(ArrayElement(this_object.allSearchFields,j),this_object.panelSearchFields,false)) then

srchFields(asp_count(srchFields)-1)("value1") = "FieldValue"

end if



where FieldName is your actual field name and FieldValue your actual field value.