Getting info from advanceddatagrid. Please help me.

I know http://forums.adobe.com/thread/131416 has the answer inside but i dont understand what it means (hierarchy and cursor thingies)  and how to use it. I only manage to understand until the getting selected index, and I got it. But I dont know how to use it to extract the data from that row and trace it out. please help me add on to my doubleClickHandler function. These are my codes.
my xml file.
<location locations="Singapore">
<locations Region="north">
<details l_id="7" l_title="Causeway Point" street="1 Woodlands Square, #01-39 Causeway Point"/>
<details l_id="17" l_title="IMM Building" street="2 Jurong East Street 21, #01-51"/>
</locations>
<locations Region="west">
<details l_id="4" l_title="Arena Country Club " street="511 Upper Jurong Road, #01-06"/>
<details l_id="19" l_title="Jurong Point" street=" 63 Jurong West Central 3  #B1-54/55 Jurong Point"/>
</locations>
</location>
my actionscript code in the main mxml file
private function doubleClickHandler():void
                var item:Object = agd.selectedItem;
                var index:int = agd.selectedIndex;
                if (!item || index == -1)
                return ;
                Alert.show("Double Clicked item index:" + index);            
<mx:AdvancedDataGrid id="agd"
doubleClickEnabled="true" itemDoubleClick="doubleClickHandler()">
        <mx:columns>
            <mx:AdvancedDataGridColumn dataField="@locations"
                headerText="Location"/>
            <mx:AdvancedDataGridColumn dataField="@l_title"
                headerText="Title"/>
            <mx:AdvancedDataGridColumn dataField="@l_street"
                headerText="Street"/>
        </mx:columns>
    </mx:AdvancedDataGrid>

Hi,
Please see following code,
            private function doubleClickHandler(event:MouseEvent):void
                var item:Object = event.currentTarget.selectedItem;// if you know id for grid you can provide that also,
                var index:int = event.currentTarget.selectedIndex;
                Alert.show("Double Clicked item index:" + index);// you have provided it after return so it wont come always!
                if (item != null || index == -1)
                      return ;
                else
                    Alert.show("locations : " + item.@locations);
Hope this will work for u.
Thanks.

Similar Messages

  • I have the latest Mac Air 13" and I have a Seagate 500MB external hard disk I cant copy or Cut any files on the hard disk and I cant even delete any files. I have the settings as Read and Write in the get info tab. Please help

    I have the latest Mac Air 13" and I have a Seagate 500MB external hard disk I cant copy or Cut any files on the hard disk and I cant even delete any files. I have the settings as Read and Write in the get info tab. Please helpand also note that my hard drive was formatted on a Windows 7 Laptop.

    thats the problem, its in MSDos (Fat) or NTFS for Windows.
    Options.....
    1. offload all that data on the HD onto your PC, THEN format the HD in EXFAT for use on BOTH PC and Mac for read/write.....then reload all (or as you need) that data back onto the HD
    2. get another HD, and format it for Mac OSX extended journaled.
    FAT32 (File Allocation Table)
    Read/Write FAT32 from both native Windows and native Mac OS X.
    Maximum file size: 4GB.
    Maximum volume size: 2TB
    You can use this format if you share the drive between Mac OS X and Windows computers and have no files larger than 4GB.
    NTFS (Windows NT File System)
    Read/Write NTFS from native Windows.
    Read only NTFS from native Mac OS X
    To Read/Write/Format NTFS from Mac OS X, here are some alternatives:
    For Mac OS X 10.4 or later (32 or 64-bit), install Paragon (approx $20) (Best Choice for Lion)
    Native NTFS support can be enabled in Snow Leopard and Lion, but is not advisable, due to instability.
    AirPort Extreme (802.11n) and Time Capsule do not support NTFS
    Maximum file size: 16 TB
    Maximum volume size: 256TB
    You can use this format if you routinely share a drive with multiple Windows systems.
    HFS+     ((((MAC FORMAT)))  (Hierarchical File System, a.k.a. Mac OS Extended (Journaled) Don't use case-sensitive)
    Read/Write HFS+ from native Mac OS X
    Required for Time Machine or Carbon Copy Cloner or SuperDuper! backups of Mac internal hard drive.
    To Read HFS+ (but not Write) from Windows, Install HFSExplorer
    Maximum file size: 8EiB
    Maximum volume size: 8EiB
    You can use this format if you only use the drive with Mac OS X, or use it for backups of your Mac OS X internal drive, or if you only share it with one Windows PC (with MacDrive installed on the PC)
    EXFAT (FAT64)    ------Can read/write from both PC and Mac
    Supported in Mac OS X only in 10.6.5 or later.
    Not all Windows versions support exFAT. 
    exFAT (Extended File Allocation Table)
    AirPort Extreme (802.11n) and Time Capsule do not support exFAT
    Maximum file size: 16 EiB
    Maximum volume size: 64 ZiB
    You can use this format if it is supported by all computers with which you intend to share the drive.  See "disadvantages" for details.

  • Where can I found "get info.vi ?please help

    where can I found "get info.vi ?please help

    This VI is not one on the palette. I suggest using a search VI that can look in libraries to see if it is on your computer. You can find it at our advanced search page. Goto www.ni.com >> support >> advanced search (it is at the bottom--click on the words). This lauches the best way to search our site because under option 2 you can limit your searches to resources of interest. Enter vi library search in the all the words field and search just the example programs. It will be the one entitled Finding a File.
    Jeremy Braden
    National Instruments

  • RSR_OLAP_BADI  or RSR00002 --not getting triggered from RSRT --Please Help

    Hi All
    Quick reposnse is highly Appreciated and rewarded.
    I wanted to implement a Virtual Key Figure .I have implemented RSR_OLAP_BADI .But when i execute query through RSRT .This BADI is not getting triggered infact its not reaching the Break Point which i have set in DEFINE and COMPUTE methods. I tried setting break point in user exit RSR00002 too but not working.
    Is there any attribute or properties or any technical setting that have to be done for Query to trigger this BADI.Or any settings in BADI required ?
    I am using infocube 0SD_C03 as the filter in BADI attributes.

    Hi!
    Check attributes for you implementation class.
    In DEFINE method set rrke_c_mode-no_selection for your virtual char.
    after that generate query in rsrt (if you set break in INITIALIZE method - you can debug)
    then run the query (if you set break in COMPUTE method - you can debug if query return some data).

  • I have a new MacAir and don't know how to get info from my USB stick and my SD photo card.  Can anyone help me please?

    I have a new MacBook Air and don't know how to get info from my USB stick and get info from my SD card.  Can anyone help, please?

    Plug the stick and/or card into the appropriate slots on the side of your Air. Do you see icons for the devices appear on the desktop? Click into them to see what files are there.
    Matt

  • I went to put music on my itunes from my ipod and it deleted most of my music off of it and i dont know how to get it back. PLEASE HELP ME. :-|

    i went to put music on my itunes from my ipod and it deleted most of my music off of it and i dont know how to get it back. PLEASE HELP ME. :-|     

    - Unsync/delete all music and resync
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes      
      - Restore to factory settings/new iOS device.                       
    If necessary, you can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • HT4623 After i updated my iPhone i realized i do not have my camera anymore how to get it back? I also using a new notebook so I do not have a back up to transfer it from.  Please help

    After i updated my iPhone i realized i do not have my camera anymore how to get it back? I also using a new notebook so I do not have a back up to transfer it from.  Please help

    I'm assuming you mean you don't have your camera application (which is not saved on any backup anyway).
    One way to find it is to get to your home screen, swipe the screen from right to left, and type "Camera" in the search field.  Camera is a core Apple app and cannot be deleted, so it must be there somewhere.
    An alternate approach is to do Settings > General > Reset > Reset Home Screen Layout

  • I try to download abode acrobat xi pro from abode download asssistant,it shows download is completed.but iam not able to get thet downloaded file,please help me

    i try to download abode acrobat xi pro from abode download asssistant,it shows download is completed.but iam not able to get thet downloaded file,please help me

    oatgeo wrote:
    I  checked the proxy and it should be OK. That's mean I have to try and try again until I get it from the slow servers.
    Yes.

  • TS4108 Hello, all my Contacts from iPhone 5s and also from iCloud disappeared yesterday. Is it possible to get them back? Please Help. Thank you.

    Hello,
    All my Contacts from iPhone 5s and also from iCloud disappeared yesterday. Can I get them back?
    Please Help.

    If you begin syncing contacts with iCloud you will be given the option to merge your contacts with the accout.  If you do, your contacts will be uploaded to the account and will appear on both your phone and hers (if she is sharing the same account/ID).  Be aware that if you do this, if she then deletes your contacts from her device, they will also be deleted from yours and they will be lost.  For this reason, it's usually recommended that different users maintain separate iCloud accounts with separate IDs, which makes it easier for users to restore contacts from iCloud.

  • Open script cannot get connection from the brower helper after 15 seconds.

    Error:
    ===
    Open script cannot get connection from the brower helper after 15 seconds. Do you want to continue waiting for the browser to load?
    Please Note:
    ========
    1. I have tried this only on IE
    2. I am running OATS on a Remote desktop
    Situation:
    ======
    Trying to stop the recording
    Try to get xpath of an object using Inspect Path
    Setup details
    ========
    Windows XP 5.1 Service Pack 3, x86
    OpenScript 12.1.0.1.383
    Internet Explorer 8.0.6001.18702
    FireFox 13.0.1
    Mitigation steps done till now:
    ==================
    1. Disabled windows firewall
    2. Disable XSS filter setting
    3. Restarted the ATS services (3 of them)
    4. Run the Open Script Diagnosis Tool (PS: There are 3 errros even after running it. The 3 errros are listed in the workspace_log log file snippet below...)
    Error in worspace_log:
    =============
    To Change setting:
    Go to Tools > Internet Options and Choose Security Tab
    Select the Zone to modify and Press Custom level
    Find Enable XSS filter Setting - Select Disable and click Ok
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Failure found when diagnosing Oracle EBS/Forms Load Testing Forms LT Diagnoser
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Did not auto-fix the problem.
    !ENTRY oracle.oats.scripting.diagnosisTool.api.DiagnosisExecutor 4 0 2012-07-09 17:08:52.594
    !MESSAGE Suggestion for fixing: Please change your Java proxy setting to Use Browser Settings
    Aprreciate help on this.

    To resolve this, you need to reconfigure the "Oracle Application Testing Suite Helper Service" (OATSHelperSvr) to start as a user who has privledges to run open script tests rather than the default SYSTEM user.
    Reconfiguring the OATSHelperSvr Service:
    1. Open the services panel (Start > Run > services.msc)
    2. Find the Oracle Application Testing Suite Helper Service
    3. Right Click > Properties then select the Log On Tab
    4. Specify an interactive user that has rights to run OpenScript (test by logging in as that user and running tests):
    5. Click OK
    6. Restart the service after dialogs are closed by Right Click > Restart
    7. You should now repeat this process for the "Oracle Application Testing Suite Agent Service" (eLoadAgentMon) Service (Two services in
    total)
    You should now retry running the test in Oracle Test Manager

  • I have a ipod 5th gen and i changed my password because everyone knew it. I had forgotten it and now it is fully disabled. I can not get it online anymore and i have tried everything to get it restored. Please help as I am really worried

    I have a ipod 5th gen and i changed my password because everyone knew it. I had forgotten it and now it is fully disabled. I can not get it online anymore and i have tried everything to get it restored. Please help as I am really worried

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • I accidentally removed iphoto from dock, please help?

    I accidentally removed iphoto from dock, please help?
    iPhoto isn't in my applications to I can't drag it to dock.  All images and movies are still on Mac (heart did stop as I thought I'd lost everything and nearly cried) but I don't know how to get iPhoto back.  I'm worried about trying different things as don't want to lose anything on Mac.  Noticed that I haven't been using Time Machine and bought a couple of years ago so not sure what operating with.  I have our 2 CDs from when we bought the Mac - 13-inch Macbook Pro (Mac OS X Install DVD) and 13 inch MacBook Pro (Applications Install DVD).  My photos are not backed up so not sure if I need to do this first - can I back up to iCLoud or do I need newer software?
    Any help would be greatly appreciated - need lots of step by step instructions though!

    All images and movies are still on Mac
    Of course they are.  Deleting an app doesn't delete the files that's in it.

  • I can't find my mac mail email folders I need to get to them. Please help.

    I use mac mail and had some folders in there to organize my emails. I clicked on my computer the other day to use the mouse and they disapeared. I have no clue where they are. I am pretty sure they aren't deleted because no ther confirmation came up making sure I wanted to delete anything. I beleive they are hidden somewhere but I can't figure out how to get them back. Please help I need info out of them.

    Disable your antivirus and firewall, and try again.

  • I just updated my iPod touch and all my pictures are gone!!! How do I get them back? Please help!!!

    I just updated my iPod touch 4th generation to iOS 6.0.1 and all my pictures are gone!!! Everything else is there but my pictures! How do I get them back? Please help!!!

    If the photos were i your iPod's Camera Roll album (taken by or saved to the iPod you can:
    - If your PhotoStream is on you can get the last 30 days worth back. See that topic here:
    iOS: Importing personal photos and videos from iOS devices to your computer
    - Or you can restore from backup if you backed up when the photos were on the iPod.
    If the photos were synced to the iPod then you have to get them from where you got them the first time.

  • I backed up my movies and rebuild my computer, and after making sure i'm using the latest version of itunes and quicktime and and making sure i still had spare computer authorizations, i still get error 23132.  Please help.

    I backed up my movies and rebuild my computer, and after making sure i'm using the latest version of itunes and quicktime and and making sure i still had spare computer authorizations, i still get error 23132.  Please help.

    I had this exact issue.  Spent over an hour on the phone with apple support, they couldn't resolve.  Here is what I ended up doing, that worked.
    1.  Turned iTunes match off on all my iOS devices
    2.  Deleted the offending playlists from the iOS device they originated on
    3.  Started iTunes, let it run (literally) for an hour before it became responsive.  First thing I did, before clicking anywere else was disable iTunes match.  If I clicked anywhere, it would clock for another hour.
    4.  Let iTunes run overnight, by morning it had cleaned out the repeating play lists.  This got my Mac/iTunes back to an operable state.
    5.  Restore iPhones from backup in iTunes.
    What was causing my issue was a single playlist that was created on an iPhone, then suddenly showed up with several thousand duplicates on my other iPhone.  The culprit playlist did not, for some reason, duplicate itself on my two iPads.  Apple support seemed to think it was because the problem iPhone tried to sync the playlist to iCloud over and over again unsuccessfully, then it finally went through and populated the thousands of blank/failed playlists which then tried to propigate to iTunes and my other iOS devices.  Seems like a reasonable theory.
    I have not yet re-enabled iTunes match.  So, no idea what will happen if I decide to go back down that rabbit hole.

Maybe you are looking for

  • TS1717 Itunes won't connect to the store

    Since like the middle of december I can't get my itunes browser to connect to the store. Any Ideas?

  • Another ComboBox implementation, #1

    I'd like to propose my implementation of ComboBoxControl to those who need to show textual/meaningful representation of somehow coded database column. In my case, column contains reference to row identifier in another table. This is usual foreign-key

  • Logo has grey shadow after exporting

    Hello everyone, I have a problem and I don´t know how to proceed. I exported a movie with a logo (black text on white background) in the beginning and at the end of the film. The logo is tiff-format, and I used the exact same file for the beginning a

  • Boot Comp on Mini with Fusion Drive

    I have been trying to run a Bootcamp setup and per the instructions I have partitioned the "single fusion drive" that is shown as being installed to have a Windows NTFS partition The problem is that when running Windows8 installer this partition show

  • Packages to multiple queues/groups

    Hi, We have an application, which sends/receives applicant packages from single queue Ex: Queue name is 'XYZ'. We would like to have the packages to be received to different queues based on the City name from where they are sending, how can we achiev