Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2E8952009A0 for ; Sat, 21 May 2016 16:19:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2D44B160A04; Sat, 21 May 2016 14:19:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6CD9E160A02 for ; Sat, 21 May 2016 16:19:19 +0200 (CEST) Received: (qmail 82583 invoked by uid 500); 21 May 2016 14:19:13 -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 Delivered-To: moderator for users@flex.apache.org Received: (qmail 58109 invoked by uid 99); 21 May 2016 14:14:12 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Date: Sat, 21 May 2016 06:37:42 -0700 (PDT) From: olav To: users@flex.apache.org Message-ID: <1463837862729-12737.post@n4.nabble.com> In-Reply-To: <1463660519692-12725.post@n4.nabble.com> References: <1463654971555-12721.post@n4.nabble.com> <1463660519692-12725.post@n4.nabble.com> Subject: Re: Datagrid refreshing after HTTPService update MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Sat, 21 May 2016 14:19:20 -0000 Hey Olaf, Thanks for the mentioning!!! Yeah , this solve the case. As far as I know the HTTPService is an asynchronous call which mean that separate calls could take different times to complete. You are right - using the result even handler gives time to the main HTTPService - postRecord - posting the New Record in the Data Base. And after "while" in the Result Even Handler (addRecordMsg(event)) my second HTTPService calls getRecord (gets all records in Data base, including new ones) does the refreshing the Data Grid. This safe me a lot of time. And have to confess - At first i'm an animator and graphic designer. Coding steps after. Thanks again Olav -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Datagrid-refreshing-after-HTTPService-update-tp12721p12737.html Sent from the Apache Flex Users mailing list archive at Nabble.com.