Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68CE41013A for ; Thu, 26 Sep 2013 13:35:40 +0000 (UTC) Received: (qmail 58539 invoked by uid 500); 26 Sep 2013 13:35:39 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 58296 invoked by uid 500); 26 Sep 2013 13:35:38 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 58287 invoked by uid 99); 26 Sep 2013 13:35:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 13:35:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shervin.asgari@webstep.no designates 74.125.82.50 as permitted sender) Received: from [74.125.82.50] (HELO mail-wg0-f50.google.com) (74.125.82.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 13:35:30 +0000 Received: by mail-wg0-f50.google.com with SMTP id f12so1190104wgh.5 for ; Thu, 26 Sep 2013 06:35:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=PfcES0DfcVFXAaCkLGpyRuwLyNHJS1S2XJ2PW1J8i2g=; b=BSrKF4vS3OrZjzBsLiR+6Vt2pXXckmriLV13Gv9gxhrFbnfj2WahAdVW5Bk2+4fpuF bCVB5QwnStPh/8duiRyfAwbOalPMmYjCpTBHmG5HVbq25AM122LHBRJvrwgT0boMkBvk ngzmVqKelrOWLZDVLrWuaB1NHlhTwuy5973zoh4KsaX3jvRl9JQe6oDqTALzo1JlkImd MJW8IhIOOcA35DUeW51NK1YdHtxiaOWtq+at1MKnYrmzy/l/i3oSZBqcFrh/4UiKnXGO u9VyH+dOG3CGqqkIN5u3L70C6+M1hqTUg0h4qdYfYAtBWt5QtUZbQ1cGDRMQGv917CRw Kz8Q== X-Gm-Message-State: ALoCoQlF5awKgyxI4CWgmYqOY2GE3+5+5rVUNyQ5D4dno24OMnPWBPq/LueSnkr5MulxgzIjo+04 MIME-Version: 1.0 X-Received: by 10.180.9.45 with SMTP id w13mr986028wia.0.1380202509872; Thu, 26 Sep 2013 06:35:09 -0700 (PDT) Received: by 10.194.37.227 with HTTP; Thu, 26 Sep 2013 06:35:09 -0700 (PDT) In-Reply-To: <3B222F2E298C7C45ACC98C05DCA6BECD4A1D6D3384@ECCR13PUBLIC.exchange.local> References: <3B222F2E298C7C45ACC98C05DCA6BECD4A1D6D3384@ECCR13PUBLIC.exchange.local> Date: Thu, 26 Sep 2013 15:35:09 +0200 Message-ID: Subject: Re: Validate two fields in a validator From: Shervin Asgari To: users@flex.apache.org Content-Type: multipart/alternative; boundary=001a11c24aca51c0e604e7497035 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c24aca51c0e604e7497035 Content-Type: text/plain; charset=ISO-8859-1 This is what I have tried to do unsuccessful for now. I will keep at it. The startRange seemed like a good idea, but I haven't made that work yet. I have tried to do something like this: inputDate.selectableRange = {rangeStart: otherInputDate.selectedDate}; However when I click the calendar button, it shows the year as 0 Clearly something is wrong 2013/9/26 christofer.dutz@c-ware.de > As you Need to validate if the date field changes or the reference date > changes, you will Need to build a custom Validator which you can then bind > to both fields. > > Chris > > ________________________________________ > Von: Shervin Asgari [shervin.asgari@webstep.no] > Gesendet: Donnerstag, 26. September 2013 14:14 > An: users@flex.apache.org > Betreff: Validate two fields in a validator > > Hi. > > I have a date validator on each field which validates if they are a correct > date. > However, in one of the two date fields, I need to validate if it is after > the other date. > > So this means I have to somehow get the other inputfield date in my > validator. > I have tried to do this using a listener on the other field, but it > retrieves null. > > Any ideas how I can do this? > > Shervin > --001a11c24aca51c0e604e7497035--