DataGrid event, what was selected?

Hi,
I have a DataGrid in my scene and I've figured out how to
populate it with XML using AS3.
The only thing I can't figure out is to determine which
element has been clicked on.
It's not an editable grid, I just want to handle when someone
selects a row in the grid and display that rows elements.
Thanks for ANY help. I'm so close.
myDataGrid.addEventListener(SELECT, mySelectHandler);
returns the error...
ReferenceError: Error #1065: Variable SELECT is not defined.
myDataGrid.addEventListener(Event.CHANGE, mySelectHandler);
returns the error...
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::Event@3aa94471 to fl.events.DataGridEvent.
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
fl.controls::SelectableList/fl.controls:SelectableList::handleCellRendererClick()
at
fl.controls::DataGrid/fl.controls:DataGrid::handleCellRendererClick()

Both DataGrid.click and DataGrid.itemClick return this
error...Parameter type must be non-null.
There is no click or itemClick event for DataGrid, is there
some way to bubble it up from underlying class?
It seems like such a simple thing, I can't understand why
click isn't an event that can be monitored in DataGrid. Must be
something simple I'm doing wrong.
TypeError: Error #2007: Parameter type must be non-null.
at flash.events::EventDispatcher/addEventListener()
at test6_fla::MainTimeline/ParseRooms()
at test6_fla::MainTimeline/LoadXML()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
flash.net::URLLoader/flash.net:URLLoader::onComplete()

Similar Messages

  • F4IF_INT_TABLE_VALUE_REQUEST - what line was selected from list displayed

    I am building an internal table and displaying it as search help using F4IF_INT_TABLE_VALUE_REQUEST.  How can I tell what line was selected from the search help?  Only one field is filled with the selection, but there are several other fields attached to this that I need in my program - but I can't tell which line was selected, and the one field is not enough information to use to get the record from the internal table.

    Hi,
    RETURN_TAB would have the selected values.
    FIELD_TAB will have the hit list fields.
    DYNPFLD_MAPPING will have the Assignment of the screen fields to the internal table.
    Regards,

  • I'm trying to transfer photos form my pc to my ipad.  Itunes defaults to All Folders under Sync photos.  Whatever file I download wipes out what was previously downloaded.  It will not let me select Selected folders.  How can I transfer additional photos

    I'm trying to transfer photos form my pc to my ipad.  Itunes defaults to All Folders under Sync photos.  Whatever file I download wipes out what was previously downloaded.  It will not let me select Selected folders.  How can I transfer additional photos without losing what I already trasnferred?

    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive (works the same with an SD card) into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • Detect what file or folder was selected in Windows File Dialog

    Hi, We have an Vibration Crontroller application that has is no DLL and no ActiveX support. I want to detect when that or any Windows application opnes a Windows "Open File Dialog" box. I'd then like to detect what file or folder was selected. Is that possible with LabVIEW? Thanks.

    That routine decodes the binary data from registry to file path.
    http://msdn.microsoft.com/en-gb/library/windows/de​sktop/bb762194(v=vs.85).aspx
    Basically, the first byte of MRUListEx listing in registry is the index of last accessed file in the file list in the sub key. If you open up your registry and navigate to the key, you will figure it out.
    Also you can drag and drop snippets on to your block diagram, if that doesnt work, save the png file to your computer and then drag and drop.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Is there a way of knowing what was downloaded/received by an iphone at a given time?

    A week ago I was abroad and kept data roaming at all times to avoid surprises. However, at some point I had to use data roaming for sending a message and unfortulately something of around 24MB was downloaded. Before that my data roaming consumption was below 1MB. I would like to contest this charge but for that I would have to know what was downloaded. My guess is that probably a pending app update was the cause of this but I would like to be sure. Is there a way of finding out details of network usage history?

    blawson wrote:
    Been bitten by LabVIEW wrote:
    I think one possibility I nixed was to use the refnum of the elements to determine which one it is.  IIRC, this is not possible because the refnum of the element is for the edit box only.
    Using LV7.0 on WinXP.
    This is indeed possible, at least in the newer versions I use.
    Take the array refnum from the click event data terminal and get a reference to the array element.  This refers to the element that was clicked, but you do need to work out how to get the index.  My method is to use property nodes to get the screen position and size of the element and the screen position and size of the array, as well as the array's Visible Index property. For each direction, take the quotient of the relative position of the element (account for padding!) over the size of an element.
    I suspect that taking the mouse coords and comparing to the array's sizes in pixels is similar, although I trust my method for events that don't have mouseclicks (what coords does Array:shortcut menu selection(User) return if you used the keyboard?)
    Here's an old version I happened to have open.  I've posted about this before, I suspect I have a clearer version in my gallery.  I use this method in my example code contest entry to work out which square of the chessboard is clicked.
    Thank you for that one!
    I am currently "locked up behind a down-rev fence" (working an old app in an old version) so I had not heard of that.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I am trying to project a film from an ipad mini with a vga cable to a projector.  The film played, but the ipad did not mirror what was being projected.  I am trying to be able to mirror the devices AND isolate the window so I can use different menus wit

    Hello-
    I am trying to project a film from an ipad mini with a vga cable to a projector.  When tested, the film played, but the ipad did not mirror what was being projected, it was a black screen.  I am trying to be able to mirror the devices AND figure out how isolate the window so I can use different menus with the film still playing.
    Any one know an app or softward that i can use?
    Thank you!
    Christie

    To move an iPhoto Library to a new machine:
    Link the two Macs together: there are several ways to do this: Wireless Network,Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    and select the Library that you moved.  That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    Your first option didn't work because you imported one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
    Your second option didn't work because you simply referenced her library on the old machine.
    Regards
    TD

  • How to get what was typed on a window which is inside another window

    Hey guys!
    I'm having a problem, i have created a program and when you click on a certain button a small window appears which was created from a class that i named Window...anyway this small window asks for a name, but somehow i can't send what was written in that window to the program that contains the main window...
    i've tried creating a method in the class Window, which is called public String returnName(){ return, name;} but this doesn't return anything.
    i hope you guys understand what i'm trying to say, if you do, any ideas of how i could do this???!!
    -O.D.

    this is the class Name1Window:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import javax.swing.JTextField;
    public class Name1Window extends Frame implements ActionListener, WindowListener
         Label name;
         TextField txName;
         Button ok;
         Panel Pnl, PnlName, PnlOk;
         private String n;
         private String ln;
         public Name1Window()
              n= "";
              ln="";
              setSize(200,110);
              setTitle("Search");
              Pnl= new Panel();
              Pnl.setLayout(new GridLayout(2,1));
              PnlName= new Panel();
              PnlName.setLayout(new GridLayout(2,2));
              PnlOk=new Panel();
              PnlOk.setLayout(new GridLayout(1,1));
              name= new Label("Name");
              txName= new TextField(10);
              ok= new Button("OK");
              PnlName.add(name);
              PnlName.add(txName);
              PnlOk.add(ok);
              Pnl.setBackground(new Color(161, 187, 241));
              Pnl.add(PnlName);
              Pnl.add(PnlOk);
              add(Pnl);
              ok.addActionListener(this);
              addWindowListener(this);
         public void actionPerformed(ActionEvent e)
          {//If the user clicks ok:
               if(e.getSource()==ok)
                    String n1, ap1;
                   n1= txName.getText();
                   //calls the method save name and sends whatever was typed in txName:
                   saveName(n1);
                    dispose();
         public void saveName(String n2)
              this.n= n2;
              //If you write a System.out.println(n) it WILL print what was typed!!
               public String returnName()
              return n;//It's gonna return a " "
               public void windowClosing(WindowEvent e)
               //It exits the small window; Name1Window
               dispose();
                public void windowOpened(WindowEvent e){}
          public void windowClosed(WindowEvent e){}
          public void windowActivated(WindowEvent e){}
          public void windowDeactivated(WindowEvent e){}
          public void windowIconified(WindowEvent e){}
          public void windowDeiconified(WindowEvent e){}
    }

  • 'No action was selected.' error when submitting a form

    I have been having problems getting a form to initiate my workflow process. I open the form in the form manager, fill it out, hit the submit button and get the following error: "No action was selected. Your data has been saved in your drafts folder. Open the work item again, select an action, and resubmit the form"
    What makes this issue especially tough to debug is that the workflow server appears to be caching the error. For instance, I start with a simple form invoking a simple workflow -> that works. I then change the InitForm to use the real form (complex) and I get the error. If I switch back to the simple form, the error persists. The only way that I can get back to a working combination is to create a new simple workflow and simple form from scratch (and that does not always work). Does anyone have a suggestion for the "no action was selected" error, or for the strange caching that appears to be happening with the workflow server?
    Thanks in advance
    Chris

    All,
    This appears to be an issue with Forms 7.1.
    From Adobe Support:
    "Under normal circumstances, if you take Workflow out of the picture and submit data from a PDF form that has a schema associated to it, the submitted data will conform exactly to the schema. So if you have
    fields on the form that don't correspond to nodes in the schema the data for those fields will not be submitted. However, when you add
    Workflow into the picture, the data for the workflow fields MUST be
    submitted regardless of whether they are in the schema or not because
    it's essential for things to work. Those nodes get removed from the DOM at a later time so that the data that's in your form process variable will conform to the schema. With LC Forms 7.0.1 installed this is working fine and all the Workflow fields are passed on fine. With LC Forms 7.1 installed, all the Workflow fields get submitted except for the AWS_ACTION field. Which is why Form Manager then complains that no action was selected."
    Workarounds:
    1) Don't supply Choice List options for the init form in the workflow
    2) Don't associate your form with a schema
    3) Add an element into your schema for AWS_ACTION of type xsd:string
    such that it will be submitted along with the rest of the data.
    Option #3 worked for me, and fixed my issue.
    Chris

  • VROPs - Can you create a report to show when a VM was modified and what was changed?

    I am having trouble trying to craft a report/view that can show me what I am looking for.  I figured since this is capacity related vROPs may keep track.  Is there a way to show when a VM was modified and what was modified?  Looking mainly for vdisk, vCPU, or vRAM.
    Thanks for the help or suggestions.

    Hi newbski1,
    There are few things you can try to help with this.
    1. The events view does show you resource changes, it isn't terribly detailed but it will help
    2. Depending on your version you can also look at Configuration Manager which is part of the vRO suite that will show you configurations changes.
    Cheers
    @iiToby

  • F.5E message- nothing was selected

    Dear all,
    Executed F.5E for the month of Junu201909 and generated a batch session, processed (foreground) the same in SM35,  system prompted an error msg: Period not open,  simultaneously we have opened the GL Account Posting Period _OB52 and tried to process the batch, system still throwing error message, so we thought of stopping the batch session,,, as system is not allowing to do so, we have forcibly come out of the session u201C/nu201D then again checked in SM35, the status is showing as still processing,,, we have deleted the session,
    Now the problem has come,,, again we have tried to execute F.5E for the month of Junu201909 after calculating F.5D, system prompting a msg: nothing was selected,,,
    - Can we post balance sheet adjustment for the same period more than one time, if so where are we going wrong? Please let us know how to overcome this message: nothing was selected.
    regards,
    Kumar

    Hello Kumar
    This is a common problem which users often do.
    Normally what happens is when you run f.5E, system first stores the run id and run date in a particular date. the second step of the program is to post entries. Now when you have created the batch run and executed it, the system should have stored run id and date details but since you abrutly deledt the job the second task  was not carried out.
    now if you try to rerun the program system checks wether ther run id and run date have been store for a particular run and since it finds it, it is givin you a message" nothing was selected".
    To overcome this problem you have to run t-code F.5G. The run details are normally stored in Table RF180. when you run T-code F.5g is would reverse the entry stored in this table. Please note that F.5G does not automatically reverses any transaction entries posted by system. the last run in the system is reversed first.
    Please do the needful.
    1. check if transaction entries are posted, if any reverse the accounting docs manually.
    2. Use t-code F.5g. check whether the system is selcting the write run to be reversed, you can check the time and date for run to be reversed.
    3. once you execute f.5g  you would be able to run F.5E again for your balance sheet adjustments.
    Thanks
    Sanjeev

  • Identifying which line was selected from a WebDynpro table

    Hi,
    can any one give me some advice, I've created a view which displays a table of filenames, which in fact are "LinkToAction" columns. The idea was that when a filename(LinkToAction) was selected, I could retrieve the appropriate file from the Applicatio server and Open the file in Excel or Save as Excel. My problem is, when I select a filename I don't know how to identify what line was selected in the table. Any advice would be great.
    Thanks,
    C

    Hi , Just identify its element which is lead selected and read attribut of that element .
    Have the code for the same
    DATA:
        node_nd_worlflow                    TYPE REF TO if_wd_context_node,
        elem_nd_worlflow                    TYPE REF TO if_wd_context_element,
        stru_nd_worlflow                    TYPE wd_this->element_nd_worlflow ,
        lead_selection_index                TYPE i,
        relation_no                         TYPE guid_32.
    navigate from <CONTEXT> to <ND_WORLFLOW> via lead selection
      node_nd_worlflow = wd_context->get_child_node( name = wd_this->wdctx_nd_worlflow ).
    @TODO handle not set lead selection
      IF ( node_nd_worlflow IS INITIAL ).
      ENDIF.
    get element via lead selection
      lead_selection_index = node_nd_worlflow->get_lead_selection_index( ).
      elem_nd_worlflow = node_nd_worlflow->get_element( index = lead_selection_index ).
    elem_nd_worlflow->get_static_attributes( IMPORTING static_attributes = stru_nd_worlflow ).
    Cheers
    Parry

  • How do I create a DVD with no theme, i.e., it plays what was recorded when inserted in the player?

    How do I create a DVD with no theme, i.e., it plays what was recorded when inserted in the player?  Nothing extra, just the recorded content.

    Hi
    No Menu on DVD
    from. Mishmunken
    How to create a DVD in iDVD6 without menu (there are several options)
    1. Easy. Drop your iMovie in the auto-play box in iDVD's Map View, then set your auto-play item (your movie) to loop continuously.
    Disadvantage. The DVD plays until you hit stop on the remote
    2. Still easy. If you don't want your (auto-play) movie to loop, you can create a black theme by replacing the background of a static theme with a black background and no content in the drop-zone (text needs to be black as well).
    Disadvantage. The menu is still there and will play after the movie. You don't see it, but your disc keeps spinning in the player.
    3. Still quite easy but takes more time. Export the iMovie to DV tape, and then re-import using One-Step DVD.
    Disadvantage. One-Step DVD creation has been known to be not 100% reliable.
    4. (My preferred method) Easy enough but needs 3rd party software. Toast lets you burn your iMovie to DVD without menu - just drag the iMovie project to the Toast Window and click burn.
    Disadvantage. you'll need to spend some extra $$ for the software. In Toast, you just drop the iMovie project on the Window and click Burn.
    5. The "hard way". Post-production with myDVDedit (free-ware)
    Tools necessary. myDVDedit ( www.mydvdedit.com )
    • create a disc image of your iDVD project, then double-click to mount it.
    • Extract the VIDEO_TS and AUDIO_TS folders to a location of your choice. select the VIDEO_TS folder and hit Cmd + I to open the Inspector window
    • Set permissions to "read & write" and include all enclosed items; Ignore the warning.
    • Open the VIDEO_TS folder with myDVDedit. You'll find all items enclosed in your DVD in the left hand panel.
    • Select the menu (usually named VTS Menu) and delete it
    • Choose from the menu File > Test with DVD Player to see if your DVD behaves as planned. If it works save and close myDVDedit.
    • Before burning the folders to Video DVD, set permissions back to "read only", then create a disc image burnable with Disc Utility from a VIDEO_TS folder using Laine D. Lee's DVD Imager.
    //lonestar.utsa.edu/llee/applescript/dvdimager.html
    hope this helps!
    From LynnLU USA
    www.mediasoftmac.com/dvd-creator-articles/convert-mov-video-to-dvd-on-mac.html#1 29
    Yours Bengt W

  • I have lost nearly all my photos and events.  I received a message effectively saying that I need to upgrade from an old base.  I think I may have tried to open an event that was stored in iPhoto Buddy a few days ago.

    I have lost nearly all my photos and events.  I received a message effectively saying that I need to upgrade from an old base.  I think I may have tried to open an event that was stored in iPhoto Buddy a few days ago.  iPhoto Buddy is not supported in Lion.  How can I retrieve my phjotos?

    What version of iPhoto?
    Assuming 09 or later...
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Need to return a cell value in a row where a date was selected from a column

    I'm looking for a formula for OS Numbers and can't seem to find it.
    I use the MIN function to select the earliest date in a range of cells.  The dates all flow down one column.  I need to be able to have numbers return the contents of a cell in the same row that was selected as the earliest date.
    For example:
    ID
    Exp. Date
    3
    4
    LJ-1
    May-2014
    LJ-2
    Jun-2014
    LJ-3
    Jul-2014
    LJ-4
    Aug-2014
    LJ-5
    Sep-2014
    I need to search for the earliest date in the 'Exp. Date' column and once it finds it, return the value from the 'ID' column.
    So, in this case, i would need a formula to find May-2014 and return LJ-1 to the cell.
    Any help would be greatly appreciated.

    Hi 86,
    Rearrange your table then add another table to find the result:
    A2 in Table 1-1 will find the earliest date in Table 1 without having to sort Table 1.
    A2 contains this formula
    =MIN(Table 1::A)
    B2 in Table 1-1 uses VLOOKUP to find which ID matches that MIN date.
    The reason for rearranging your table (Table 1) is that VLOOKUP compares a search value to the values in the leftmost column of a specified collection.
    (in this case, it looks in the leftmost column of the range Table1::A:B, then returns a match from column 2 of that range).
    I forgot to include "Exact Match" in the VLOOKUP formula. Is that what you want, or "Close Match"?
    Edit: I don't suppose that matters because MIN will always give an exact match. Duh!
    Regards,
    Ian.

  • How do you specifically let the Itemlistener know which Item was selected..

    How do you specifically let the Itemlistener know which Item was selected in a JComboBox? Anyone has any idea? What should the coding look like?

    getSelectedItem()

Maybe you are looking for

  • How do I get out of this service?

    I attempted to switch from my cable to verizon online. A mistake it turns out. I was asked to call a 800 number to "verify my credit". So I called and the lady said I was all set about 5 minutes but was going to transfer me to someone else who would

  • Creating PDF file by scanning multiple docs

    I am using Apple iMac and trying to scan muliple page document into one singe PDF file. I am unable to do the same. I am using the Printer dialog box (scan tab) under system preferences on the Mac .

  • Photoshop CS3 Ext./Quits on "Save As" command in Leopard

    IMac Leopard/3GB RAM/500GB HD: CS3 worked fine with IMac Tiger; just upgraded to Leopard and "Save As" command crashes the whole program. Message: "The application Photoshop has unexpected quit. A crash report has been generated." Then Photoshop goes

  • List of features of new Patch level

    Hello experts, Can you advise how to find list of features of new patch level, would be great if someone shares the link. Attached is one such sample. I am looking for features of PL 5 and 6 of 9.1 Thanks Deepak

  • Itunes download error when buying movie.

    Says movie has been purchased, but will not download and says retry. This is the ongoing pattern every time retry is pressed. Please help.