in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Personify Error Message

Last post 11/12/2008 1:55 AM by Brian (Developer Express). 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 11/8/2008 10:45 AM

    Personify Error Message

    Hello,

    When I create a new appointment, I want to verify some stocks. For example, I must verify if the date is not on a day of repose.

    So when  I click on the button I want to verify this, so wath is the method I must be use to do it? And is-it possible to have an error as an error who appear when a value is null?

    Thanks for your answers.

  • 11/12/2008 1:55 AM In reply to

    Re: Personify Error Message

     Hello Nicholas,

    you can add your own JavaScript validation function to the appointment editing form template. To insert your own scripts in custom templates, construct a name for the script block using a magic prefix "dxss_".  If you do so, it will be merged with the JavaScript code inserted in the page to which the template will be rendered and, therefore, will be available on the client side.

    The other approach is to implement your own save command. Create a class, inherited from the AppointmentFormSaveCallbackCommand, and perform the required operations within its code. Please review the Custom form, custom fields and custom actions on reminder alert Code Central example which illustrates how to use the ASPxScheduler commands.

    Also I suggest that you review the "Server side validation message in Custom appointment form " article which can be found at: www.devexpress.com/issue=Q181420, the "Save Custom Appointment but don't close Custom Appointment Form" article which can be found at: www.devexpress.com/issue=Q109260, the "How to reopen the form when it gets save" article which can be found at: www.devexpress.com/issue=Q131299.

    Regards, Brian.
    R&D, .NET Team, Developer Express Inc.
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED