Actually, if you guys notice, even with doing executeBindings(true), the Legend doesn’t update. But the Legend has a binding to the chart (which updates) and the chart has a binding to the data…in my chart:

displayName="{cf.format(model.theTotal[5])}"

Chart updates, Legend doesn’t show. So I do this…

<mx:Button label="Click" click="theLegend.dataProvider=salesChart;Alert.show('Data:'+cf.format(model.theTotal[5]),'Alert',Alert.OK);"/>

The Legend shows up, but the displayNames are empty (but that Alert shows the right data). Then if I specifically set the displayName in code to the exact same thing it is above, the legend updates. So…

1) Chart updates
2) Legend doesn’t show
3) Set Legend DP
4) Legend colors show, displayNames don’t (probably thinks they’re empty from binding?)
5) Set displayName in chart to exact same as it is already
6) Legend display correct info.

Man this whole binding model is jacked in this instance
J Datagrid and everything else works fine, but Charts don’t unless I do executeBindings(true), but that doesn’t update the Legend which is binded to the chart, so I have to reset the dataprovider of the Legend and then reset all the displayNames of the charts for the legend to register the change.

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"Try not to become a man of success, but a man of value." - Albert Einstein

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda
Sent: Thursday, March 30, 2006 9:14 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Cairngorm problem

 

I already sent ya mine but I think Renaun or Peter Blaze had a smaller example…

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"Try not to become a man of success, but a man of value." - Albert Einstein

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin
Sent: Wednesday, March 29, 2006 10:31 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Cairngorm problem

 

Joe B found another bug related to binding and initialization, maybe we’re running into something similar.  If anyone has a simpler example that uses binding into a chart (one that I can submit as a bugfile) that would be great.  The smaller the better because debugging binding when there is a lot of it is very difficult, trust me J

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonathan Miranda
Sent: Wednesday, March 29, 2006 8:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Cairngorm problem

 

Yeah it seems to work, and thanks guys for looking into this….

Any ideas why I would have to do this though for just the chart?

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"Try not to become a man of success, but a man of value." - Albert Einstein

HealthGrades: Guiding America to Better Healthcare™

NASDAQ: HGRD

w  (720) 963-3832

c  (707) 761-0868

[EMAIL PROTECTED]

_________________________________________

The message contains confidential and/or legally privileged information and is intended for use only by the indicated addressee.  If you are not the named addressee you should not disseminate, distribute, or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmissions cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed,arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Renaun Erickson
Sent: Wednesday, March 29, 2006 12:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Cairngorm problem

 

Johanthan and Peter,

I finally got a chance to test the code.  I confirm the spardic
LineChart bind issue with HTTPService's url accessing a cfm and a php
file.

I also confirm Peter's solution by using "executeBindings".  Basically
import mx.core.Application and add this line of code at the bottom of
SalesCommand's onResult function
"Application.application.executeBindings(true);".

I only had the time to confirm these two things.  I didn't find any
more information to narrow it down.

Renaun

--- In flexcoders@yahoogroups.com, "Peter Blazejewicz"
<[EMAIL PROTECTED]> wrote:
>
> hi Jonathan,
>
> calling Application.application.executeBindings(true) within orginal
> StatsCommand onResult handler make your example working fine for me
> (when requesting data from jsp dynamic page),
>
> regards,
> Peter Blazejewicz
>










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to