Bret
Posts: 13
|
| Posted: 08/09/2006, 10:59 AM |
|
Using CCS v2.3 and ASP - how can I display the validation error messages in a javascript Alert window? Users are not seeing the messages and closing form thinking data is saved. I can do client side validations - but how can I accomplish this with CCS and have the Alert popup with all the validation messages?
Any suggestions would be appreciated.
Thanks,
Bret
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 08/09/2006, 11:05 AM |
|
In the Properties of the field you want validated.
Event Tab.
Gives you the onValidate event where you can do this.
You can right-click the OnValidate to get basic standard available actions, using one of the validatian actions gives you an example on how to set your own.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
Bret
Posts: 13
|
| Posted: 08/09/2006, 11:18 AM |
|
Thanks Walter.
I have been using this - in the OnValidate I populate the .Errors.addError("Error Text") and this displays in the form's Error section (<!-- Begin Error --> {Error} <!-- End Error -->
But what I need to do is when the form reloads to display the {Error} in a javascript Alert window (to get in the user's face). They are not reading the big red error message as displayed on the form.
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 08/09/2006, 11:30 AM |
|
Sounds like we have the same customers ( )
I am not in to ASP but have a look at the ConfirmDeletion message action, that should give you the needeed popup.
Our {errors} is set through a style sheet to display red text on yellow backround.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
Bret
Posts: 13
|
| Posted: 08/09/2006, 12:39 PM |
|
<-- see next post -->
|
 |
 |
Bret
Posts: 13
|
| Posted: 08/09/2006, 12:39 PM |
|
Will do - but what I was hoping was for a CodeCharge staff member to tell us how to use the Errors collection. I have placed the following in just about every spot I can imagine .. (Record/Grid name is CorrectiveActionID)
If CorrectiveActionID.Errors.Count > 0 Then
Response.Write("Errors have occurred! ")
Response.Write(CorrectiveActionID.Errors.Count)
Response.End
End If
Response.Write(CorrectiveActionID.Errors.Count)
Record.beforeShow, Record.AfterExecuteSelect, field.beforeShow, etc
Errors.Count is always 0 - yet the code in the main asp page displays the error text.
If I can figure out how to manipulate the Error class - I can get the pop ups to work. There are other questions in the forum along these same lines that have been unanswered.
|
 |
 |
WKempees
|
| Posted: 08/10/2006, 8:12 AM |
|
from anoteher thread in dot net:
Response.Write("<script language=""javascript"">alert('your record has been
updated. thank you')</script>")
"Bret" <Bret@forum.codecharge> schreef in bericht
news:644da22855afc4@news.codecharge.com...
> Using CCS v2.3 and ASP - how can I display the validation error messages
> in a
> javascript Alert window? Users are not seeing the messages and closing
> form
> thinking data is saved. I can do client side validations - but how can I
> accomplish this with CCS and have the Alert popup with all the validation
> messages?
>
> Any suggestions would be appreciated.
>
> Thanks,
> Bret
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |