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 47214100B6 for ; Mon, 1 Dec 2014 20:06:49 +0000 (UTC) Received: (qmail 23115 invoked by uid 500); 1 Dec 2014 20:06:49 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 23087 invoked by uid 500); 1 Dec 2014 20:06:48 -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 23075 invoked by uid 99); 1 Dec 2014 20:06:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 20:06:48 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,PLING_QUERY,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of modjklist@comcast.net designates 69.252.207.35 as permitted sender) Received: from [69.252.207.35] (HELO resqmta-ch2-03v.sys.comcast.net) (69.252.207.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Dec 2014 20:06:42 +0000 Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-03v.sys.comcast.net with comcast id NL5T1p0032Ka2Q501L6NTQ; Mon, 01 Dec 2014 20:06:22 +0000 Received: from resmail-po-271v.sys.comcast.net ([162.150.177.26]) by resomta-ch2-11v.sys.comcast.net with comcast id NL6M1p00V0aZMgq01L6M9m; Mon, 01 Dec 2014 20:06:22 +0000 Date: Mon, 1 Dec 2014 20:06:21 +0000 (UTC) From: modjklist@comcast.net To: "users, apache" Message-ID: <161431994.5943375.1417464381556.JavaMail.zimbra@comcast.net> In-Reply-To: <812F1EBEEF9C1440A641A67CB91E793A01317CD782@DE00WS028.d1.edscha.org> References: <1630280457.4732147.1417317167454.JavaMail.zimbra@comcast.net> <482006642.5611199.1417443626017.JavaMail.zimbra@comcast.net> <812F1EBEEF9C1440A641A67CB91E793A01317CD782@DE00WS028.d1.edscha.org> Subject: Re: AW: how to updateDisplayList() in custom headerRenderer? (help!) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5943374_1127480046.1417464381555" X-Originating-IP: [::ffff:50.0.44.165] X-Mailer: Zimbra 8.0.7_GA_6031 (ZimbraWebClient - SAF7.1 (Mac)/8.0.7_GA_6031) Thread-Topic: how to updateDisplayList() in custom headerRenderer? (help!) Thread-Index: AQHQDXItmDQGtdKCxEyHjo0WYs8spZx60yUwbIjGk0o= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1417464382; bh=K0IWEL6JYM6g1Qo+UR3Yxi6sPd4W4So3mEGTOSFfUQ8=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=beHEuC5KYQOcVT+dTn27lCT+tDiH2GPpPUl4aLEGYXnSIlHVT6arKRCpuuF/aHtsi DoknlGMatlimWJ2WUORl644AQS9T6fo2utb/CFJwDUZwKjStCtqYSYI0e14fqGkF/J j0Usfr/eqvVQsJNzWlB7agg5M3rsKxrRtNYwpRwIz28kuLTarThaCk+e91CiEVPmfE HCOQ+p5Mpx1rrrBULXvY4111HuLJa23QDBoYH/8PD8n+67hkzXBoefhFTE+auYFcNv 8JZlh0d72Wv99PCo61BL54nrclz5W1tlGWorzmslrg4/pzT0u0JqheBEcH1eurLGpK XmUArwiHRAMxw== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_5943374_1127480046.1417464381555 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Olaf,=20 I tried to implement by making a public bindable variable "myCondition" in = the header renderer and then binding it to the TextInput text property (e.g= . ).=20 but I get the same results -- the variable myCondition is correctly transfe= rred to the header renderer the FIRST time it is created, but after that, c= hanges to variable myCondition in the main application do not show up in th= e header. Any idea what I'm doing wrong?=20 ----- Original Message ----- From: "Olaf Kr=C3=BCger" =20 To: "users, apache" =20 Sent: Monday, December 1, 2014 6:59:35 AM=20 Subject: AW: how to updateDisplayList() in custom headerRenderer? (help!)= =20 If your question is "How to pass additional data to an item renderer" this = could work for you:=20 (Take a look at the links to understand how it works)=20 /**=20 * Pass additional data to a Renderer=20 *=20 * @see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/m= x/core/ClassFactory.html=20 * @see http://stackoverflow.com/questions/528796/flex-sending-a-parameter-t= o-a-custom-itemrenderer=20 */=20 public static function createHeaderRenderer (renderer:Class, myCondition:Nu= mber):IFactory=20 {=20 var factory:ClassFactory =3D new ClassFactory(renderer);=20 factory.properties =3D { myCondition: myCondition };=20 return factory;=20 }=20 =E2=80=A6=20 =20 =E2=80=A6=20 -----Urspr=C3=BCngliche Nachricht-----=20 Von: modjklist@comcast.net [mailto:modjklist@comcast.net]=20 Gesendet: Montag, 1. Dezember 2014 15:20=20 An: users, apache=20 Betreff: Re: how to updateDisplayList() in custom headerRenderer? (help!)= =20 Hello again, I haven't got any response and was just hoping I could entice = someone to review my question below.=20 The code implements a textbook method to update the client model when someo= ne changes the text in a spark TextInput located in a header renderer. This= works fine. I just need to know a textbook method to go the other directio= n -- that is, how to programmatically update the text in the TextInput? I'm= sure there's some standard way to do this, but I can't figure it out. Any = hints much appreciated. I've tried to copy all the relevant code below.=20 ----- Original Message -----=20 From: modjklist@comcast.net=20 To: "users, apache" =20 Sent: Saturday, November 29, 2014 7:12:47 PM=20 Subject: how to updateDisplayList() in custom headerRenderer?=20 I'm using 4.12 SDK and trying to update a headerRenderer that includes a Te= xtInput. Things works fine when the component is initialized. But thereafte= r, when I change the model such that the text showing in the TextInput box = should change, the text doesn't change.=20 Can someone help me figure out how to programmatically refresh the header r= enderer TextInput text using function updateCondition() in file MyView.mxml= below?=20 I've tried create a temp IFactory for the header renderer, null the origina= l one, then save the temp back to the original, but this didn't work. Also = tried invalidateDisplayList() on myGrid (didn't work either).=20 Here's MyHeaderRenderer.mxml:=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 and here's MyGrid.mxml:=20 =20 =20 =20 [Event(name=3D"myConditionChanged", type=3D"flash.events.Event")] =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 and finally, here is MyView.mxml:=20 =20 =20 ...=20 =20 =20 =20 =20 ...=20 =20 ________________________________=20 Edscha Holding GmbH=20 Sitz der Gesellschaft: Remscheid=20 Registergericht: Wuppertal, HRB 22889=20 Gesch=C3=A4ftsf=C3=BChrung: Francisco J. Riberas Mera, Francisco L=C3=B3pez= Pe=C3=B1a, David V=C3=A1zquez Pascual, Torsten Greiner, Markus Kirchner, H= ans-Peter Schulz und Volker Weiss=20 Vertretungsberechtigt sind nur Gesch=C3=A4ftsf=C3=BChrer und schriftlich Be= vollm=C3=A4chtigte.=20 Solely Managing Directors or employees with a written proxy have got power = of representation.=20 Der Inhalt dieser E-Mail einschlie=C3=9Flich etwaiger beigef=C3=BCgter Date= ien ist vertraulich und nur f=C3=BCr den Empf=C3=A4nger bestimmt. Sollten S= ie nicht der bestimmungsgem=C3=A4=C3=9Fe Empf=C3=A4nger sein, ist Ihnen jeg= liche Offenlegung, Vervielf=C3=A4ltigung, Weitergabe oder Nutzung des Inhal= ts untersagt. Bitte informieren Sie in diesem Fall unverz=C3=BCglich den Ab= sender und l=C3=B6schen Sie die E-Mail einschlie=C3=9Flich etwaiger beigef= =C3=BCgter Dateien von Ihrem System. Vielen Dank.=20 The contents of this e-mail including any attachments are confidential and = may be legally privileged. If you are not the intended recipient, any discl= osure, copying, distribution or use of its contents is strictly prohibited,= and you should please notify the sender immediately and then delete this e= -mail including any attachments from your system. Thank you.=20 ------=_Part_5943374_1127480046.1417464381555--