Hmm.  The request to the server could take a long time.  What would you
want to show in the interim?  Waiting too long for lastResult will cause
the UI to appear stuck.

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of James
Sent: Friday, May 18, 2007 12:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid dynamic toolTips or dataTips

 

I want to get information about the item that is being hovered over. I
don't have this information in memory, I need to get it from the web
server, that requires waiting for a result event from HTTPService
before returning the data I need.

Thanks!

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> dataTipFunction should be the answer, but I don't get what you are
doing
> in the loop. Can you give more detail of what you are trying to
> accomplish?
> 
> 
> 
> -Alex
> 
> 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of James
> Sent: Thursday, May 17, 2007 10:47 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] DataGrid dynamic toolTips or dataTips
> 
> 
> 
> Hi all, my name is James Wilson, I am a flex programmer in the atlanta
> area, new to the list.
> 
> On a datagrid, I'd like to display more information about the item the
> user is hovering over in a tooltip, but I want to get this information
> (a fair bit) dynamically based on a case number/id from the datagrid
> item that is being hovered over.
> 
> The best way I can think of is to do a loop in the dataTipFunction:
> 
> public function myDataTipFunction(e:HitData):String 
> {
> 
> while(httpService.lastResult == null){}
> //return tooltip based on result.
> }
> 
> Surely there is a better way.
> 
> Thanks everyone. Nice to meet you all. :)
> 
> James Wilson
>

 

Reply via email to