Reusing datagrid, removing previous data & repopulating

I have a datagrid in a flash app. The intial use works fine. The flash has the ability to recalculate the needed data which I then use to repopulate the existing datagrid.  What is the best way to clear out a datagrid and repopulate it?
I tried:
ifxGrid.dataProvider.removeAll();
but it does not clear out the previous data.
i also tried:
ifxGrid.removeAllColumns();
this worked a little but not entirely.
So what's currently happening is that the new data is appended to the old data. So if I had 50 rows in the 1st calculation and then I have 70 rows in the 2nd calculation I end up with 120 rows of data in my datagrid.
I've googled datagrids & looked thru the forums and it seems like there's a lack of documentation or examples on how to reuse & repopulate a datagrid.
Thanks in advance for your answer,
Zak

"removeAll() isn't in the documentation link that you provided"
Yes, it is:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/SelectableList.html# removeAll()
It is a method of SelectableList class that DataGrid extends and it is listed in DataGrid documentation as such.

Similar Messages

  • Each time master data full load removes previous data and load with new ?

    We load company code (0COMP_CODE) master data (full load).
    1st day, we check company code master data, the record count is 150, 2nd day, the record count is 90.  It sounds like the master data full load each time would clean the previous data and load with new data, am I right?  If what I guess is right, then what setup is controlling this?
    Thanks

    I dont think it does cleanup.
    MD records in the new load simply overwrite the records already present in the master data.
    I mean if same record comes again its overwritten.If new record it gets added.
    I wouldnt expect number of records to reduce drastically from 150 to 90.
    Maybe before MD activation records could be more(as there will be both M(modified) and A(active) records).
    cheers,
    Vishvesh

  • HT1386 Since 8th May , I am not able to synchronize my iPhone with iTunes. Have tried removing previous back up data , removed all photos and videos on iPhone , switched  on and of and  reset iPhone  a million times , restarted my Mac a thousand times :(

    Since 8th May , after updating the iphone software to 5.1.1  I am not able to synchronize my iPhone with iTunes. Have tried removing previous back up datas , removed all photos and videos on iPhone , switched  on and of and  reset iPhone  a million times , restarted my Mac a thousand times Please Help !!!

    I have tried both options .. back up on this computer and also back up on icloud.
    The backingup is fine .. there is no problem .. even synchronizing songs , applications , calender , mail accounts is fine .. only the contacs are not synchronizing. The itune goes on and on .. showing synchronizing contacs .. but nothing happens. When i uncheck contacts synchronisation .. everything works fine . I have also reorganized my address book . but it does not help

  • Refresh Datagrid After Popup Data Edit

    Hi all,
    I'm fairly new to flex development, so please keep that in mind when trying to help... I may ask some really stupid questions!
    Basically what I'm trying to do is to refresh the source data of a datagrid ONLY when the popup window that I'm using to add/edit/delete records is closed.
    I have successfully captured WHEN the window closes... I can see the event happening in my datagrid component.  I used an Alert.show() to prompt me after the popup closes and the datagrid captures the close event.
    What I can't figure out for the life of me is how to refresh the datagrid's source data, when that source data is being called & populated from a "parent" component.
    How it works is like this...
    Search Component (6 drop down menus & 1 text input)
    |___Datagrid (displays all records by default, only records meeting search criteria upon clicking the "search" button)
      |______Popup window editor (this is called by passing the "ID" of the record I want to take action on into the popup window using a public variable when a user DOUBLE CLICKS a value in the datagrid)
    So let's say for instance you are looking at customer A.  Customer A's record loads into the popup window... and then let's say you want to delete that record for whatever reason.  Currently, when you click the "Delete Record" button in my application, the popup window closes, and from the looks of things, it dispatches the close event properly.  (I added an event listener to the datagrid component when I instantiated it in the search component), so when the popup window closes, the event listener fires and I have an Alert to tell me that yes, the close event was dispatched.
    I think I know "What" I'm doing wrong, but I don't know how to go about changing it to make it work.  Basically because the datagrid is populated IN the search component from an arraycollection, my attempts to "Refresh" the data in the datagrid component which captures the close event of the popup window won't work because the datagrid component has no visibility to the arraycollection used in the search component to populate said datagrid component.
    I know that the record is being deleted, as if I actually click the "search" button again, the record does disapear from the datagrid.  How do I force that to happen automagically when the popup form closes?
    I can provide a code refernce if I need to... gonna take a bit though as alot of what I've built has references to client's data which I'd have to remove.
    If anyone could provide some insight here, or a direction I would appreciate it.  I've looked at a number of solutions so far, and I've not had luck with any of them.

    Hi all,
    I'm fairly new to flex development, so please keep that in mind when trying to help... I may ask some really stupid questions!
    Basically what I'm trying to do is to refresh the source data of a datagrid ONLY when the popup window that I'm using to add/edit/delete records is closed.
    I have successfully captured WHEN the window closes... I can see the event happening in my datagrid component.  I used an Alert.show() to prompt me after the popup closes and the datagrid captures the close event.
    What I can't figure out for the life of me is how to refresh the datagrid's source data, when that source data is being called & populated from a "parent" component.
    How it works is like this...
    Search Component (6 drop down menus & 1 text input)
    |___Datagrid (displays all records by default, only records meeting search criteria upon clicking the "search" button)
      |______Popup window editor (this is called by passing the "ID" of the record I want to take action on into the popup window using a public variable when a user DOUBLE CLICKS a value in the datagrid)
    So let's say for instance you are looking at customer A.  Customer A's record loads into the popup window... and then let's say you want to delete that record for whatever reason.  Currently, when you click the "Delete Record" button in my application, the popup window closes, and from the looks of things, it dispatches the close event properly.  (I added an event listener to the datagrid component when I instantiated it in the search component), so when the popup window closes, the event listener fires and I have an Alert to tell me that yes, the close event was dispatched.
    I think I know "What" I'm doing wrong, but I don't know how to go about changing it to make it work.  Basically because the datagrid is populated IN the search component from an arraycollection, my attempts to "Refresh" the data in the datagrid component which captures the close event of the popup window won't work because the datagrid component has no visibility to the arraycollection used in the search component to populate said datagrid component.
    I know that the record is being deleted, as if I actually click the "search" button again, the record does disapear from the datagrid.  How do I force that to happen automagically when the popup form closes?
    I can provide a code refernce if I need to... gonna take a bit though as alot of what I've built has references to client's data which I'd have to remove.
    If anyone could provide some insight here, or a direction I would appreciate it.  I've looked at a number of solutions so far, and I've not had luck with any of them.

  • Removing previous versions of Adobe Photoshop Elements

    I have Elements 10 and would like to remve versions 8 and 9 from my computer without losing any pictures.  Do I uncheck the "
    Remove downloaded content" box? 

    ok, I can use the uninstaller program.  I just wanted to make certain I would not lose any of the pictures.  I have WIN 7 home 62 bit.
    Date: Sat, 3 Nov 2012 15:05:38 -0600
    From: [email protected]
    To: [email protected]
    Subject: Removing previous versions of Adobe Photoshop Elements
    Re: Removing previous versions of Adobe Photoshop Elements created by Jeff A Wright in Downloading, Installing, Setting Up - View the full discussion
    No you will want to uninstall the software using the uninstallers installed on your computer?  If you need more specific directions on how to remove the software can you please respond with the operating system you are using?
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4821201#4821201
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4821201#4821201
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4821201#4821201. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Downloading, Installing, Setting Up by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to remove previously used email addresses from iphone?

    After having his email account hacked, a friend gave me his new email address.
    I have updated his contact information, BUT
    everytime I write an email, or a text or a message, the old email address keeps coming up
    as the first choice of my iPhone and iPad.
    How do I remove the previous email address from my iPhone or iPad?
    Regards

    The ONLY way, currently, to remove this data from an iOS device is to restore the device as "new" in iTunes, NOT from backup. This will, of course, erase all data on the device, including this contact data. You either do that, or you live with it.

  • How can I have a waveform graph (or chart) updated using the value propertynode without loosing previous data plots?

    I want to have a master waveform graph (or chart) capable of displaying data via the value property node. There are several value nodes in a flat sequence structure. The problem is that the graph (or chart) doest keep the previous data and does display just the very last value property node. Can anybody help me? 

    A graph does not "keep" any data. It is strictly an indicator which displays the most recent values written to it. 
    A chart has an internal buffer, called, Chart History which retains previously written data until the buffer is full. Then it removes the oldest data when new data is sent to the chart.
    1. Sequence structures are almost never needed in good LabVIEW programs. They defeat dataflow and limit parallelism.
    2. Value property nodes (and local variables) should only be used under special circumstances and a sequence structure is not one of those.
    A state machine with shift registers or a Producer/Consumer architecture are more likely to be better ways of doing what you are trying to do and can be implemented without sequence structures or Value property nodes.
    Lynn

  • DataGrid jumps on data refresh

    Hi,
    I have a datagrid control bound to an arraycollection. I also
    have a timer which updates the arraycollection with new data and
    call its refresh method every few seconds
    The problem is that the datagrid scrolls to the item that is
    selected and it looks very jumpy. How can i prevent this from
    happening?

    Actually, I discovered that I don't have to use itemUpdated()
    method when binding an arraycollection to a datagrid (notification
    of data change is sent to the view automatically)...
    What i did instead was simply update the properties of the
    objects inside of my arraycollection through a loop.
    for(var i:int = 0; i < mainCollection.length; i++){
    var item:Object = mainCollection.getItemAt(i);
    for (var qs:String in anotherCollection
    item[qs] = anotherCollection[item.id][qs];
    mainCollection.itemUpdated(item);
    But, since you are ADDING or REMOVING items, I'm not sure how
    useful the code above will be in helping you figure it out. Since I
    use it to update the items.

  • Problem in removing ODBC data source

    In order to implement connectivity between Advanced Analysis and SAP HANA, I intended to install the SAP HANA client tools, and accidentally installed the 64 bit version. When I discovered the mistake, I installed the 32 bit version without uninstalling the 64 bit driver. Then I created data sources using both the HANAODBC and HANAODBC32 drivers in the USER DSN and SYSTEM DSN tabs respectively of ODBC configuration.
    Some days later, I wanted to uninstall both the drivers using the hdbuninst.exe command - and after running it for both, I was able to remove the 64 bit ODBC data source that I had created. But I cannot remove the 32 bit ODBC connection. The error it gives me is "The setup routines for HDBODBC32 ODBC driver could not be found. Please reinstall the driver" followed by "Errors Found: The specified DSN contains an architecture mismatch between the Driver and the Application".
    I assume this is because I installed the driver with one version and try to install with another version (another SP) of software. Unfortunately, I have lost the previous version software dump. Reinstalling the driver from another spoftware dump and trying to remove the data source from User DSN also does not work. Any suggestions how I can remove the 32 bit ODBC data source?
    Best Regards
    Suneet

    And specifically the error I see in the log files while unistalling the 32 bit client driver is:
    SAP HANA Database Installation Manager - Uninstallation 1.50.00.354448
    17:09:36.160 - INFO: Uninstalling SAP HANA Database Client...
    17:09:36.185 - ERR: Uninstallation failed
    17:09:36.184 - ERR:   Cannot open installation exclusively
    17:09:36.184 - ERR:     Cannot open install registry
    17:09:36.184 - ERR:       InstallRegistry file is not open
    Regards
    Suneet

  • Please Help - Cannot remove previous owners number from imessage/facetime.

    I have just bought a used iphone 4  after losing my last week. Was weird because I was receiving text messages which were for the previous owner when there was no sim card put in. Googled this and found out it was something to do with imessage. Anyway, new sim card came today, done a complete restore though itunes and put in new sim card, but whenever I try to set up imessage/facetime, I can add my own apple account but the previous owners number is showing and is ticked even though its grayed out. Cannot remove it at all. Have tried turning off wifi, signing in and out of imessage and facetime, and another restore but just cannot remove this previous data. Please help as am pulling my hair out now!

    Thanks so much for your suggestion, was starting to think along them line - tried the sim card in another phone, works fine but it turns out the replacement sim I received today was sent out with the wrong number. Phoned t-mobile, apparently my sim card has been sent to someone else and I have received theirs..... I have been promised a replacement sim by the morning, fingers crossed everything is resolved by then! Thanks so much for your help.

  • How to remove previous owner's Apple ID request from App Store?

    When I try to update an app App Store asks for the previous owner's Apple ID and not for my Apple ID. How can I change it to ask for my details?How to remove previous owner's Apple ID from App Store?

    Before buying a second-hand computer, you should have run Apple Diagnostics or the Apple Hardware Test, whichever is applicable.
    The first thing to do after buying the computer is to erase the internal drive and install a clean copy of OS X. You—not the original owner—must do that. Changes made by Apple over the years have made this seemingly straightforward task very complex.
    How you go about it depends on the model, and on whether you already own another Mac. If you're not sure of the model, enter the serial number on this page. Then find the model on this page to see what OS version was originally installed.
    It's unsafe, and may be unlawful, to use a computer with software installed by a previous owner.
    1. If you don't own another Mac
    a. If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc from the Apple Store or a reputable reseller—not from eBay or anything of the kind. If the machine is very old and has less than 1 GB of memory, you'll need to add more in order to install 10.6. Preferably, install as much memory as it can take, according to the technical specifications.
    b. If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for a MacBook Air. You should have received the media from the original owner, but if you didn't, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To start up from an optical disc or a flash drive, insert it, then restart the computer and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    c. If the machine shipped with OS X 10.7 or later, you don't need media. It should start up in Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    d. Some 2010-2011 models shipped with OS X 10.6 and received a firmware update after 10.7 was released, enabling them to use Internet Recovery. If you have one of those models, you can't reinstall 10.6 even from the original media, and Internet Recovery will not work either without the original owner's Apple ID. In that case, contact Apple Support, or take the machine to an Apple Store or another authorized service provider to have the OS installed.
    2. If you do own another Mac
    If you already own another Mac that was upgraded in the App Store to the version of OS X that you want to install, and if the new Mac is compatible with it, then you can install it. Use Recovery Disk Assistant to prepare a USB device, then start up the new Mac from it by holding down the C key at the startup chime. Alternatively, if you have a Time Machine backup of OS X 10.7.3 or later on an external hard drive (not a Time Capsule or other network device), you can start from that by holding down the option key and selecting it from the row of icons that appears. Note that if your other Mac was never upgraded in the App Store, you can't use this method.
    3. Partition and install OS X
    a. If you see a lock screen when trying to start up from installation media or in Recovery mode, then a firmware password was set by the previous owner, or the machine was remotely locked via iCloud. You'll either have to contact the owner or take the machine to an Apple Store or another service provider to be unlocked. You may be asked for proof of ownership.
    b. Launch Disk Utility and select the icon of the internal drive—not any of the volume icons nested beneath it. In the  Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive.
    c. An unusual problem may arise if all the following conditions apply:
              OS X 10.7 or later was installed by the previous owner
              The startup volume was encrypted with FileVault
              You're booted in Recovery mode (that is, not from a 10.6 installation disc)
    In that case, you won't be able to unlock the volume or partition the drive without the FileVault password. Ask for guidance or see this discussion.
    d. After partitioning, quit Disk Utility and run the OS X Installer. If you're installing a version of OS X acquired from the App Store, you will need the Apple ID and password that you used. When the installation is done, the system will automatically restart into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    e. Run Software Update and install all available system updates from Apple. To upgrade to a major version of OS X newer than 10.6, get it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the original owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed—you have to repurchase them.
    4. Other issues
    a. If the original owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're irrevocably linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Mac App Store Customer Service has sometimes issued redemption codes for these apps to second owners who asked.
    b. If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able to  authorize it immediately under your ID. In that case, you'll either have to wait up to 90 days or contact iTunes Support.
    c. When trying to create a new iCloud account, you might get a failure message: "Account limit reached." Apple imposes a lifetime limit of three iCloud account setups per device. Erasing the device does not reset the limit. You can still use an iCloud account that was created on another device, but you won't be able to create a new one. Contact iCloud Support for more information. The setup limit doesn't apply to Apple ID accounts used for other services, such as the iTunes and Mac App Stores, or iMessage. You can create as many of those accounts as you like.

  • Issue in clearing of previous data of screen cl_gui_docking_container= free

    Hi All,
    My program displays an idoc list(screen 100). Then if user selects any row in the method
    gets the index no and details of that idoc are displayed in another screen(screen 200) .
    Then control returns to this screen again. Now if user selects any row from idoc list (screen 100) then data is displayed along with data from previous screen .
    In PBO of screen 200 : some code is :
    create object go_docking
              exporting
                dynnr     = '200'
                extension = 65
                side      = cl_gui_docking_container=>dock_at_top.
            create object go_grid_detail
              exporting
                i_parent = go_docking.
    some code
    create object go_custom_cont
              exporting
                container_name = 'DISPLAY_IDOC_CONTENT_200'.
            create object go_grid_detail
              exporting
                i_parent = go_custom_cont.
    some more code
    call method go_grid_detail->set_table_for_first_display
              exporting
                is_layout            = gs_layout
                it_toolbar_excluding = lt_exclude
              changing
                it_fieldcatalog      = fieldcatalog1
    create object go_docking
                exporting
                  dynnr     = '200'
                  extension = 65
                  side      = cl_gui_docking_container=>dock_at_bottom.
              create object go_grid_detail
                exporting
                  i_parent = go_docking.
    In PAI of 200 screen i have used :
    some code      
    free go_grid_detail.
          free go_custom_cont.
          go_docking->free( ).  free go_docking.
    After freeing all data and on call of screen 200 from screen 100 still it shows data from which was there previously on screen 200.
    How can clear all previous data . Even i have free the docking still not working .
    Kindly please help.

    Hi,
    if go_grid_detail is type ref to cl_gui_alv_grid, call go_grid_detail->free( ) before container->free( ).
    Regards,
    Clemens

  • Opening stock will be the closing stock of previous date

    Hi All,
    Good day. I am developing an ALV report that will show opening stock(LABST) as well as closing stock(Calculated) for a range of date and materials. Problem here is that from MARD table I am getting only the last opening stock, because it has no common date field with MSEG table. So, I have to calculate the opening stock as the closing stock of previous date. How can I calculate this? Is there any FM to get the opening stock ?
    Date          Material            Opening St       Closing St
    27.03.2009     2100002          91.000          191.00
    28.03.2009     2100002          191.000          123.00
    29.03.2009     2100002          123.000          103.00
    With regards,
    Tripod.
    Edited by: Tripod on Aug 23, 2011 12:13 PM

    Try not only to use MARD and MKPF/MSEG but also MARDH which contains closing stock of period preceding periods where movements happened. (ie. there is a record for May if a movement happened in June, and none for June if there was no movement in July, and no record exists for August as this is current period) - First look for MARD, MARDH records; and then only read MKPF/MSEG from last MARDH record found. (created back to 4.5A - [Material Master (Industry/Retail): Enhancements to Period Closing|http://help.sap.com/saphelp_45b/helpdata/en/35/b0e7ef87a62488e10000009b38f9b7/content.htm])
    Regards,
    Raymond

  • How to get Item-Code wise stock quantity and value for a previous date

    Dear Sir,
    As per the government legal requirement , we are required to furnish a list for items having stock as on a date ( date is not the current date but it is some past date)  and  in the list we need to provide material wise stock quantity and value .
    We can generate a list  for the current date , but do not know how to get it for a previous date .
    We request you to kindly guide us about such a list .
    With Thanks and Regards
    Sonia Agarwal

    hi,
    might be this reports will be help full for your requirement.
    MMBE
    MB53
    MB52
    MB5M
    MB5B
    MB5T
    MBLB
    MBBS
    MB54
    ME56
    Thanking you

  • HT1414 My wife gave me her older ipad. I have reset and removed all data. My Apple ID (Ipod touch) is not an email adress, but when I try to stu up the ipad it asks for my Apple ID, then tells me that for security reasons the Apple ID must be in email for

    My wife gave me her older ipad. I have reset and removed all data. My Apple ID (Ipod touch) is not an email adress, but when I try to stu up the ipad it asks for my Apple ID, then tells me that for security reasons the Apple ID must be in email format?

    Change it to an email address.
    -> https://appleid.apple.com/

Maybe you are looking for