Me
|
| Posted: 11/13/2002, 12:55 PM |
|
Can anyone tell me how to do following:
I want the results from a search to be shown on another page than the
one containing the search field. I have tried setting another return page but
it just dont work. it just shows the search page instead and no results.
Or is it possible to have the search page not to show any results when loaded.
as it is now, when the search page is shown it performs a full search, showin all records... how do i prvent that ?
|
|
|
 |
Ken Hardwick
|
| Posted: 11/13/2002, 1:37 PM |
|
You did not indicate which CC product you use or what format you generate your code into..however..for CC/ASP
In Page open event
if Session("SearchFor") = "" then
Session("SearchFor") = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
end if
In Search form Close event
if fldSearchFor <> "" then
Session("SearchFor") = fldSearchFor
End if
Then in your grid set your field input value to Session("searchFor")
So, end result...Grid will search for "XXXXXXXXXXXXXXXXXXXXXXXXXXXX" the first time..so no results...then once the user does a search..it will search for entered value...and even,if user leaves current page, and then returns, the last search values is saved...
|
|
|
 |
Me
|
| Posted: 11/13/2002, 3:14 PM |
|
Ups... I use CCS and PHP
|
|
|
 |
|