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 42B25C082 for ; Thu, 25 Jul 2013 12:16:40 +0000 (UTC) Received: (qmail 59449 invoked by uid 500); 25 Jul 2013 12:16:39 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 59318 invoked by uid 500); 25 Jul 2013 12:16:39 -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 59010 invoked by uid 99); 25 Jul 2013 12:16:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jul 2013 12:16:39 +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 (athena.apache.org: domain of marrtinmiko@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-la0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jul 2013 12:16:35 +0000 Received: by mail-la0-f52.google.com with SMTP id fq13so483445lab.39 for ; Thu, 25 Jul 2013 05:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=WDDdB7dLZGLPGsjyuYY5iwQyY4AvoA/zIpXa0D0wgvw=; b=EkUlvvxyvKZvO5Wm9XK7d/oZRjXsRJPRT0T+pZ9/JzBzeQamlVd3YI8pzg9urkkqHm 0q5SHRurEARYVRJp6R8wRZ8zrjSTqbf2PTXnEgkEwukR6pHwpb/rJSCRvWc3fMIxmei9 dBcpgxDo+ZaVoHv/szXS1pEaqcJYwehz7Oo4tSzNO22bYwl3rLx21HP5IEiifxf/+s4t iDu+srJFaWvspdj3CbWvRXtbiFxjEHTvxk2zOQVc2a8cAvgouJjccijsGD04BxMLZc9d mG0EHCPI+aNrOTPpGT9rh+ZUKWfWmflIPdfyE2jeJTkPiMeEAm5E++T0Z91b4hLEiH34 FJfA== MIME-Version: 1.0 X-Received: by 10.152.25.169 with SMTP id d9mr18948374lag.63.1374754573700; Thu, 25 Jul 2013 05:16:13 -0700 (PDT) Received: by 10.152.19.101 with HTTP; Thu, 25 Jul 2013 05:16:13 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Jul 2013 14:16:13 +0200 Message-ID: Subject: Re: Building Spark DataGrid dynamically From: Martin Miko To: users@flex.apache.org Content-Type: multipart/alternative; boundary=089e0158b20204d20f04e254fee9 X-Virus-Checked: Checked by ClamAV on apache.org --089e0158b20204d20f04e254fee9 Content-Type: text/plain; charset=ISO-8859-1 Could you post a code sample? I've seen many strange things, but you must be doing something really funny there. On Thu, Jul 25, 2013 at 1:39 PM, Oleg Konovalov wrote: > Full exception trace with numbers: > > TypeError: Error #1009: Cannot access a property or method of a null object > reference. > > at > spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\ > dev\4.5.1\frameworks\projects\spark\src\spark\components\gridClasses\G > ridLayout.as:867] > > at > spark.components.gridClasses::GridLayout/measure()[E:\dev\4.5.1\frame > works\projects\spark\src\spark\components\gridClasses\GridLayout.as:44 4] > > at > spark.components.supportClasses::GroupBase/measure()[E:\dev\4.5.1\fra > meworks\projects\spark\src\spark\components\supportClasses\GroupBase.a > s:1148] > > at > mx.core::UIComponent/measureSizes()[E:\dev\4.5.1\frameworks\projects\ > framework\src\mx\core\UIComponent.as:8496] > > at > mx.core::UIComponent/validateSize()[E:\dev\4.5.1\frameworks\projects\ > framework\src\mx\core\UIComponent.as:8420] > > at > spark.components::Group/validateSize()[E:\dev\4.5.1\frameworks\projec > ts\spark\src\spark\components\Group.as:1012] > > at > mx.managers::LayoutManager/validateSize()[E:\dev\4.5.1\frameworks\pro > jects\framework\src\mx\managers\LayoutManager.as:665] > > at > mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frame > works\projects\framework\src\mx\managers\LayoutManager.as:816] > > at > mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5 > .1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180 ] > > > On Thu, Jul 25, 2013 at 12:17 AM, OmPrakash Muppirala > wrote: > > > Moving topic to "users" list. > > > > Oleg, you will get a better response in this forum for questions like > > these. Please make sure you are subscribed to users@flex.apache.org to > > see further responses. You could do so by sending an email to > > users-subscribe@flex.apache.org. > > > > Thanks, > > Om > > > > > > On Wed, Jul 24, 2013 at 9:12 PM, Oleg Konovalov > wrote: > > > >> Hi, > >> > >> I am building a screen with one Static DataGrid and one Dynamic (data > >> comes > >> through SOAP > >> and I do not know the number of columns or their names in advance). > >> I also get a list of column names in order from another SOAP call. > >> > >> That Dynamic DataGrid works (converting data from Vector of Objects to > >> ArrayList of Columns). > >> > >> I still have a few problems: > >> > >> > >> 1) I need to implement "Clear" of that Dynamic table. > >> > >> No matter what I tried: > >> > >> arrayColl=null; > >> > >> arrayColl.removeAll(); > >> > >> arrayColl = new ArrayCollection(); > >> > >> myDG.dataProvider=null; > >> > >> myDG.dataProvider=new ArrayCollection(); > >> > >> I am getting NULL reference exception coming from some system code: > if > >> (cell.visible)... where cell is null. > >> > >> How can I clear that dynamic DG ? > >> > >> > >> > >> full exception stack: > >> > >> TypeError: Error #1009: Cannot access a property or method of a null > >> object > >> reference. > >> at spark.components.gridClasses::GridLayout/updateTypicalCellSizes() > >> at spark.components.gridClasses::GridLayout/measure() > >> at spark.components.supportClasses::GroupBase/measure() > >> at mx.core::UIComponent/measureSizes() > >> at mx.core::UIComponent/validateSize() > >> at spark.components::Group/validateSize() > >> at mx.managers::LayoutManager/validateSize() > >> at mx.managers::LayoutManager/doPhasedInstantiation() > >> at mx.managers::LayoutManager/doPhasedInstantiationCallback() > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> 2) It seems that by default that Dynamic DG puts columns in > alphabetical > >> > >> order, which is of course not what I need. > >> > >> Any way to disable that or fix somehow? > >> > >> > >> > >> > >> 3) I need to show 2 DGs on the screen, and the second of them is > Dynamic, > >> > >> and allow user to resize them vertically to be able to see more in > static > >> or dynamic DG. > >> > >> I put them in VDividedBox (and set height of both DG and container to > >> 100%). > >> > >> It split the screen vertically 50:50, but still there is no draggable in > >> between, > >> > >> so can't resize. > >> > >> > >> > >> Any help is very appreciated. > >> > >> > >> > >> > >> TIA, > >> > >> Oleg. > >> > > > > > > > -- > Thank you, > Oleg. > -- Martin Miko --089e0158b20204d20f04e254fee9--