CallResponder|Datagrid|delete item from Database

Hello guys,
I succeeded to display datas from database inside the DataGrid using the CallResponder, but until now I still don't know how can I access to the data that already stored in column in the DataGrid !
the DataGrid Structure is (id, login, password, email, firstname, lastname), and want to access to those datas using the action script
My question, what is the object that already stored these datasin memory? is it "dataProvider", or "data".
When I want to delete a person from the dataGrid, I want to click on the dataGrid and then click the delete button, the button will seek for the "id" stored in the memory and finaly send the query to the server to delete the item token from the data Grid !
example :
I click on the second item in the DataGrid, and this item it's id = "14" so dataGrid.selectedIndex == 2, but the value of the attribute of that item is 14
how can I access to to the values ?
I face this problem because I don't know where the dataGrid does already stores the data that it displays, and what is the structure of it even it is ArrayList or ArrayCollection.
I hope you understood my challenge?

Thank you a lot, that is correct, I executed the application in debug mode and I saw that the dataProvider is already an ArrayCollection, so I can understand that all the method of an Arraycollection is already applyable to the dataProvider.
I didn't know that it is the case, so before you reply me, I was thinking about doing that manually, by pushing the result that come from the CallResponder into an ArrayCollection that is already declared manually in the mxml file, after that adding an event listener and calling a function that is going to make a loop and store all the result into a the ArrayCollection.
Here is the code: (I think it is useful if someone is going to select something manually from the database so he has to do the same thing and filtring the results inthe loop)
Creating Manulally the dataProvider()
Script :
protected function dataGrid_creationCompleteHandler(event:FlexEvent):void
getAllUserResult.token = userService.getAllUser();
getAllUserResult.addEventListener(ResultEvent.RESULT,onResult);
protected function onResult(event:ResultEvent):void
for (var i:int=0 ;i< event.result.length;i++){
userMemory.addItem(event.result[i]);
Mxml File (Declaration) :
<fx:Declarations>
<s:CallResponder id="getAllUserResult"/>
<userservice:UserService id="userService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
<s:ArrayCollection id="userMemory"/>
</fx:Declarations>
I must thank you my brother for the answer, and for the fast reply !

Similar Messages

  • Cannot delete items from ipod...recently installed 1.4.1 and itunes 7

    i just did the restart in 'services', and my ipod mini is now recognized in itunes 7. thanks to all who offered advice....especially ivan.
    hp pavillion ze1210
    windows xp
    ipod mini
    software 1.4.1 *
    itunes 7 *
    *itunes 7 and software 1.4.1 were both installed within the last 24 hours and the ipod mini is approx 2 years old
    i can add music and podcasts from my computer, but i cannot delete them from the ipod....i can delete items from specific playlists but not from the ipod itself.
    when my ipod is selected in itunes under devices, i get a main screen that has four options...
    summary
    music
    podcasts
    contacts
    when i select 'podcasts', it shows me the podcasts i subscribe to on the main screen, but i can't do anything ....they appear to be somewhat greyed out. the same is true with 'music' i can see the playlists on my ipod, but i can't manage them. however, i can delete anything from specific playlists on the left...but they remain on the ipod.
    how can i access the main middle screen to delete items from the ipod?
    before installing 7, if i selected my ipod in itunes, i could delete anything from the ipod itself...not just playlists.
    please help ASAP as i only have approx. 300 MB of space remaining.

    Click on the disclosure triangle in front of the iPod name.
    This will show you the contents of your iPod. Click on Music below the iPod name to see the songs on the iPod.

  • Cannot secure delete items from trash: 180 items (pictures, files, folders) remain even if I check "remove all items"

    I cannot secure delete items from trash: 180 items (pictures, files, folders) remain even if I check "remove all items".  Macbook Pro, 10.6.8

    Maybe the items are locked.
    Mac OS X 10.6 Help: Shortcuts for working with items in the Finder
    Shortcuts for working with items in the Finder Command (⌘)-Shift-DeleteEmpty the Trash without any warning or when it contains locked filesCommand (⌘)-Shift-Option-Delete
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/cdb_cpmvfky.html

  • Unable to delete items from recycle bin

    Unable to delete items from my trash, it starts to delete then stops along the way, when i open the trash, its still sat there.

    Relaunch the Finder, then from the Finder menu bar, select
    Finder ▹ Preferences ▹ Advanced
    and uncheck the box marked Empty Trash securely. Hold down the option key and try again to empty the Trash.

  • How do you delete items from the reading list?

    How do you delete items from the reading list?

    I'm trying to mark your reply as "solved my problem", but I can't see where to mark it. I tried to mark it in the email that came to me with your answer, but it went to a screen that said NOT FOUND. Help?

  • How do i delete items from the reading list

    how di i delete items from the reading list

    Swipe your finger across the item in the list and a delete button will pop up.

  • I accidentally deleted items from a list in reminders.  how can i retrieve them?

    i accidentally deleted items from a list in reminders.  how can i retreive them from icloud?

    From your backup.

  • When using Time Machine, if I delete items from my computer, will they still be backed up to access later on my external hard drive? In other words, when time machine backs up again, will it delete the files from the back up?

    When using Time Machine, if I delete items from my computer, will they still be backed up to access later on my external hard drive? 
    In other words, when time machine backs up again, will it delete the files from the back up that I have deleted from my computer?

    No, I do not believe so. Time Machine would keep all those now-deleted files in previous backups, and as time goes by those backups might be deleted if you needed room, but it would still keep one backup from each day in last month, as well as one from each week forever, as long as you don't start running out of room, then just the oldest would be deleted to make room if needed.
    I use a backup drive about double the size of my drive to be backed up, so I would guess it will never get to the point where deleted files being replaced by new ones being backed fill up that drive to the point where backups actually have to get deleted.

  • Is it possible to retrieve deleted items from the Pages App please?

    IIs it possible to retrieve deleted items from the Pages App? Thanks

    From within the Pages app, no. If you have an iTunes or iCloud backup that would have contained the file, and you are backing up Pages, it could be received via a restore using that backup (this would wipe out any newer data however).

  • In microsoft office word, how do I delete items from the recent documents tableau? I have options for new, open, save, save as, etc. but no option to delete.

    In microsoft office word, how do I delete items from the recent documents tableau? I have options for new, open, save, saveas, etc. but no option to delete. Thank you.

    Hello.
    I have no idea and you should contact Microsoft for support. This is Firefox's support forum.
    Thank you for your understanding.

  • Delete entries from Database table  t71inp1

    Hi,
    I want to Delete entries from Database table  t71inp1. Its a H R Table. I want to know the exact code.
    i saw the cide delete bkpf where usnam = p_name.
    Will it work the same here. Also.
    Please let me know.
    I hope to get reply from you soon.
    where should i write the code. i.e. Tcode SE38 and directly deeleting write the code.
    Please give me some inputs. I am new to H R ABAp
    Shivakumar K B
    919886920258

    hi
    You can write a program in se38.
    create a program.
    use delete from t71inp1 where<condition> command in it.

  • What is the "Other" category under storage and how can i delete items from this?

    My disc is almost full.  "About this Mac" says that I have 47 GB of "Other."  What is this Other and how can I delete items from this?

    For information about the Other category in the Storage display, see this support article.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown asBackups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • Forcefully delete user's "Deleted Items" from Exchange 2010 Management shell ?

    After migration from Exchange 2003 to 2010 my organization's some user can't delete items from their deleted items folder, it generate a error message so how can I forcefully delete user's deleted items from their "Deleted Items folder" from
    Exchange 2010 Management shell ? Thanks
    Babu

    Hi Babu ,
    Based on my knowledge i have given some suggestions please have a look in to it.
    1.We cannot use the search-mailbox command specifically for any folder in the mailbox.But we can use it for a whole mailbox.Below is the command which will copy the entire contents of the mailbox to the target folder called as "backup" .
    Search-Mailbox -Identity "problematic mailbox name" -TargetMailbox "test mailbox" -TargetFolder "backup" -LogLevel Full -deletecontent
    Note : Before executing the above command , please execute the below.
    New-ManagementRoleAssignment -Name "Import Export_Enterprise Support" -SecurityGroup "Enterprise Support" -Role "Mailbox Import Export"
    Once the above command is executed then you need to add your admin account to the security group "Enterprise Support" and then use the Search-Mailbox command to copy the entire items to the target mailbox and also it will delete all the copied
    items from the original mailbox.
    2.Another one option is to use the MFCMAPI tool to force delete the items on the deleted items folder.
    Most importantly before doing all the above , please share me the error message what your users are facing while deleting the items from deleted items folder.
    Thanks & Regards S.Nithyanandham

  • My RAM is full. How can I delete items from RAM?

    RAM is nearly full on MacBook. How can I delete items from RAM?

    Nothing is stored permanently in RAM. I think you mean on your hard drive:
    If you really meant RAM then add more RAM. Otherwise,
    Freeing Up Space on The Hard Drive
      1. See Lion's Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • How do I delete items from start up disk?

    My start up disk is almost full.  How do I delete items from it?

    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

Maybe you are looking for

  • Yamaha MCR-640 and iPod nano 7th gen

    Hi, I'm using the "Lightning to 30-pin Adapter": http://store.apple.com/us/product/MD823ZM/A/lightning-to-30-pin-adapter?fnode=1e b5dbbbc417e42c9d5c85ad38b0cb951dc80d6054381d7f530051efef136dbad0960eb1d387d8716c 97e08fe01e80c9025f1e692b09495b32e2b4bb1

  • Having problems: can't open an html file with textedit to change code

    Hi. I have been trying to open up both my index.html and my Welcome.html files with textedit in order to change the HTML codes for them - but it doesn't seem to work. When I open them using text edit I still get a discomboblutaed form of the web page

  • Making Tables in Elements 10

    Yes, I realize this isn't Elements' forte, but I need to make a very large banner that is larger than PowerPoint can handle. If I copy and paste from PowerPoint, no matter what I do, the background will be white in Elements--I cannot make it transpar

  • A Very Green Question: Which Desktop for Premiere Pro

    Hi guys, First, please go easy; I'm as green as they come. I am looking into purchasing a new desktop for several functions, one of which will be video editing. I've been reading alot of everyone's suggestions on builds and systems ( 8gigs ram, say n

  • Settings for Distributing E-Mails

    Hi SDN, I am working on E-Mail broadcasting of BI reports. I have completed EP-BI integration and SMTP configuration successfully. Now I found another step Settings for Distributing E-Mails. But what are the details i need to provide in this step I a