dwelsh
|
| Posted: 11/07/2002, 12:34 PM |
|
I am working on an Open PO list.
How would I redirect the search to a 'Invalid PO' page if a search was executed with a PO number that does not exist?
Right now it pulls up the Open PO page with the fields empty.
|
|
|
 |
RonB
|
| Posted: 11/08/2002, 4:12 AM |
|
Could you please provide some more info (database, programming language, what the hell does PO mean etc 
|
|
|
 |
dwelsh
|
| Posted: 11/08/2002, 5:47 AM |
|
Im using ASP and VB.
A PO is a Purchase Order.
If a user was to type in a invalid PO, I would like them rediredted to a page with the text Invalid PO.
Right now if they type in an invalid PO from the search page, it show the PO page empty.
|
|
|
 |
EMG
|
| Posted: 11/08/2002, 6:12 AM |
|
CC or CCS?
|
|
|
 |
dwelsh
|
| Posted: 11/08/2002, 8:44 AM |
|
CodeCharge Studio
|
|
|
 |
xbill
|
| Posted: 11/08/2002, 11:19 AM |
|
The quickest way is probably to use
custom events in CCS and the counting
records feature.
On the destination page- add some custom
code to get the count of the matched record set.
To use custom events- check the help or
browse through some old articles in this forum.
Custom event handling was completely reworked
in CCS vs. CC.
The logic is something like:
if the count of the found records is 0 then
page redirect to a new page.
Some sample counting record code can be
found at:
http://www.gotocode.com/art.asp?art_id=230&
You can put the counting code in the
"Before Show" event on the search result page.
-bill
|
|
|
 |