Need help adding image to datagrid column
Hi,
Can anyone tell me how to add an image to a datagrid column?
I have created a flex library project which contains a mxml component with a datagrid, an item renderer mxml component which rendered the image within the datagrid column depending on the value coming back from the database for that column and a folder 'assets' which hold all the images. When I add the library to my main project and call the mxml component with the datagrid an image place holder is visible in the datagrid column but not the image. However, if I take the image out of the library project and added to an 'assets' folder in the main project the image is displayed in the datagrid column.
It looks like, even though the images are in the flex library project and only the flex library project is trying to display the images in the datagrid, the library project is looking in the main application project folder for the image.
Does anyone know why this is happening and how to fix it?
Thanks in advance for an help,
Xander.
I have tried embedding the images in my library but it still didn't work. Also I can't embed the image as I'm using the value of the column to complete the image name, for example in my mxml item renderer component I have the added the following code
<mx:Image source="@Embed(source='assets/' + data.mycolumnvalue + '.png')" tooltip="{data.mycolumnvalue}"/>
but nothing is displayed.
Similar Messages
-
Needs help adding images to movie clips and referencing the frames
i havent started with a blank, script made movie clip.
I want to add frames from action script 2, and be able to
reference/show the induividual frames for a video game and not a
movie. I dont realy need animation, i just need certain frames to
show, that i want to load load(from a non script made movie clip
with one loaded frame(bitmap data).you can't add frames to a movieclip using actionscript. so,
if that's what you're trying to do you'll need to find some other
way to accomplish your goal. -
I need help adding a mouse motion listner to my game. PLEASE i need it for
I need help adding a mouse motion listner to my game. PLEASE i need it for a grade.
i have a basic game that shoots target how can use the motion listner so that paint objects (the aim) move with the mouse.
i am able to shoot targets but it jus clicks to them ive been using this:
public void mouse() {
dotX = mouseX;
dotY = mouseY;
int d = Math.abs(dotX - (targetX + 60/2)) + Math.abs(dotY - (targetY + 60/2));
if(d < 15) {
score++;
s1 = "" + score;
else {
score--;
s1 = "" + score;
and here's my cross hairs used for aiming
//lines
page.setStroke(new BasicStroke(1));
page.setColor(Color.green);
page.drawLine(dotX-10,dotY,dotX+10,dotY);
page.drawLine(dotX,dotY-10,dotX,dotY+10);
//cricle
page.setColor(new Color(0,168,0,100));
page.fillOval(dotX-10,dotY-10,20,20);
please can some1 help meplease can some1 help meNot when you triple post a question:
http://forum.java.sun.com/thread.jspa?threadID=5244281
http://forum.java.sun.com/thread.jspa?threadID=5244277 -
Need help adding schedule to xcode 4
I need help adding a tour schedule for an iphone app building an app for 13 djs and they want thier tour schedules added these need to be updated monthly is there a way to add this????
I don't know if this is the easiest way but it works for me. I connect the DVD player to my camcorder (so it's the 3 plugs yellow/red/white on one end and a single jack into the camera). Then I connect my camcorder to the computer (I think it's through a firewire port). Then I just play the DVD and the footage is digitized via the camcorder and I import it into iMovie 4 as it's playing. I believe the camcorder is just in VCR mode.
I have also used this method to transfer VHS tapes onto DVDs via the camera by connecting the VCR to the camera.
I haven't had much luck with movies over about 40 minutes on iMovie. But if it's home movies, there may be a logical break. Do maybe 20 minute segments (it's also really easy on iMovie to add a soundtrack if these are OLD films with no sound.
As you can see, I'm low tech!
Good luck!
Powerbook G4 Mac OS X (10.3.9) -
TS1314 Need help tranfering images to iphone...
I need help tranfering images from my computer to my iphone. I've synced the images but they don't appear on my iphone, also on the file that contains the images, there's a file that says IPOD PHOTO CACHE. I don't know what to do. Please Help...
Hope these help, do you not find them at all in the photos app?:
iOS and iPod: Syncing photos using iTunes
http://support.apple.com/kb/HT4236
iPhoto '11: View photos or slideshows on iPod, iPhone, iPad, or Apple TV
http://support.apple.com/kb/PH2437
iTunes: Understanding the iPod Photo Cache folder
http://support.apple.com/kb/TS1314
============================
- Oz -
Need help with Pivoting rows to columns
Hi,
I need help with pivoting rows to columns. I know there are other posts regarding this, but my requirement is more complex and harder. So, please give me a solution for this.
There are two tables say Table 1 and Table 2.
Table1
name address email identifier
x e g 1
f s d 2
h e n 3
k l b 4
Table2
identifier TRno zno bzid
1 T11 z11 b11
1 T12 z12 b12
1 T13 z13 b13
2 T21 z21 b21
2 T22 z22 b22
As you can see the identifier is the column that we use to map the two tables. The output should be like below
output
name address email identifier TRno1 zno1 bzid1 TRno2 zno2 bzid2 TRno3 zno3 bzid3
x e g 1 T11 z11 b11 T12 z12 b12 T13 z13 b13
f s d 2 T21 z21 b21 t22 z22 b22
Also we do not know exactly how many TRno's, zno's, etc each value in the identifier will have. There may be only 1 TRNO, zno and bzid, or there may be four.
All the values must be in separate columns, and not be just comma delimitted. There are also other conditions that i have to add to restrict the data.
So, can you please tell me what is should use to get the data in the required format? We are using Oracle 10g. Please let me know if u need any more informationSomething like this ?
SCOTT@orcl> ed
Wrote file afiedt.buf
1 select a.name,
2 a.address,
3 a.email,
4 b.* from (
5 select distinct identifier
6 ,max(trno1) trno1
7 ,max(zno1) zno1
8 ,max(bzid1) bzid1
9 ,max(trno2) trno2
10 ,max(zno2) zno2
11 ,max(bzid2) bzid2
12 ,max(trno3) trno3
13 ,max(zno3) zno3
14 ,max(bzid3) bzid3
15 ,max(trno4) trno4
16 ,max(zno4) zno4
17 ,max(bzid4) bzid4
18 from (select identifier
19 ,decode(rn,1,trno,null) trno1
20 ,decode(rn,1,zno,null) zno1
21 ,decode(rn,1,bzid,null) bzid1
22 ,decode(rn,2,trno,null) trno2
23 ,decode(rn,2,zno,null) zno2
24 ,decode(rn,2,bzid,null) bzid2
25 ,decode(rn,3,trno,null) trno3
26 ,decode(rn,3,zno,null) zno3
27 ,decode(rn,3,bzid,null) bzid3
28 ,decode(rn,4,trno,null) trno4
29 ,decode(rn,4,zno,null) zno4
30 ,decode(rn,4,bzid,null) bzid4
31 from (select identifier,
32 trno,bzid,zno,
33 dense_rank() over(partition by identifier order by trno,rownum) rn
34 from table2)
35 order by identifier)
36 group by identifier) b,table1 a
37* where a.identifier=b.identifier
SCOTT@orcl> /
NAME ADDRESS EMAIL IDENTIFIER TRNO1 ZNO1 BZID1 TRNO2 ZNO2 BZID2 TRNO3 ZNO3 BZID3 TRNO4 ZNO4 BZID4
x e g 1 T11 z11 b11 T12 z12 b12 T13 z13 b13
f s d 2 T21 z21 b21 T22 z22 b22
SCOTT@orcl> select * from table1;
NAME ADDRESS EMAIL IDENTIFIER
x e g 1
f s d 2
h e n 3
k l b 4
SCOTT@orcl> select * from table2;
IDENTIFIER TRNO ZNO BZID
1 T11 z11 b11
1 T12 z12 b12
1 T13 z13 b13
2 T21 z21 b21
2 T22 z22 b22
SCOTT@orcl>Regards
Girish Sharma -
Display image in datagrid column
I have a datagrid with a column that displays true or false
if an item "has children" or not. How would I go about placing an
image in the column depending on the value of the column. I want to
have two different images one for false and one for true.make your item renderer a canvas, with 2 images.
when your canvas loads, you have the 'data' of that cell. So
lets say your column's datafield is "hasimage", you can do
something like this:
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="created();">
override public function set data(value:Object):void
if(value != null)
super.data = value;
public function created():void
if(data["hasimage"] == "true")
trueImg.visible = true;
else
falseImg.visible = true;
<mx:Image id="trueImg" src="image" visible="false" />
<mx:Image id="falseImg" src="image" visible="false" />
</mx:Canvas> -
I am trying to dual boot Arch Linux and Ubuntu. When I try to boot there is no option for Arch. I have added it to the menu.lst file in ubuntu. Arch is installed on sdb1 according to sudo fdisk -l I need help!
Fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb38ab38a
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9544 76662148+ 83 Linux
/dev/sda2 9545 9729 1486012+ 5 Extended
/dev/sda5 9545 9729 1485981 82 Linux swap / Solaris
Disk /dev/sdb: 40.9 GB, 40992473088 bytes
255 heads, 63 sectors/track, 4983 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002eb1f
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4891 39286926 83 Linux
Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ea9be
Device Boot Start End Blocks Id System
/dev/sdc1 1 30401 244196001 7 HPFS/NTFS
I think Arch is on the 40GB partition
Menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 0
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
# examples
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=ce3a864f-3f72-480b-96b3-54516b307170 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=ce3a864f-3f72-480b-96b3-54516b307170
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Ubuntu 9.04
uuid ce3a864f-3f72-480b-96b3-54516b307170
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=ce3a864f-3f72-480b-96b3-54516b307170 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
#title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
#uuid ce3a864f-3f72-480b-96b3-54516b307170
#kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=ce3a864f-3f72-480b-96b3-54516b307170 ro single
#initrd /boot/initrd.img-2.6.28-11-generic
#title Ubuntu 9.04, memtest86+
#uuid ce3a864f-3f72-480b-96b3-54516b307170
#kernel /boot/memtest86+.bin
#quiet
# (0) Arch Linux
title Arch Linux
root (hd1,0)
kernel /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26.img
### END DEBIAN AUTOMAGIC KERNELS LIST
title Arch
rootnoverify (hd0,1)
chainloader +1 -
Adding Datefield in Datagrid column
I have a requirement to have datefield control in the
datagrid column. I have to create the datagrid from actionscripts
and also render the datefield from it. I tried using the
datagriditemrenderer but its not working. Is there a sample code i
can taken help from? Thanks in advance.Create one item rennderer which provides you radio button
and in actionscript file specify this
columnname.itemRenderer = new ClassFactory(itemrendererName);
So it will add itemrenderer at runtime...
Hope it will help you!!! -
Need help Pagination Suppourt with DataGrid
Hi ,
When i do a search Operation , the data from Database is huge and i think if i display all of them at a Time it will be a performance and response Time issue .
So the question i am asking is that , can any body please give me a basic idea as how to implement Pagination with DataGrid Results ??
Need help with Datgrid and Pagination suppourt .
Thnaks in advnace .Hi Kiran,
Try referring to the below link...
http://www.flexicious.com/
Thanks,
Bhasker Chari.S -
Need help getting images for blog aggregator
I need help trying to grab images into a blog aggregator...
Here is the code that gets the image.
<!--- Get thumbnail, if exists --->
<cfset content_to_parse = temp_description_full>
<cfinclude template="module_get_images.cfm">
<cfif IsArray(image_array) AND ArrayLen(image_array)>
<cfloop from=1 to=#ArrayLen(image_array)# index="j">
<cfhttp url="#trim(image_array[j].link_url)#"
method="get" throwonerror="No" timeout="15" getasbinary="Auto"
resolveurl="No" />
<cfif IsBinary(cfhttp.filecontent)>
<cfset tmp_filename = "thumbnail_entry_" & GetID.id
& "." & image_array[j].file_type>
<cffile action="WRITE"
file="#ExpandPath(request.base_relative_url &
'/blog_thumbnails/' & variables.tmp_filename)#"
output="#cfhttp.filecontent#">
<cfset thumb_image = request.img.process_image(image_path
= ExpandPath(request.base_relative_url & '/blog_thumbnails/'
& variables.tmp_filename), max_width = 120, max_height = 120,
crop_area = "center")>
<cfimage source="#thumb_image#" action="write"
destination="#ExpandPath(request.base_relative_url &
'/blog_thumbnails/' & variables.tmp_filename)#"
overwrite="yes">
<cfquery name="UpdateEntry"
datasource="#request.data_source#" username="#request.db_un#"
password="#request.db_pw#">
UPDATE aggregated_blog_entry
SET aggregated_blog_entry_thumbnail_image_tx =
'#left(variables.tmp_filename,255)#'
WHERE aggregated_blog_entry_id = #GetID.id#
</cfquery>
<cfbreak>
</cfif>
</cfloop>
</cfif>
---------This is the module_get_images.cfm
code----------------
<cfset start_pos = 1>
<cfset image_array = ArrayNew(1)>
<cfset regex_image = "<img[^>]*>">
<cfset regex_image_url =
"(((https?:|ftp:|gopher:)\/\/)|(www\.|ftp\.))[-[:alnum:]\?%,\.\/&##!;@:=\+~_]+[\-A-Za-z0- 9\/]">
<cfloop condition="1">
<cfset temp_image_pos = REFindNoCase(regex_image,
variables.content_to_parse, start_pos, true)>
<cfif temp_image_pos.pos[1]>
<cfset temp_link =
mid(variables.content_to_parse,temp_image_pos.pos[1],temp_image_pos.len[1])>
<cfset link =
REFindNoCase(regex_image_url,temp_link,1,1)>
<cfif NOT link.pos[1]>
<cfset temp_link_url = "">
<cfelse>
<cfset temp_link_url =
mid(temp_link,link.pos[1],link.len[1])>
</cfif>
<!--- Don't show links to images --->
<cfif len(trim(temp_link_url)) AND
ListFindNoCase("jpg,jpeg,gif,bmp,png",left(ListLast(temp_link_url,"."),3))>
<cfset image_array[ArrayLen(image_array)+1] =
StructNew()>
<cfset image_array[ArrayLen(image_array)].link =
temp_link>
<cfset image_array[ArrayLen(image_array)].link_url =
temp_link_url>
<cfset image_array[ArrayLen(image_array)].file_type =
left(ListLast(temp_link_url,"."),3)>
</cfif>
<cfset start_pos = temp_image_pos.pos[1] + 1>
<cfelse>
<cfbreak>
</cfif>
</cfloop>
This is the type of code it has a hard time getting the image
becuase it doesn't have a regular IMG tag.
<div style="float: left; width: 82px; height: 59px;
overflow: hidden; background: url(
http://pix.crash.net/motorsport/80/388493.jpg);
background-position: center center; background-repeat: no-repeat;
margin: 1px;" onMouseOver="showTipGallery(Stoner, Australian MotoGP
2007);" onMouseOut="clearTip();">
Is there a way to modify this code to make it be able to look
for the backround: url?? I am thinking that woul help it.. It knows
that an image is there.. It just doesn't know what to do with
it.How difficult is it for you to do a google image search for large images of this subject?
While you appear to be doing this project for an educational endeavour and can get away with mild copyright abuse as "fair use", you probably should not expect the participants in this forum to 1) work for Disney either as a direct employee or as a contractor and 2) offer their copyrighted work for free.
If you really want to impress a teacher and a future employer, you would use your own art. Why dont you create your own movie concept? Suppose you and your classmate are up for the same employment position. Who do you think will get hired if you show work that is not all your own, while your classmate has produced all of his/her own work? -
Need help regarding image scanning from scanner and resizing it...
Hi,
I need help regarding scanning of image directly from scanner. Here is the scenario when the person clicks scan button on the webpage should scan the image and resize it and store it in some temp location. Is there any way i can do this. Any Help regarding this would be great!!!
Thanks,
Avinash.
Edited by: Kalakonda on Jul 24, 2009 8:08 AMKalakonda wrote:
I need help regarding scanning of image directly from scanner. Here is the scenario when the person clicks scan button on the webpage should scan the image and resize it and store it in some temp location. Is there any way i can do this. Any Help regarding this would be great!!!So what you are doing is you have a Scanner (hardware: like an HP flatbed scanner) attached to a server that you want to use as a scanning station? Is this the senario that you are talking about? -
I need help attaching a few hyperlinks my godaddy welcome page. I have 2 more ipages articles, I also converted them to pdf. Godaddy only helped (last year) with the 1st article. I do not know how to attach a hyperlink to the artlcles and add the hyperlinks to my welcome page.
The program is called Pages not iPages. Just let us know if you do not speak English and what language you do speak so we can adjust for that.
The issues are to do with your web page not with Pages.
I think you are asking how to link from your web page to your pdf articles. You must first copy those pdfs to your web server, or some other web location, and then provide html links on your welcome page to those pdf files.
The pdfs themselves may contain links to other locations but I can not see that that is what you are asking for.
Nor to what those links would be to.
From your heading I think you may have confused the name of Pages, the word processing program, with web pages which are two different things.
Peter -
Hey all, I need a simple image gallery to load when you click a button. I've tried shadowbox but have had absolutely zero luck. I'm not sure how to load it from a flash file and I know there is work that has to be done outside of flash like in the root folder. All I need is for a simple image gallery, nothing fancy, to open when I hit a button. If anyone could explain how to use shadowbox in lamens terms or knows how to easily script a gallery that would be amazing.
What script version is your target? AS2 or AS3
-
ComboBox (dropdown) Need Help Adding URL links!!!
I am somewhat of a newbie....Anybody know how to use URL
links in a ComboBox dropdown menu? NEED HELP!!!!!!! I'm trying to
make it so that after selecting an option, the user is directed to
another URL within the same browser window. Using flash 8!
Thanks,Im a bit a newbie myslef but i think you make flash
commuincate to javascript wich will make the browser goto the URL.
do a search on getURL and javascript together and i am sure
you will find something.
And when slecting to redirct i think its on?(onPress)
something so maybe look throught the help section in flash 8 and
look at componets. I think there is some actionscript help there.
Sorry i could not be more helpful.
Maybe you are looking for
-
Schedule lines in a sales order
Hi All, Its a very rare case I hoipe. Some times i see the deliver date in schedule lines tab in a sales order as 08.01.0001. Iam very much surprised about year 0001. Have you ever faced such issue. kindly provide me the root cause and solution Thank
-
For travel from US to UK, do I need a subscription...
Wife and I both have Skype app and can talk for free that way. She is traveling to UK for a week. Do I need Skype To Go subscription to call her over there (or she call me) or do we keep using our free Skype app? What are the advantages of the subsc
-
How to best restore lost User Accounts after server crash?
Our late 2005 G5 froze sometime overnight in the middle of a Time Machine backup. We had to do a hard reboot the next morning. When OS X Server 10.5.8 came back up, none of our users could log in including our administrator accounts. Unable to log
-
Hi, I just installed Arch (wauw it boots fast ) and everything is working (even my wireless with Ndiswrapper) except my Xorg. I dit: pacman -S xorg xorgconfig pacman -S hwd hwd -x mv xorg.conf.hwd xorg.conf (in /etc/X11) and when I try Xorg-configure
-
Hi I need to select a few columns dynamically in a report .how to do that? thanks in advance Neeraj null