sDbDateEdit min – maxdate not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #32942
    shadow_tj
    Participant

    When i set the Min and maxdate in the create of the form.
    the min and maxdate is not working.

    When i set the mindate on EncodeDate ( 2009, 1, 1 ) and the Maxdate on ( 2009, 12, 31 ).
    then i can still select dates outside that range.

    when i select 1-1-1978 then its going to 1-1-1978 instead of the 1-1-2009, and thats the min date.
    also i can outside the max range..

    Using alphaskins 6.31

    #39176
    Support
    Keymaster

    Yes, you are right, but entered data must be controlled by DataSet constraints.. What you think?

    sDBDateEdit control was derived from sCustomDateEdit control and have MinDate and MaxDate properties inherited. Problem may be easy solved if sDBDateEdit control will have the CheckOnExit property published like sDateEdit control, but maybe constraining in DataSet will be better?

    #39198
    shadow_tj
    Participant

    mmm we do not much wich restrictions on database.
    all restrictions are made in the application.

    but when you set a min max date, why not restrict that.. because its a propertie, you expect that it is working <img src="style_emoticons//smile.gif” style=”vertical-align:middle” emoid=”:)” border=”0″ alt=”smile.gif” />

    QUOTE (Support @ May 13 2009, 08:30 AM)
    Yes, you are right, but entered data must be controlled by DataSet constraints.. What you think?

    sDBDateEdit control was derived from sCustomDateEdit control and have MinDate and MaxDate properties inherited. Problem may be easy solved if sDBDateEdit control will have the CheckOnExit property published like sDateEdit control, but maybe constraining in DataSet will be better?

    #39199
    Support
    Keymaster

    QUOTE (shadow_tj @ May 13 2009, 01:02 PM)
    mmm we do not much wich restrictions on database.
    all restrictions are made in the application.


    I mean conditions which may be defined in the TDataSet (in application).

    QUOTE
    but when you set a min max date, why not restrict that.. because its a propertie, you expect that it is working <img src="style_emoticons//smile.gif” style=”vertical-align:middle” emoid=”:)” border=”0″ alt=”smile.gif” />


    In the next release CheckOnExit property will be published and will work like in TsDateEdit control.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.