File browsing and showing selected files in a datagrid? i'm missing something small... i hope

I am currently allowing the user to browse and select multiple files. I'd like to display the selected files in a datagrid. Here's my code. What am I missing?
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                                     xmlns:mx="library://ns.adobe.com/flex/mx">
  <fx:Declarations>
  <!-- Place non-visual elements (e.g., services, value objects) here -->
  </fx:Declarations>
  <fx:Script>
                    <![CDATA[
                              import mx.collections.ArrayCollection;
                              public var Files:File;
                              [Bindable]
                              public var arrUploadFiles:Array;
                              private function init():void
                                        arrUploadFiles = new Array()
                                        Files = new File(); 
                                        Files.addEventListener(FileListEvent.SELECT_MULTIPLE,onSelect_multiple_files); 
                                        Files.browseForOpenMultiple("Select Files to Send!!"); 
                              public function onSelect_multiple_files(f_evt:FileListEvent):void
                                        for each(var tempF:File  in f_evt.files){ 
                                                  tempF.load(); 
                                                  arrUploadFiles.push(tempF);
                                                  trace (tempF.nativePath);
                    ]]>
  </fx:Script>
          <s:Button x="259" y="454" label="Browse for Files" click="init()"/>
          <s:DataGrid x="159" y="211" requestedRowCount="4">
  <s:columns>
  <s:ArrayList>
                                        <s:GridColumn dataField="dataField1" headerText="Column 1"></s:GridColumn>
                                        <s:GridColumn dataField="dataField2" headerText="Column 2"></s:GridColumn>
                                        <s:GridColumn dataField="dataField3" headerText="Column 3"></s:GridColumn>
  </s:ArrayList>
  </s:columns>
  <s:typicalItem>
                              <fx:Object dataField1="Sample Data" dataField2="Sample Data" dataField3="Sample Data"></fx:Object>
  </s:typicalItem>
  <s:ArrayList>
                              <fx:Object dataField1="data1" dataField2="data1" dataField3="data1"></fx:Object>
                              <fx:Object dataField1="data2" dataField2="data2" dataField3="data2"></fx:Object>
                              <fx:Object dataField1="data3" dataField2="data3" dataField3="data3"></fx:Object>
                              <fx:Object dataField1="data4" dataField2="data4" dataField3="data4"></fx:Object>
  </s:ArrayList>
  </s:DataGrid>
</s:WindowedApplication>

Arrays do not send out change events so the DG doesn’t know you pushed things onto it.  If you used the DG’s dataProvider it will have wrapped the array in an ArrayCollection and will notice the changes.  There is a FileSystemDataGrid component by the way.

Similar Messages

  • Moving files within a session - am I missing something?!

    I posted about this last week but thought I'd ask pretty much the same question a different way! (And thanks to the guys who answered before.)
    OK, I make radio documentaries. Yesterday, I finished a 60 minute piece that was a continuous flow of sound bites, sound effects, music ... typical BBC radio 4 style stuff. When assembling, I build in four or five session files of ten to fifteen minutes each (Ideally I'd prefer to build in a single file but it causes too many problems). As a producer, the bigger the file, the better I can sense the overall pace of my work. Which is important.
    Yesterday, I was frantically polishing and decided, for example, that I wanted to slightly adjust a file in the middle of the session by a small amount, necessitating moving everything either to the left or right (depending which direction I move the file). As I discovered here last time, it is not possible to mark all the files from a certain point automatically, you have to do it file by file with the cursor. This works, but the truth is that you can easily miss a file. And when you are under time pressure, the risk increases. Once you have moved a block, the only way to check you did it properly s to listen to the whole file, which of course, I do, but it adds to the time.
    But Audition is used by radio people. Any documentary maker needs to be able to fine tune in the way I described and I can't believe that the programme designers didn't think of this. So logically, there must be other ways to work around the problem. But what are they?
    I have to say that Audition meets all my needs as a producer, except for this. But when it comes to polishing and fine tuning, I'm beginning to find it frustrating. So, documentary makers, do you recognise what I'm saying and how do you cope?

    >But Audition is used by radio people. Any documentary maker needs to be able to fine tune in the way I described and I can't believe that the programme designers didn't think of this. So logically, there must be other ways to work around the problem. But what are they?
    >As I discovered here last time, it is not possible to mark all the files from a certain point automatically, you have to do it file by file with the cursor. This works, but the truth is that you can easily miss a file.
    I've yet to miss a file by the 'swipe' method using the move/copy clip tool, but for an entire session minus one file, I'd do it slightly differently. I either move just the file I want to (or group of files - groups are very useful in this context) and add time into the session, or select all of the files and remove just the one I want to leave alone. That way's much safer, because if you select the whole session (Ctrl+A) as a discrete action, you don't have the worry of missing anything - and what you actually want to do becomes a positive move, not a negative one, if you see what I mean.
    Mostly though, you explore different methods, and find the one that best suits you - as mentioned, there are several options...

  • Movies selection by rating, actor, genre - have apple missed something?

    Look, am I missing something or can Apple not be bothered developing the software for the ATV? I am loading movies and realised there is no other way of selecting a movie appart from the A-Z list, how daft if that? Yet iTunes has a genre tab and you can create a playlist for movies (which wont then copy to the ATV!). Should it also not limit covers for those movies that meet the parenal controls, some covers should not be seen, eg horror for instance. So come on Apple, the id tags are there let's use them so we can select by rating, actor, genre, year etc...

    Yeah.. Genre is there so as long as your movies are tagged with a genre, you will see Genres above the A-Z list of movies when you go to the My Movies section. (you didnt say you were doing this, but if you are encoding movies use Meta-X for tagging... thats all I will say, just google it fill in the rest)
    As far as being able to list by Actor, Rating, Year, and the rest it wouldn't suprise me if that gets added at some point. Thats the great thing about apple tv is that if you are missing a feature now, you might see it sooner or later.
    Wanna "bother" apple about developing a feature enhancement? do it here:
    http://www.apple.com/feedback/appletv.html
    You might think they don't listen, but they did add music video playlists in 2.2! maybe one day we'll see movie playlists...
    Message was edited by: pocket8077

  • Ive downloaded the latest version of itunes and now i cant open itunes. it says im missing something but when i go to download it again just to be safe it keeps saying the same thing and i cant open my itunes anymore

    I cant open my itunes. it said i needed to download the 10.5.2 version to be able to upload the songs to my new ipod (touch) and when i went to do that my itunes wont open at all. me and my mom tried everything. i even went on my brothers account to get at least some songs and his did the same thing even though i didnt download it to the newest version. after i downloaded the lastest version and tried to open my itunes it said it was missing something so i went and downloaded it again. i know that was probably bad to do but i didnt know what else to do. even though i went and did that it keeps saying that im missing something. i dont know what to do to get my itunes to work again and if ill have to redownload all my songs and videos again.
    Pleas help.
    Thanks much,
    Sammii

    Plug your iPod into your computer, it will begin to sync. Now check to see if the playlists have been added.
    If not, go to the songs tab under your iPod when it is connected to iTunes, Unless you have checked "Sync all songs (or something to those words)" you should have an option on what you can put on your iPod. Make sure to check the playlists that you want on your iPod.

  • When i m open any link in new tab its shows nothing its browse and showing blank page

    for eg when i search some thing in google search many link of websites are showing in list when i click any link to open with new tab it showing blank page

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • When I use Firefox as my browser and go into email the font on my screen is so small that you can hardly read it. I cannot make it larger, even going into the email account and enlarging the font? Help!!! It is only happening on email.

    I am using bellsouth.net and if I use IE it is the correct size. I am running Windows 7 on my laptop.

    Try resetting the zoom level for that domain.
    See this:
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • I have purchased apple tv and it wont accept my gmail ID, am I missing something?

    I have tried several times to set up my apple tv, but I cant't get passed the Apple ID, maybe I'm using a wrong gmail address but thats my Apple ID, any help would be appreciated.

    my AppleID is a Yahoo! email address and works fine... I'd log in and out of it on iTunes to make sure you are entering the right Apple ID...

  • HT1926 why can't i sign in for itunes and buy songs. it says error 0000000xmething am i missing something and what is an extender player i am missing that

    why can't i sign in for itunes, it says the itunes store is unavaible. but it has been for a whole month now, why can't i buy songs, it lets me listen to the radio only but not buy or open my account, it says error 00000000x something, and what am i missingto listen and download and to buy itunes

    Hi Bill!
    If the decrypt went without any interruptions or anything that looked like an error then your computer is probably OK. The fact that none of your accounts can log in leads me to believe you may some corruption somehwere else.
    Find your software installation CD or DVD that came with your Mac or that you purchased in a store and insert it into the drive. You can boot to it by holding down the "C" key at startup.
    After you pass the initial screen for language you'll see the software installation page. Ignore this. Instead look under the menus for Disk Utility. Run Repair Permissions and Repair Disk. Restart and try to log in again.
    If that doesn't work then restart from the disk again and look for the menu option to reset an administrator password. If you can get into just one admin account then you should be able to reset passwords for any others.
    If resetting an admin password doesn't work then I suggest you look into using a third party tool such as DiskWarrior from Alsoft <http://www.alsoft.com>. It is an excellent tool for repairing disk problems. If you have Apple Care then you may have also receieved a CD for TechTool. You can run that as well.
    Hope this helps!
    bill

  • BOM and routing selection during production order creation

    I am having a material which is having only one BOM and one routing. Now for this material in the material master in the selection method indicator i have put as 3 as selection only by production version. But i have not maintained any production versions in the work scheduling view for checking purpose. now when I am creating a production order for this material manually through CO01 system is allowing to create production order. when is the selection is only by production version how system is allowing to create production order when there is no version is maintained.

    Hi Kumar,
    Looking into scenario as u have maintained,if you have define the selection id and not maintained the production version then it should ask for the production version and show the following
    Since the production version is missing, you cannot execute the desired processing step.
    As well as pls look into OPL8 ,what Production Version is maintained.
    Thanks,
    Mohit
    Edited by: Mohit Sharma on Feb 4, 2011 5:35 PM

  • What is the method for folder-browsing and selecting a non media file type in Android? [Air+AS3]

    Dear Gurus,
    Being a newbie, I have been searching hi & low for the method to browse and select non-media related file type in android.
    Besides the following these which I have reference from the AS3 Documentation (http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7fe4.html#WS5b3cc c516d4fbf351e63e3d118676a4c56-7ff0)
    var fileToOpen = File.documentsDirectory.resolvePath("");
                                  selectFile(fileToOpen);
                                  function selectFile(root:File):void
                                                 //var txtFilter:FileFilter = new FileFilter ("3D Model File", "*.obj; *.3ds;*.awd");
                                                 root.browseForOpen("Open",null);
                                                 root.addEventListener(Event.SELECT, selectedFile);
                                  function selectedFile(e:Event):void
                                                 trace(fileToOpen.nativePath + " file selected");
    I have went through the following threads yet find no clear workable solution to it.  The closest reference is written in Flex MXML, and I have no luck for converting it to AS3 as there are several properties which I can't get it right.
    http://forums.adobe.com/thread/943887 | http://forums.adobe.com/message/4107990#4107990 | http://forums.adobe.com/message/4548154
    Someone did mention some possible solutions through ANE but it is just too far beyond.  Even, the closest on-the-shelf solution of ANE by http://myappsnippet.com/file-browser-air-extension/ only work best to an extent and not truely "native" as the UI is not default from Android.  It has workable I/O but poor usability; you can't skin it.
    Is there any other workaround solution to this general I/O question?  I would love to hear from everyone here.

    The short answer to my knowledge is there is nothing you can invoke from AIR to open an OS-level dialog to browse/select a file. All implementations typically are people writing their own browser. They crawl the folders/files recursively and write their own display for the files. You can see a few on SO:
    http://stackoverflow.com/questions/12255418/as3-air-browse-for-file-on-sd-card
    http://stackoverflow.com/questions/12257626/as3-get-zip-file-on-phone-from-app-file-path-t hen-unzip
    It's not to terribly hard to code something like this (especially with that starter code). Otherwise, like you found, an on-the-shelf ANE is the only way I believe you can invoke the Android Intent for a file dialog. At that point skinning won't really be terribly easy given the nature of Android users who are completely allowed to customize their UI top to bottom.
    The safest bet is just let that posted code recurse and find the files you tell it to while displaying the list to the user. You can use some pre-written GPU-level lists that you can skin yourself using FeathersUI:
    http://www.feathersui.com (uses Starling)
    Or you can use one of the Flash Pro List components which will be quite a bit slower being they're not GPU optimized like some Flex Spark components.

  • When I publish my site on one specific page where i've added {tag_pagecontent} I get the error:Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
    'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
    I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
    HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
    http://www.musicstudentsforhire.co.uk/musicians-samples.html
    It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.

    I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.

  • Browse and upload file - Forms(6i)

    Hi Friends,
    How to enable users to browse and select a file from their local machine in a D2K forms (6i) and upload to the database unix directory
    Thanks
    Ramya

    Hi Friends,
    my exact requirement -
    I have a form with 2 buttons -
    First Button -
    I have to create a external table,the file that is associated with external table is browsed in the form through button,after the file is browsed ,the same file has to be placed in unix directory.
    Second button -
    This button is to execute a packaged procedure which will be using the data from the file associated with the external table that we placed in the unix directory ( which i explained under button1)
    Thanks
    Ramya

  • Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    I've been building a site in Muse successfully until today when I get this error message in the browser, publishing to business catalyst as a test bed:
    Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.
    Clearing the cache has no effect and I have checked the assets and there are no error symbols. This happened after trying a google translate code in the <head> and a HTML snippet on the master template, I've since removed it but that the last action I took that I can think may have had an effect.
    Viewing the source of the page in Safari hash;t helped other than it shows ALOT of html (including some elements i can;t relate to in my site design) and states there are three errors:
    [Warning] Invalid CSS property declaration at: ; (index.html, line 1)
    the site is Kingsdown Holiday Homes - Self Catering Chalet Rental at Kingsdown Park, Kent | Home
    I started this site in Muse CC and then recently upgraded to Muse CC 2014, and I had install issues so deleted the original program (this then forced the download of the new version which was not automatically downloading even though CC notified me that an update was required.
    Any information gratefully received.
    Thanks,
    Andrew

    Same problem here but it has nothing to do with a cellular connection.
    Created the site http://www.blackdot.com in Muse 7.4.3 with no issues. Just updated the .muse file today to Muse CC 2014 and reloaded to our web server. Now I am getting the error "Some files on the server may be missing or incorrect." when viewing the site from the latest version of all browsers (Safari, Firefox, Chrome) on a Mac and all browsers on a PC (Safari, Firefox, Chrome, Explorer), also mobile Safari on an iPad.
    My connection is wired broadband, not a mobile or wireless connection. I am not using the Muse "Upload to FTP host…" option and will not be using it. I am simply exporting as HTML and copying the files to my server. I have deleted all files from the web server and recopied the updated site with the same error result. This is the exact same procedure I used to load the initial site with the prior version of Muse.
    It does not seem like there is an existing solution to this problem although many others are experiencing it. It looks like I will need to manually edit each page to remove the error message coding from the html files. Any tips on how to strip out the alert message from the html?
    UPDATE
    For anyone else experiencing this issue, I was able to edit the .html files for my site to remove the code responsible for this alert message. If you wish to edit your .html files you must make the same edit to every .html file in your site export including the top level "index.html" and all .html files inside the "tablet" and "phone" folders if you have them.
    The coding to remove is at the bottom of each .html file:
    (Muse.assets.outOfDate.length||Muse.assets.required.length)&&alert("Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.")
    Make sure you do not remove any semicolons or braces {} when making this edit. Just remove the text shown above. You will obviously need to remake these edits if you export your site as HTML in the future.

  • My macbook won't strat and show file with question mark on it?

    Hi
    is there anyone can help me please my macbook can't boot and show file with "?"mark on it. 

    Restart and hold command + R (both keys) down. The screen will show four options. Select Disk Utility. Next click on the name of your drive, and run Repair Disk.
    After that is done, restart in the usual way.

  • Single click to show selected file in editor when in "edit view"?

    Anyone know if there is an option to set single click to show selected file in editor when in "edit view"?  Instead of having to double click?

    I would also like to be able to "right-click > edit source file" in multi-track view WHEN A CLIP IS GROUPED.
    Currently, when a clip is grouped with another clip, if you select a portion of that clip to edit, then right-click it, IT WILL NOT ALLOW YOU TO "EDIT SOURCE FILE" until you have ungrouped then re-selected it, which is cumbersome.
    Not only do you have to do that, but upon returning to MT VIEW you have to remember to re-group that clip with the other clips, not being able to right-click and edit the source file of grouped clips adds unnecassary trouble and confusion to the interface, and for what?

Maybe you are looking for

  • Data load failed while loading data from one DSO to another DSO..

    Hi, On SID generation data load failed while loading data  from Source DSO to Target DSO. Following are the error which is occuuring-- Value "External Ref # 2421-0625511EXP  " (HEX 450078007400650072006E0061006C0020005200650066 Error when assigning S

  • Error while opening workspace in JDev

    Hi Experts, I am getting the following error while opening a workspace in JDev. " XYZ.jws was saved in version file format and cannot be opened with an old version of Jdeveloper " Is it because of wrong committing of files to Repository? Thanks

  • Issues installing CS4 upgrade from CS2?

    Hello, I recently had to replace my hard drive on my Mac and am now in the process of installing CS4 Design Premium. I've downloaded the files from the Adobe website and when attempting to install I enter in my CS4 upgrade serial number and it is acc

  • Count of tables and its rows...

    Hi all, I have a table ( back_up) which contains tablename,owner,last update..etc..when i count this shows 36 tables. now issued one query: select table_name,num_rows from all_tables where table_name in( select table_name from back_up); when i run th

  • How to verify  if an IPV6 address entered in a textbox is valid ?

    Hi, How to verify if an IPV6 address entered in a text box is valid. I have a swing application. Until now we used only IPV4 address and we had a gui component with only four entries, which checked if the number entered is <= 255, so the user had to