output of the coil in .csv file - of the problems with the display of data
HelloYou will need to provide the result of a select query that contains approximately 80000 registration in a .csv file. A procedure is written for the select query and the procedure is called in the script of the coil. But few of the columns have the decimal point in values. For example, there is a personal_name column in the select query that says the name as "James, Ed. Then the output in different columns. Therefore, the data is being shifted to the right for the remaining columns.
Some could help solve this problem. I mainly used a procedure as the select query is about three pages, and so you want the script to look clear.
Script is,
AUTOPRINT activated;
Set the title.
Set TRIMSPOOL ON;
the value of colsep «,»;
set linesize 1000;
set PAGESIZE 80000;
variable main_cursor refcursor;
escape from the value.
coil C:\documents\querys\personal_info.csv
EXEC proc_personal_info(:main_cursor);
spool off;
Hello
set PAGESIZE 80000 ;
is not valid, and it will print header as all the 14 ranks of default.
You can avoid printing the header in this way:
set AUTOPRINT ON ;
set heading ON;
set TRIMSPOOL ON ;
set colsep ',' ;
set linesize 1000 ;
set PAGESIZE 0 ;
set escape /
set feedback off
spool c:\temp\empspool.csv
SELECT '"'||ename||'"', '"'||job||'"'
FROM emp;
spool off
The output will look like this in this case
"SMITH" ,"CLERK"
"ALLEN" ,"SALESMAN"
"WARD" ,"SALESMAN"
"JONES" ,"MANAGER"
"MARTIN" ,"SALESMAN"
"BLAKE" ,"MANAGER"
"CLARK" ,"MANAGER"
"SCOTT" ,"ANALYST"
"KING" ,"PRESIDENT"
"TURNER" ,"SALESMAN"
"ADAMS" ,"CLERK"
"JAMES" ,"CLERK"
"FORD" ,"ANALYST"
"MILLER" ,"CLERK"
Alternatively, you can consider creating a single column by concatenating the columns in this way:
spool c:\temp\empspool.csv
SELECT '"'||ename||'","'||job||'"'
In this case the output will look like without spaces between the columns:
"SMITH","CLERK"
"ALLEN","SALESMAN"
"WARD","SALESMAN"
"JONES","MANAGER"
"MARTIN","SALESMAN"
"BLAKE","MANAGER"
"CLARK","MANAGER"
"SCOTT","ANALYST"
"KING","PRESIDENT"
"TURNER","SALESMAN"
"ADAMS","CLERK"
"JAMES","CLERK"
"FORD","ANALYST"
"MILLER","CLERK"
Kind regards.
Al
Published by: Alberto Faenza may 2, 2013 17:48
Tags: Database
Similar Questions
-
CC of Dreamweaver takes conditional text? Specifically, can I put all of my tech data in a doc of DW and the output of the subsets of data (doc Admin against doc user versus doc Marketing) based on tags or other methods?
I don't have any front-end text editor (such as FrameMaker) or I'd do it here. Dreamweaver can do this without complex workarounds or procedures not supported?
Thank you very much.
Mike the Newbie
OK, that's fine. DW not conditionalization and I'll see if I can get what I need to do or find another approach.
Thanks a lot for your help.
Michael
-
Hot to export the two outputs a script to a csv file
Hi all
I have a simple sctipt which is the instant list of two DC in my environment. Currently each line generates a separate CSV file with data.
Is it possible to create a single file with the output of these two lines data?
Get-data center-name DC1. Get - vm | Get-snapshot | Select-Object name, Description, PowerState, VM, created, @{Name = 'Host'; Expression = {(Get-VM $_.)} {{VM). $host.name}} | Export ' E:\artur\reports\DC1_snapshot.csv
Get-data center-name DC2. Get - vm | Get-snapshot | Select-Object name, Description, PowerState, VM, created, @{Name = 'Host'; Expression = {(Get-VM $_.)} {{VM). $host.name}} | Export 'E:\artur\reports\DC2_snapshot.csv '.
both files will be sent by mail
Copy & paste the problem.
The Export-Csv should be of course outside the loop
get-datacenter -name "blackburn","coventry" | %{ $dcName = $_.Name $_ | get-vm | get-snapshot | ` Select-Object @{Name="DC"; Expression={$dcName}},VM, Name, Description, PowerState, Created, @{Name="Host"; Expression = {(Get-VM $_.VM).Host.Name}} | ` } | Export-Csv 'C:\DC_snapshot.csv'
____________
Blog: LucD notes
Twitter: lucd22
-
How to write in the csv file - what's wrong with that?
Hi all
I created a view that makes all kinds of calculations, now I need to write the output in the csv file. How can I do this through a procedure? Sorry I've never had to create a csv file before and this is my first time.
Thank you!
Published by: user5737516 on November 18, 2009 09:47See:
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1992907061984
(points to several other links)
and/or
http://tkyte.blogspot.com/2009/10/httpasktomoraclecomtkyteflat.html -
Drill/output of the hierarchical chart data?
I have a set of hierarchical and grouped data that are be drawn. I want the user to be able to go down and drill on the sets of data in the graph. When drilling, setting the dataProvider of the graph to the clicked element's children on works well
However, I don't see no method of drilling back since the clicked item has no parents. Someone has an idea?
Quote:
Posted by: Sreenivas R
I posted a sample herehttp://flexpearls.blogspot.com/2007/12/displaying-groupingcollectionhierarchic.html
Wow, this is more or less perfect. I just need to change the effects of more then treat a data series. Thanks a bundle.
UM... seems I also need a way to detect if your at the top level and prevent you from drilling. Shouldn't be too difficult.
EDIT: Quite easy, just added another check in the loop from the forest to the top.
However this method disconnects the data grid table, following problem is advanced. But his closer.
EDIT: Bah, I need more sleep. Just need to point the hView times the grid and table.
-
Hi all
I loaded a CSV source file for the target Oracle table. Mapping was properly executed, but the month of dd/mm/yyyy is only show 01, even if I have other months in my folder.
Any ideas on that?
Thank you!
Hope this helps you
-
Error input/output of the VMFS5 local data store
Hello
I have 3 locally on the hard drive on my server from IBM. 1 250 GB drive, I used to create the data store Linux (datastore1) and other 2 disks that I created the Windows data store (datastore2)
Couple of VMS is deployed on the two databases. Over the weekend, suddenly vms Windows Data Store (datastore2) went down. When I checked Monday concluded that data store is visible to ESXi host but I am unable to navigate to virtual machines.
If I Directory VM cd I get below error:
~ # cd/vmfs/volumes/Windows\ Data\ store/Win - 2 k 8-2.
SH: getcwd: input/output error
# (unknown)
~ # esxcfg - scsidevs - l
MPX.vmhba32:C0:t0:l0
Device type: Direct access
Size: MB 1911
Full name: USB Direct-access Local (mpx.vmhba32:C0:T0:L0)
Multichannel plugin: NMP
Device console: /vmfs/devices/disks/mpx.vmhba32:C0:T0:L0
Devfs Path: /vmfs/devices/disks/mpx.vmhba32:C0:T0:L0
Seller: SMART model: USB - IBM Revis: 0000
: SCSI 2 is Pseudo: false status: on
: RDM Capable false is removable: true
Is Local: true is SSD: false
Other names:
VML.0000000000766d68626133323a303a30
VAAI status: unsupported
MPX.vmhba33:C0:t0:l0
Device type: CD-ROM
Size: 0 MB
Full name: Local USB CD-ROM (mpx.vmhba33:C0:T0:L0)
Multichannel plugin: NMP
Device console: /vmfs/devices/cdrom/mpx.vmhba33:C0:T0:L0
Devfs Path: /vmfs/devices/cdrom/mpx.vmhba33:C0:T0:L0
Seller: KVM model: vmDisk-CD live again: 0.01
: SCSI 2 is Pseudo: false status: on
: RDM Capable false is removable: true
Is Local: true is SSD: false
Other names:
VML.0005000000766d68626133333a303a30
VAAI status: unsupported
NAA.5000c500478aee93
Device type: Direct access
Size: 286102 MB
Full name: IBM-ESXS Serial Attached SCSI disk (naa.5000c500478aee93)
Multichannel plugin: NMP
Device console: /vmfs/devices/disks/naa.5000c500478aee93
Devfs Path: /vmfs/devices/disks/naa.5000c500478aee93
Seller: IBM-ESXS model: ST9300605SS Revis: B556
SCSI level: 6 is Pseudo: false status: gradient
RDM Capable is: true is removable: false
Is Local: the SSD of is wrong: false
Other names:
VML.02000000005000c500478aee93535439333030
VAAI status: unknown
NAA.5000c500478b8d3b
Device type: Direct access
Size: 286102 MB
Full name: IBM-ESXS Serial Attached SCSI disk (naa.5000c500478b8d3b)
Multichannel plugin: NMP
Device console: /vmfs/devices/disks/naa.5000c500478b8d3b
Devfs Path: /vmfs/devices/disks/naa.5000c500478b8d3b
Seller: IBM-ESXS model: ST9300605SS Revis: B556
SCSI level: 6 is Pseudo: false status: gradient
RDM Capable is: true is removable: false
Is Local: the SSD of is wrong: false
Other names:
VML.02000000005000c500478b8d3b535439333030
VAAI status: unknown
NAA.5000c500478d724f
Device type: Direct access
Size: 286102 MB
Full name: IBM-ESXS Serial Attached SCSI disk (naa.5000c500478d724f)
Multichannel plugin: NMP
Device console: /vmfs/devices/disks/naa.5000c500478d724f
Devfs Path: /vmfs/devices/disks/naa.5000c500478d724f
Seller: IBM-ESXS model: ST9300605SS Revis: B556
SCSI level: 6 is Pseudo: false status: gradient
RDM Capable is: true is removable: false
Is Local: the SSD of is wrong: false
Other names:
VML.02000000005000c500478d724f535439333030
VAAI status: unknown
~ # esxcfg - scsidevs - m
NAA.5000c500478d724f:1 /vmfs/devices/disks/naa.5000c500478d724f:1 4f83af28-52abeaf2-6475-5cf3fcba46f2 0 Linux Data Store
NAA.5000c500478b8d3b:3 /vmfs/devices/disks/naa.5000c500478b8d3b:3 4f7cfc39-4d17993a-a08c-5cf3fcba46f2 0 Windows Data Store
Data store of Windows NAA.5000c500478aee93:1 /vmfs/devices/disks/naa.5000c500478aee93:1 4f7cfc39-4d17993a-a08c-5cf3fcba46f2 1
Here is the output of dmesg: I suspect to be a hard drive problem
(2014 06-16 T 10: 46:25.385Z cpu5:382346) WARNING: UserObj: 675: could not crossdup fd 8, / dev/ptyp0 CHAR type: busy
(2014 06-16 T 10: 46:25.385Z cpu5:382346) WARNING: UserObj: 675: could not crossdup fd 10, / dev/ptyp0 CHAR type: busy
(2014 06-16 T 10: 46:25.385Z cpu2:382348) WARNING: UserLinux: 1340: unsupported: (void)
(2014 06-16 T 10: 46:52.510Z cpu16:4112) NMP: nmp_ThrottleLogForDevice:2318: Cmd 0 x 28 (0x412440db9c40) to dev 'naa.5000c500478b8d3b' on the way 'vmhba2:C0:T0:L0' failed: H:0 x D:0 x 2 P:0 valid 0 x 0 sense-data: 0x4 0x32 0x0. Bill: NO
(2014 06-16 T 10: 46:52.510Z cpu16:4112) ScsiDeviceIO: 2316: Cmd (0x412440db9c40) 0 x 28, CmdSN 0x2a to dev 'naa.5000c500478b8d3b' has no sense H:0 x D:0 x 2 P:0 valid 0 x 0-data: 0 x 4 0 32 x 0 x 0.
(2014 06-16 T 10: 47:34.631Z cpu18:4114) NMP: nmp_ThrottleLogForDevice:2318: Cmd 0 x 28 (0 x 412441635000) to dev 'naa.5000c500478b8d3b' on the way 'vmhba2:C0:T0:L0' failed: H:0 x D:0 x 2 P:0 valid 0 x 0 sense-data: 0x4 0x32 0x0. Bill: NO
(2014 06-16 T 10: 47:34.631Z cpu18:4114) ScsiDeviceIO: 2316: Cmd (0 x 412441635000) 0 x 28, CmdSN 0x1c to dev 'naa.5000c500478b8d3b' has no sense H:0 x D:0 x 2 P:0 valid 0 x 0-data: 0 x 4 0 32 x 0 x 0.
(2014 06-16 T 10: 47:41.476Z cpu18:4114) ScsiDeviceIO: 2316: Cmd (0x412440da3500) 0 x 28, CmdSN 0 x 21-dev 'naa.5000c500478b8d3b' has no sense H:0 x D:0 x 2 P:0 valid 0 x 0-data: 0 x 4 0 32 x 0 x 0.
Please guide me to solve this problem. Thank you all in advance
/virtu4
This problem is solved.
Thanks to the communities for not responding, that made me to fix this myself
/virt4
-
InDesign CS5, cannot open the file due to problem with plugins
Hi people!
I am running Max OSX 10.5.8 and I am currently using a trial version of CS5 (Design Premium) while work sorts of money for the upgrade.
I work in-house, and I needed to send a work file to an external design agency. I saved the file in CS5. The Agency has CS5. When they open it, they get an error message saying that they do not have the necessary plugins to open it. We never have any plug-ins, I'm not aware of anything that would come the trial who do not come with the purchased version, so I don't know what to do.
Is it possible to save a file without saving these 'plugins' with it? Or is there something else I can do?
Any help much appreciated
linziloop wrote:
No, they have a pretty large agency, they certainly have CS5, bought right out.
This is not typical of an important agency in my expereince. Ask them to confirm the version number.
-
Hello
I want to generate the continuous signal and at the same time I want to read that signal that I generate using a single card DAQ. I want to generate signal and the received signal is synchronized and in phase.
I looked at several samples on the sync, but it quiet confusing. One using the same clock of entry while the other use a trigger to start. I use the PCI-6024E DAQ card.
Can someone help me in this regard?
In two of these screenshots, the task to HAVE started first (that's what you want, because it is the task of the slave).
Typically for AO, you can simply write a unique period of your waveform, and then regenerate again and again. Your waveform would be preset before the task starts. If you need to update the waveform on the fly according to enter programming during execution of the task, you would disable the regeneration. In addition, if the wave form is such that it cannot be easily represented by a predefined buffer (for example, it is a strange frequency which is not a same ditch at the bottom of the sample clock), then non-regeneration is the way to go.
Best regards
-
CSV file having a column with a record of de-limiteur character?
Hi all
I was asked in an interview:
Suppose that we use ',' as loading data via Sql de-limiteur Charger. *
Assume that we are loading the data of a column name. It has an entry like Naresh, Ramaswamy and it is a correct entry.
Investigators have asked if we can load it or not.
I told them that he needed to change the limiter of of.
However, according to their answers. It seemed as if there is also another way.
I tried with replace and also have been looking for it. Yet, I am unable to find it. Could you please guide me.Hello
Search for 'Backslash escape character' in [utilities database Oracle® 10g Release 2 (10.2) documentation | http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_control_file.htm#i1004788]
HTH, regards, Zoltan
-
How files request for vmdk with location of store data using perl sdk
Hello
I need to retrieve a list of (xxx - flat hard) and vmdk files for a virtual machine on an ESX Server.
The virtual machine I have has two disks that are in different data stores.
I changed the /usr/lib/vmware-vcli/apps/vm/myvminfo.pl to dump the full data.
I spilled the $vm_view and found that the data you are looking for do not print.
I'm new to VMWare and don't know how to go forward.
Any help will be greatly appreciated.
Thanks in advance
Ashwin
You should be able to use just LayoutEx property of the VirtualMachine. Keep in mind this property gets refreshed on a schedule, so don't always present not unless you explicitly referesh it yourself. However, that can add some overhead VI retesting the data store (s).
The attached script is quite simple, but it can help you get started. To % disk_parts hash key is the key of the device, you can use this to get configuration-> hardware-> device information. The string under layoutEx-> disc keys should be descriptor-> measure. You can query the type of the object file if you need to be sure or want to only print as well.
You can exit the script in certain functions or map() calls to make it more readable. You need to work through the key tables nested loop, so it would probably be good to format into something easier to follow. Another option would be to create a hash of the file of the key values card, so you can do research without expensive loops.
Samples:
$ perl ListVmdkForVm.pl - username = administrator - password = VMware1! -Server = 172.16.254.10--vmname=Test\(Renamed\)2000: Test [VLAB-ESX-01_LOCAL] (renamed) _1/Test (renamed) hard, [VLAB-ESX-01_LOCAL] Test (renamed) _1/Test (renamed) - flat hard -
Problem with logic groups combining data at the point of importation
I really hope that you will be able to help me with a problem I've had for the last few days.
The scenario I have requires a logical group be created as the source data must be mapped differently if its + ve or - ve even thought the source account is the same.
I created a logical group complex and added the corresponding logical group account in the account mapping table. The group uses the definition of rule 001806 *.
The accounts that would be affected by this rule are below the values:
18060000 - 2093096.69
18060000 2093096.69
18060005 - 2474955.48
18060005 2474955.48
18060015 11319512.13
18060015-8000000 (a PEAK partner)
18060015 - 3319512.13 (a PEAK partner)
The + ve values need to go to an asset account and the values of ve - to a liability account.
At the stage of import, I have a zero value which seem to be the sum of the values of the first 4, substantive values 3 then appear on individual lines.
Step validate the asset HFM account displays the 3 + values of ve (15.8 M) Although 2 of them apparently wide net to zero with the values of the first and the third - ve. However, the liability account shows the background raising 2 (11. 3 m) as its missing the other 2 values - ve. Assets and liabilities HFM values should be the same
In the account mapping, I'm using the following script for the + ve (its been reformatted for this forum):
' If varValues (9) > '0' Result = "BSA401000" Else Result = "Ignore" End If
The script - ve is:
' If varValues (9) < "0" Result = "BSL625600" Else Result = "Ignore" End If
I later changed the logical group to be Simple, but I get a similar result, although what I am trying to reach seems to be detailed in the Administrator's Guide FDM under the heading create accounts within Simple logic groups
I understand that it is a little lengthy so apologies if you need more information, then please let me know and I will happy to provide more
Thank you, JamesYou could even put in place two mapping rules and avoid the complexity of a logic rule, if you wish. The mapping will continue to the next line if it does not meet the criterion, and there is no result.
Side assets would be with a name of rule vAsset (you can change this, but it must be unique to the next line)
If varValues (9) > 0 then result = "BSA401000."and then you add a second line to your card with a name of vLiab rule and check the sign flip.
If varValues (9)< 0="" then="" result="BSL6256002">
In the past I have avoided the rules of logic to the extent possible, by adding removes the ability to drill holes in the source file.
Concerning
JOINT TASK FORCE -
Script to generate XML files... problem with null values
Hello everyone,
I come here with a question that troubled me for some time. I have a script which I run in SQLPLUS every now and then to generate an XML file.
Problem is that the data that must be in XML format are not allways <>NULL and I need to hide empty tags < / tag >.
I'll post my script below and if you could help me with it, it would be really great!
Thanks for reading!
Now lets pretend thatset long 20000000 set long 20000000 set linesize 32000 SET ECHO OFF SET TRIMSPOOL on SET HEADING OFF SET PAGESIZE 50000 SET VERIFY OFF SET FEEDBACK OFF SET TERMOUT OFF spool C:\test.xml set serveroutput on begin dbms_output.put_line('<?xml version="1.0" encoding="utf-8" ?>'); end; / SELECT XMLELEMENT("ReportRoot",XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi", 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd" , '1.0' as "Version",sysdate as "CreationDate",to_char(sysdate,'hh:mm:ss') as "CreationTime",'1524544845' as "id"), XMLELEMENT("Porocila",XMLELEMENT("JOLY",(SELECT XMLAGG (XMLELEMENT("RefNrReport",replace('SON'||to_char(ref_ST,'00000'),' ',''))) from access_table_2 where ref_ST = &1), XMLELEMENT("ReportDate",sysdate),XMLELEMENT("Labeling",'545254450'), (SELECT XMLAGG (XMLELEMENT("Reportf", XMLELEMENT("access",access), XMLELEMENT("date",date), XMLELEMENT("datep",datep), XMLELEMENT("ModificationInfo",'M'),XMLELEMENT("ModificationReason",modireason))) from v_xml_test where id_dok = &1 and ind_print = '1')))) .extract('/*') from dual / spool off / exit
sometimes is NULL and I don't want to see it.XMLELEMENT("datep",datep),
Now lets pretend that
XMLELEMENT("datep",datep),
sometimes is NULL and I don't want to see it.
XMLForest that does exactly:
XMLForest(datep as "datep")
(internally, it is equivalent to what Alex has suggested)
-
Problems with lines due double date/time in the query
Hello
I'm trying to draw a list of the counties of the test sample. I want only 1 rank by the test result so that I can build a report in Cognos showing the rate of an outcome determined as a percentage of the total causes a range of dates.
My problem is that I get duplicate for the same result rows: in the example below, I have 2 to 5 lines for each result instead of only 1 for each result. I have this reduced up to caused by the date - the date is the same, but the times are different, if several lines are drawn. I tried to use tronque(), among other things, but although the output now shows the same date without the time part, duplicate rows are always drawn.
Any help would be appreciated!
This is the code for the query:
SELECT DISTINCT io.lab_id AS "LAB ID", l.name AS "LAB NAME", mtr.marketingtest_id AS "TEST ID", mtl.name AS "TEST NAME", mtr.marketingresult AS "MARKETING RESULT", COUNT(DISTINCT mtr.sample_id) AS "NO OF SAMPLES", TRUNC(os.statusdate) AS "STATUS DATE", os.orderstatuscodes_id AS "ORDER STATUS", io.redoorderid AS "REDOORDERID", mtl.locale_id AS "LOCALE" FROM igen_sample s INNER JOIN igen_igenityorder io ON s.igenityorder_id = io.igenityorder_id INNER JOIN igen_orderstatus os ON io.igenityorder_id = os.igenityorder_id INNER JOIN igen_marketingtestresult mtr ON s.sample_id = mtr.sample_id INNER JOIN igen_lab l ON io.lab_id = l.lab_id INNER JOIN igen_marketingtestlocale mtl ON mtr.marketingtest_id = mtl.marketingtest_id WHERE mtl.locale_id = 1 AND os.orderstatuscodes_id IN (8, 9) AND mtr.marketingtest_id = 84 AND os.statusdate BETWEEN '24-OCT-2011' AND '31-OCT-2011' GROUP BY mtr.marketingtest_id, mtl.name, mtr.marketingresult, os.statusdate, os.orderstatuscodes_id, io.lab_id, l.name, io.redoorderid, mtl.locale_id ORDER BY mtl.name
Hello
893078 wrote:
HelloI'm trying to draw a list of the counties of the test sample. I want only 1 rank by the test result so that I can build a report in Cognos showing the rate of an outcome determined as a percentage of the total causes a range of dates.
My problem is that I get duplicate for the same result rows: in the example below, I have 2 to 5 lines for each result instead of only 1 for each result. I have this reduced up to caused by the date - the date is the same, but the times are different, if several lines are drawn. I tried to use tronque() among others...
TRUNC looks like what you want. If you want a single line per calendar day, or need to GROUP BY TRUNC (os.statusdate).
AND os.statusdate >= TO_DATE ( '24-OCT-2011' , 'DD-MON-YYYY' ) AND os.statusdate < TO_DATE ( '31-OCT-2011' , 'DD-MON-YYYY' ) + 1 GROUP BY mtr.marketingtest_id , mtl.name , mtr.marketingresult , TRUNC (os.statusdate) -- <== CHANGED , os.orderstatuscodes_id , io.lab_id , l.name , io.redoorderid , mtl.locale_id ORDER BY mtl.name
If os.statusdate is a DATE, don't try to compare it to a VARCHAR2, as 24 October 2011 "." Compare DATEs to other DATEs.
Furthermore, GROUP BY product automatically separate results. If all GROUP expressions in the SELECT clause, there is not need to say SELECT DISTINCT .
Published by: Frank Kulash, November 23, 2011 09:34
-
Problem with image display in a Datagrid loaded from local files
Hello
I'm trying to get (charges from the local file system) images to be displayed in a datagrid control.
the paths are fine, but no images are displayed in the datagrid control (I use a project based Air, AS3).
DataGrid code is:
< mx:DataGrid id = "dg" dataProvider = "{myArrayCollection}" >
< mx:columns >
< mx:DataGridColumn headerText = "Image" width = "100" >
< / mx:DataGridColumn >
< / mx:columns >
< / mx:DataGrid >
The Actionscript code is:
fileStream = new FileStream();
var imageBytes:ByteArray = new ByteArray();
var stream: FileStream = new FileStream();
array7 = new Array();
for (var j: int = 0; j < fileList1.length; j ++)
{
var file1:File = File.desktopDirectory;
File1 = new File();
File1 = File.desktopDirectory.resolvePath ("DG_TEST /" + fileList1 [j] .name);
fileStream = new FileStream();
Stream.Open (File1, FileMode.READ);
stream.readBytes (imageBytes);
Stream.Close ();
array7.push (imageBytes);
array7.push (j);
}
myArrayCollection.source = array7;
I also have: [Bindable] private var myArrayCollection:ArrayCollection = new ArrayCollection();
If I Uncomment the line array7.push (j), the figures show in the DataGrid and seem to leave a line for images?
Any ideas/code (preferably because I am very new to flex/Air) to help me to display the images in the control datagrid would be greatly appreciated.
Thanks in advance,
Guida
You are welcome
don't forget to put the discussion as 'responded' to close
Maybe you are looking for
-
I sold Satellite P100 - how to cancel the registration on the Tosh site
I don't want the warranty registration/activation. I don't have it. I registered just the laptop by serial number on the site, to make information page appears each time I connect. Also, do you think I need to remove my personal information (name and
-
I bought a computer from PCSecialist in 2007. The computer has been painful, I have reinstalled several times, but this time I can not check the program.
-
Purge the database default...
Is there a way to purge old records in the database by default... SQL CE? We need to upgrade to a full version of SQL, but until I would serve some data from the previous month, so I can at least see activity yesterday. Thanks for the help! -Evan
-
What word, exel etc type software comes with Windows 7
My laptop broke earlier. New parts were needed. All software basically all was lost. A friend fixed it for me and installed the software, they thought comes with Windows 7. But it feels like still miss me things, mainly a Word, exel type software. I
-
BlackBerry Smartphones syncing calendar on my Bold 9900 with PC in Windows 8
I can't sync my calendar manually either by wifi. My e-mail work fine and synchronize. I use Windows Live Mail. When I try to synchronize manually I get a message titled "the Organizer on your computer applications are not supported" with another me