Delete all selected items

Hello people,
I have a datablock where one of the items is a check box. I would like to know how to delete all items that has been selected by the checkbox. At the moment I use 'delete_record' but that only deletes the first selected row.
thank you in advance!

Try something like:
GO_BLOCK('CMC_REPORTS');
First_Record;
-- loop through the block until you reach the last record
WHILE :SYSTEM.LAST_RECORD = 'FALSE' LOOP
IF :CMC_REPORTS.ndb_delete_rec = 'Y' THEN
delete_record;
ELSE
Next_Record;
END IF;
END LOOP;
-- check to see if the last record needs to be deleted
IF :CMC_REPORTS.ndb_delete_rec = 'Y' THEN
delete_record;
END IF;
-- check to see if deletes need to be commited
IF :SYSTEM.FORM_STATUS = 'CHANGED' THEN
commit_form;
END IF;
DO_KEY('EXECUTE_QUERY');

Similar Messages

  • Can't delete multiple selected items in List or Library

    I am experiencing quirky behavior when attempting to delete multiple selected items from a library or list. I select a few items via check box for each item I would like to delete. Then I click the delete button in the ribbon, and all I get is "Deleting...",
    but no page refresh and the items are not deleted. However if I access the same list or library via the App server and select a few items, then hit delete, the page refreshes and the items are deleted.
    So I consulted the Logs and compared the Web Server vs App Server, and the there is a lot of cryptic entries. The few lines that stands out most to me is the App server is:
    ConnectionString: 'Data Source=database;Initial Catalog=Content;Integrated Security=True;Enlist=False;Asynchronous Processing=False;Connect Timeout=15'   
    ConnectionState: Closed ConnectionTimeout: 15
    In fireItemEvent(), for list Building Locations, and item: 1
    In fireSyncItemEvent(), calling ExecuteItemEventReceivers()
    Calling ExecuteItemEventReceivers() for list 0f773535-3b22-4c29-97f1-fd2b70b50dd3 on item 1
    Entering monitored scope (Event Receiver (Microsoft.SharePoint.Publishing, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, Microsoft.SharePoint.Publishing.Internal.PublishingWebEventReceiver))
    Releasing SPRequest with allocation Id {FE9A45A8-C042-4223-8FCC-4BD873C93885}
    PublishingWebEventReceiver:ItemDeleting: item 
    These calls are not in the web server log.
    The list I was doing the delete action on was "Building Locations". We are using claims based authentication
    Thanks for any insight or thoughts.
    Brandon

    I confirmed that there is no rewrite tags in either web config (app or web).
    I did download fiddler, and when I try and delete on the web front end I get:
    It tries to access the URL https://mysite/_layouts/_vti_bin/client.svc/processQuery
    Then it sends me here since I have been denied
    <html><head><title>Object moved</title></head><body>
    <h2>Object moved to <a href="https://mysite/_layouts/AccessDenied.aspx">here</a>.</h2>
    </body></html>
    The app server goes to
    http://mysite/_layouts/_vti_bin/client.svc/processQuery doesn't get denied and deletes the items.

  • When selecting multiple images in LR 5.2 on Mac, how do I delete all selected photos?

    Based on http://forums.adobe.com/thread/1308132?tstart=0 I decided to add each question seperately:
    Hello, I'm quite interested in buying Lightroom 5.2. I tried the RC which ran out now. Yet, I have a several questions that I can't really find good conclusive answers to, that I'd like to get answered before buying LR. Please don't write maybe like this or that (assumptions), since I don't want to start my whole workflow and then realize that I have to change everything around, so please answer, if you know for sure that something works and you are, preferably, using that method too.
    When selecting multiple images in LR 5.2 RC on my Mac, using the Filmstrip view, how do I delete all selected files using a shortcut (as opposed to the right-click context-menu > remove selected photos)? Details: Using backspace asks me if I want to delete it, I choose from disk, but it just deletes individual photos, so if I have 3 selected, I need to do this 3 times.

    Many users (including me) will thank you for saving us the trouble of looking for this description in the manual. Seriously!
    However, if something performs unexpectedly, if it's not a bug, it's at least a user-inconvenience.
    When an unexpected result like this occurs in a product, often the documentation writer is given the task of writing the workaround into the docs. That's not a great way to fix bugs permanently, even if it does help in the short term. So, it's probably a good idea to point to where in the documentation it seems that the product-performance problem is smoothed over, when filing the report/request.
    Feature enhancement requests and bugs are filed the same way. And, developers do listen to requests. Many features in many Adobe products originated in feature requests. However, product managers and, financial-management folks above them, who have some power to decide where to expend resources, set the priorities. Adobe's new subscription model is supposed to release some of the pressure on developers to meet a new release deadline every-so-often, where a whole bunch of product improvements is revealed, and instead, under the idea of making constant improvements available through more-frequent updates, users will get results sooner.
    dj_paige wrote:
    peter at knowhowpro wrote:
    Have you considered filing a bug report or feature enhanacement request (depends if the develoopers think it's a bug or "as designed") here: LR-WISHFORM
    As far as I know, this is not a bug, this is a feature of Lightroom (although I can't explain why anyone would want Lightroom to operate this way). You can find text in the Lightroom Manual that clearly explains tha operations performed on selection of photos in the Filmstrip is different than the same operation performed on photos selected in the Grid.

  • How do you reduce the size of the email storage on an iPhone?  I have deleted all mail items and my mailbox still takes up 1.2 GB of space.

    how do you reduce the size of the email storage on an iPhone?  I have deleted all mail items and my mailbox still takes up 1.2 GB of space.

    What is the Other on my iPhone and How to Remove It
    Also
    "First you go settings/general/usage/music/then left swipe over music and press delete and you would think it deletes your music but it doesn't instead it deletes your other but make sure your ipod is connected to a computer while doing this"
    as recommended by:
    How do I get rid of "other" storage: Apple Support Communities
    Next, usually restoring from backup eliminated the corrupted files. However, sometimes restoring to factory settings/new iPod is required.
    To restore from backup see:
    iOS: How to back up
    To restore to factory settings/new iPod see:
    iTunes: Restoring iOS software

  • Deleting All Calendar items

    I activated my iPhone at the Apple Store and unfortunatley got all the calendar items that were on the computer which obviously aren't mine and I do not want. How do I delete ALL the calendar items so I can start fresh. I do not want to reset because I already manually put in all my phone numbers from my other phone. Thanks for your help.

    Hobbers,
    All you would have to do is select the calendars that you want to sync from your computer. Under the Info tab in iTunes just select to sync your calendar and at the bottom of the same page in advance options select to replace the information.

  • Delete all desktop items

    At work I use a PowerMac G4 AGP with OSX 10.3. I accidentally dragged and dropped 1000+ documents onto the desktop. Is there any way to automatically delete every item on the desktop? The machine won't respond to any commands, (apple+A to select them all and delete them, etc.) beacause the performance is slowed down after login by all these items. Any suggestions?

    Mike,
    It sounds like you have a couple of options. Maybe you would like to follow up on Ed's suggestion.
    If you want to follow Kurt's suggestion and move the files with unix commands, I can tell you a little more about dealing with files that do not have extensions. The trick in this business is that the * character is a wildcard. So, if you issue the command
    mv *.jpg ~/Desktop/temp/
    that will move all files which have the extension jpg and anything before the period. These files are moved to the temp folder on your Desktop.
    If you have files without an extension, you will have to find some other common character to latch onto. For instance, if you have one or more files that begin with the letter s, then you could issue a command such as
    mv s* ~/Desktop/temp/
    and all files that begin with s will be moved. Or, if you had a bunch of files that had the combination xyz buried in their names, you could issue the command
    mv xyz ~/Desktop/temp/
    and they would be moved. So, the point of using the wildcard is to find some common characters in the names of a bunch of files, so that you can move them all at once.
    The hidden files that Kurt mentioned all begin with a . (period) and you will normally not see those. They are considered invisible files. If you issued the mv * command as I suggested, you will move those also. Kurt's suggestion, which I agree with, is to avoid moving those files, because some of them may have have a special use for the operating system.
    I hope this helps. If you have more questions, fire away.
    EMAC G4 1.0 GHz   Mac OS X (10.4.3)  

  • Deleting all workflow  items from SAP inbox

    hi ,
    I'm doing some Workflow testing and I've got a bunch of work items in my
    Inbox.  Is there a utility I can run that will just delete all of the work
    items in my Inbox, regardless of the status?
    any suggestions????
    thanks in advance for your kind attention.
    Ashish

    So if I don't want a user to receive a particular Workflow message everyday, how can I cancel that? Can someone tell the transaction code and procedure to do this?
    Thanks
    > Ashish,
    >
    > In Dev & Test environments you can delete work items
    > using txns SWWL or SWWL_TOPLEVEL (Menu Path: Tools ->
    > Business Workflow -> Development -> Administration ->
    > Workflow Runtime -> Reorganization). However it is
    > not recommended to do this in Production. You cancel
    > the Workflow in Production
    >
    > Cheers,
    > Ramki Maley.
    >
    > Please reward points if the answer is helpful.
    > For info on awarding points click on this link:
    > https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.ht

  • Delete all (Select All .. Delete) Podcasts

    I have over 200 podcasts that I want to delete from my iPad.  These 200+ instances are daily podcasts from the same show, so there appear in the same list.  There does not appear to be a way to delete all of these podcasts at once, e.g. Select All -> Delete in the iPad interface.
    Workaround:  I can connect the device to a computer and delete all of the podcasts with iTunes, but this is a PITA.
    This iOS functionality appears to be the same for iPhone and iPod Touch, i.e. can't do it.
    Am I correct?

    Hi knapper78,
    There are several ways of resolving this issue, but we are always up for alternatives, thanks

  • One line Powershell to delete all list items?

    Is it possible to have one line powershell to delete all items in a list (no folders)?
    I tried this one from
    http://social.msdn.microsoft.com/Forums/en/sharepointdevelopment/thread/de844268-6bb5-4510-9c83-bbca24cf278f,
    $list.get_items() | where { $_.column name with spaces -like '3*' } | % { $_.Delete() }.
    In my case, I remove the middle part: $list.get_items() | % { $_.Delete() }
    I got one item removed with the exception:
    An error occurred while enumerating through a collection: Collection was modifi
    ed; enumeration operation may not execute..
    At line:1 char:1
    +  <<<< $list.Get_Items() | % {$_.Delete()}
        + CategoryInfo          : InvalidOperation: (Microsoft.Share...on+SPEnumer
       ator:SPEnumerator) [], RuntimeException
        + FullyQualifiedErrorId : BadEnumeration
    Seems I am missing some here - I am running Powershell through SharePoint 2010 Management Shell as Administrator.

    this happens because after you delete the first item, the original collection is modified.
    You can do a simple while to delete all items:
    while($list.Items.Count -gt 0){$list.Items.Delete(0)}
    Hope this could help.

  • Reboot loop: Help me delete all login items with Terminal

    I updated my Macbook (5,1) from Lion to Mountain Lion and began soon thereafter to get the error that the computer had restarted after a problem. For a few days the computer would nevertheless reach desktop after a restart and could be used.
    I thought that perhaps the error came from the login items and saw on Rogue Amoeba's site that SoundSource isn't yet compatible with ML. Removing it seemed to cure the problem.
    But as of this morning the computer is stuck in a restart "loop". It shows the apple and spinner and a grey progress bar. When the bar is almost completed (a millimeter or so remaining) the computer restarts and does the same thing all over.
    I have now managed to get to the recovery partition with cmd-r. I have repaired the disk with DU and I would like to remove all login items using Terminal but haven't got a clue how to do it. I have searched but don't find good walkthroughs. So I would very much appreciate help on how to do this.
    My login items are Skype, Dropbox and iTeleport.
    Cheers and many thanks
    /p

    Thanks for the replies.
    @ mende1 - I did hold cmd-R to reach the recovery partition. How do I now leave safe mode (if it is stuck in that) and boot normally?
    @ Thomas - DU seems to be successful in repairing the disk. It doesn't report any errors - just says what it is "checking", "updating" and "adjusting" (not a very long list at all) - but it concludes with partition map appears to be OK.
    My other Mac has all my files so I don't mind reinstalling on this one, except for the fact that I would have to reinstall all the applications and I don't have them with me where I am at the moment.
    If I choose to reinstall when booted with cmd-r will it re-download or install from a local copy? Re-downloading will take forever because I only have mobile (3G) broadband here.
    Do I have any other options?
    Thanks for helping.
    /p

  • How do i list all word.docs for deletion of selected items

    want to clean out hard drive and want to isolate all word docs, excel sheets, etc.

    Search for them in Finder.
    If not already set, open Finder Preferences and set it to search the current folder (Advanced tab).
    Select the top-most folder you wish to search and type word into the search field.
    Select Word Document from the provided tokens.
    You should get a list of all your Word Document. You can do with them whatever you like from those search results.
    Ooops. I missed the rest of the story in the text:
    To get all the types, you can add multiple kinds to a search.
    In Finder, type Cmd-f
    In the row with Kind selected, hold down the Option key and click the button that has the ellipsis in it (…)--it was the + button.
    Add rows and change the to Kind is Other and enter the Microsoft document “kinds"
    Delete the first criteria row above the Any list

  • This may sound goofy but how can i delete ALL the items in my shopping cart

    i would really like to know how to do this so i can start from scratch i printed off all that was in it so i can refer back to it but i want it all gone at once just all of it clicking the x is just too much for me to sit for minutes on end / hours to do just too much in there.
    VV ginaanig

    Try this instead:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. Select the backup volume from the left side list. Click on the Erase tab in the DU main window.
    3. Set the format type to Mac OS Extended (Journaled.)
    4. Click on the Erase button.
    You will need to reconfigure Time Machine preferences for the backup.
    FYI: Never remove Time Machine backup data except through the Time Machine application. If you aren't sure about using Time Machine then visit Pondini's Time Machine FAQ for help with all things related to Time Machine.

  • Is it possible to accidentally delete all calendar items on iphone?

    I cannot access any future or past appointments on my calendar. They were there one minute, gone the next. Only thing on my calendar are birthdays. I did update my software and register icloud 5 days ago, but calendar items are not showing up on my macbook either.

    If you check your all programs list (wherever that is in the newer versions of Android), is Firefox still listed?
    Mozilla doesn't provide an email service, just the browser, so if you aren't able to find your mail account, consider whether it is a different Gmail account, or Yahoo, Hotmail, or another webmail service.

  • Had itunes before after virus my computer deleted all intalled items and now cannot reinstall itunes

    I have previously had iTunes. My computer got a virus after a few years of having it and I allowed it to uninstall everything I have installed on the computer. So that fixed the virus but I am now trying to get my photos off my iPhone to put on my new phone. I have tried downloading it off the home page and it says "Thank you" but the box never pops up to ask if I want to "run" it. I tried using the forms on iTunes Support. It told me to uninstall iTunes (and its various things with it in a certian order) using the command prompt. The only thing my computer had that associtated with Apple was the Bonjour and I uninstalled it and tired the download and again it didn't work. I then reset my computer and tried to reinstall it and it still wont work. Any suggestions? I need help

    There is some anecdotal evidence that the scripts on the Apple site that are supposed to detect the version of Windows you are running may fail for some users - jumping straight to the "Thank you for downloading ..." page with the installer not having been downloaded.  As an alternative, you can go directly to the relevant downloads:
    iTunes 12.1.0.71 for Windows (32-bit) - itunessetup.exe
    iTunes 12.1.0.71 for Windows (64-bit) - itunes6464setup.exe
    There is an alternative downloader for 64-bit editions of Windows here: 
    iTunes 12.1 for Windows (64-bit — for older video cards)
    that seems to address the playback issues that some users have been reporting with the full 64-bit version (the alternative installer here is the same architecture as most previous "64-bit" versions of iTunes, i.e., a 32-bit application with a 64-bit installer).  The "for older video cards" reference does not seem to fully define the scope of systems for which this alternative works better.
    See turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for more details if you're still having problems with installation.  This also includes links to the iTunes 12.0 installers if the issues reported with 12.1 suggest it safer to use the previous version.

  • Deleting all items in a Procurement Catalog

    I loaded a Procurement Catalog with new data via supplier catalog => master catalog => procurement catalog. There were some problems with the original data, however now I loaded it 3 times and many of the items in the Procurement catalog are tripled!
    How can I just delete all the items in the Procurement  Catalog and republish from the Master catalog? That way the tripled items (and some old corrupted items) will all go away and I can start fresh. We have CCM .
    Thanks,
    Laetitia

    Once you archive than oyu can create new PI document for the same mateirals.
    For archiving you need to set up the
    Instead of MM-MATBEL select Physical iunventory object then follow
    Presently trying to archive material documents through SARA and using object MM_MATBEL. Is this only for inventory maange ment or mat doc generated through process orders can also be archived (transaction type WR).
    For variant picking the document on the date basis. But when execute it says no document found while documents are there in the MKPF table.
    Further when trying using program RM07MARCNot able to do archive the same.
    it display the following message
    "Plants/Transact./Event Types for Which Doc. Ret. Period Has Not Been Maintained"

Maybe you are looking for

  • Displaying graphical representation of data in hash tables as bar chart?

    I want to be able to display results in my hash table as a bar chart i don't know how to do it could someone help me I've looked through tutorials couldn't find any information that actually helped. In my program it doesnt allow matching the capital

  • How to get the last data point from a TDM file in LabVIEW?

    Hello, I am using LabVIEW to analyze some rather large TDM files, and I need a way to get only the last data point.  So far, the only way I have been able to accomplish this is by reading the entire file.  Is there a property in the TDM file or a fun

  • Stacking Order of Elements

    Hey All! I'm enjoying our recent move to Cap. 2, lot's of great new features. I've run into a bit of an oddity and am planning to submit a bug report, but wanted to toss it out here first. Here is what I am doing and experiencing: 1. Record a demonst

  • Closed captions + SDH made a mess by Apple TV 6.0. Any fixes?

    We've found that the Apple TV 6.0 software update made a mess of closed captions + SDH .  It suddenly changed the size and color and font on its own.  To make things worse, when we try to send them right with the new customizable closed caption style

  • I'm having trouble getting this started.. any help?

    Yesterday I bought a book -- Head First JSP's and Servlets because I wanted to learn about java could be used in web development. However I pretty much ran into problems from the first page. I seemed to fix most of them, But now a program that I made