Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-07-2006, 07:27 PM   #1
stonyx
Registered User
 
stonyx's Avatar
 
Join Date: Jun 2006
Posts: 54
Default datatip pops up everything in the XML

i'm using e4x to make a filter search on my xml
there are some names biggger then the row and i don't want to use word wrap cause it looks ugly, if i set showdatatips to true when hoover over a name it popsup everything in the xml is there any other way to do datatip?
or to tell it i just want the name tag?

<mxataGridColumn dataField="name" showDataTips="true"/>

<catalog>
<book>
<name></name>
<desc></desc>
<image></image>
</book>

<book>
.....
....
</book>
</catalog>
stonyx is offline   Reply With Quote
Old 08-14-2006, 06:09 PM   #2
flexy
Everything about me's...
 
Join Date: Aug 2006
Location: UK
Posts: 198
Default

You could try removing the big cheesy grin from your DataGridColumn tag.

You could also use 'dataTipFunction' to format your datatips, though looking at the code you're using there, are you using 1.5?

Last edited by flexy; 08-14-2006 at 06:23 PM.
flexy is offline   Reply With Quote
Old 08-14-2006, 07:46 PM   #3
stonyx
Registered User
 
stonyx's Avatar
 
Join Date: Jun 2006
Posts: 54
Default

Quote:
Originally Posted by flexy
You could try removing the big cheesy grin from your DataGridColumn tag.

You could also use 'dataTipFunction' to format your datatips, though looking at the code you're using there, are you using 1.5?
HI i'm using 2.0 trial
instead of the datatips i decided to used wordwrap cause i never found something about datatips that could help me not even in the live docs thank you any way if you still have a solution for it i'll apreciaciate a example code thanks
stonyx is offline   Reply With Quote
Old 08-15-2006, 08:30 AM   #4
flexy
Everything about me's...
 
Join Date: Aug 2006
Location: UK
Posts: 198
Default

Try here: http://www.flexdeveloper.eu/forums/Y...1155630566/0#0
flexy is offline   Reply With Quote
Old 08-23-2006, 09:32 PM   #5
glacts
Registered User
 
Join Date: Aug 2006
Posts: 5
Default

I too have noticed this issue. If you use resultFormat="e4x" in your mx:HTTPService tag, you get the entire XML doc as your datatip. If you omit the resultFormat (and use the default object methodology), then the datatip works perfectly. That is an imperfect solution, however, if you are interested in utilizing e4x.

Oh yeah, I tried Flexy's solution, but it only seems to work for charts. If I'm using a DataGrid, then I get the following error: TypeError: Error #1034: Type Coercion failed: cannot convert XML@40e6929 element <resource id="200601" name="blah" type="service" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> to mx.charts.HitData.

One other question, I noticed that when using objects as opposed to e4x, if you have an xml tag with a numeric value of "1.0", the e4x treats it as a string and displays "1.0", however the object treats it as a number and displays "1". Is there a way to cast the object so that it displays "1.0" instead. I couldn't get it to work.

Thanks.

Last edited by glacts; 08-23-2006 at 09:34 PM.
glacts is offline   Reply With Quote
Old 08-24-2006, 02:33 AM   #6
stonyx
Registered User
 
stonyx's Avatar
 
Join Date: Jun 2006
Posts: 54
Default

Quote:
Originally Posted by glacts
I too have noticed this issue. If you use resultFormat="e4x" in your mx:HTTPService tag, you get the entire XML doc as your datatip. If you omit the resultFormat (and use the default object methodology), then the datatip works perfectly. That is an imperfect solution, however, if you are interested in utilizing e4x.

Oh yeah, I tried Flexy's solution, but it only seems to work for charts. If I'm using a DataGrid, then I get the following error: TypeError: Error #1034: Type Coercion failed: cannot convert XML@40e6929 element <resource id="200601" name="blah" type="service" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> to mx.charts.HitData.

One other question, I noticed that when using objects as opposed to e4x, if you have an xml tag with a numeric value of "1.0", the e4x treats it as a string and displays "1.0", however the object treats it as a number and displays "1". Is there a way to cast the object so that it displays "1.0" instead. I couldn't get it to work.

Thanks.
thank God i thought i was the only one with that problem hope somebody have a solution
stonyx is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
datatip show all the xml stonyx Flex 2, 3 & 4 2 07-09-2006 02:39 PM
Flash detection script pops up sandman9 ActionScript 2.0 0 03-15-2006 07:35 PM
flash content pops out around the movie ZBC ActionScript 2.0 2 12-13-2005 04:05 PM
scrollPane depth issues: content pops out miiek Components 2 04-23-2005 09:27 AM
Another Pop-up question pops up!! biotechie Simple Stuff (Newbies) 2 03-18-2005 03:31 PM


All times are GMT. The time now is 12:02 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.