2 Replies Latest reply on May 17, 2009 10:21 AM by kergadic35

    httpservice databinding




      After having resolved a first databinding problem (with some help ), I have another databinding problem.


      I have declared this HttpService :


      <mx:HTTPService id="flightService"




      dateDepartInput is a DateField component. What I want is initialize this component before sending the request if necessary. So I have written this method


         public function search():void {
                      requestType = "search";
                      if (dateDepartInput.selectedDate == null) {
                          dateDepartInput.selectedDate = new Date()





      When I call this method, the date field is initialized but the first HTTP service call is in error because the databinding isn't right yet. How can I resolve this issue ?


      Thank you