Deleting items which are cheked in CheckBox

Hi
I am deleting some items which are checked by the user in the check box.
If user checks 3 items and click delete, I should delete all the items which are checked.
help me in solving this issue.
Sample code will be very helpful.
Thanks
soori

hi there :))
in the page u have:
<f:view>
    <h:form>
        <h:selectManyCheckbox layout="lineDirection" value="#{userBean.result}">
            <f:selectItems value="#{userBean.data}" />
        </h:selectManyCheckbox>
        <h:commandButton value="Submit" action="#{userBean.action}"/>
    </h:form>
</f:view>UserBean class:
        private String result[];
     private HashMap data;
     public String action() {
          if (result.length > 2) {
               for (String res : result) {
                    data.remove(res);
          return "";
     public HashMap getData() {
          if (data == null) {
               data = new HashMap();
               data.put("1", "1");
               data.put("2", "2");
               data.put("3", "3");
               data.put("4", "4");
               data.put("5", "5");
          return data;
     public String[] getResult() {
          return result;
     public void setResult(String[] result) {
          this.result = result;
     }in action method u check how many check boxes are clicked and if they`re more then 2 u delete them from the HashMap

Similar Messages

  • VSB1N--Deleting items which are in status 'Processed with errors.'

    Hi Friends,
    There is one issue which needs your guidance,
    In SAP there is an transaction called VSB1N where all our incoming SBI invoices gets received. When an SBI is received it can end up in either 1."Processed without errors" or 2. "Processed with errors". If the SBI ends up in the second state it requires a manual correction and then it can be processed again so it ends up in state one.
    The issue here is with number 2 mentioned above, i.e. "Processed with errors". Some of the items do not belong to this list & will not be corrected. So what client want is to delete them and here is where the problem gets in, they cannot be deleted.
    Is there any way to have these items deleted?
    Many Thanks!
    Sadanand.

    Check the following notes:-
    a)  Note 371489 - SBWAP: Posting step terminates
    b)  Note 557344 - Processing step ends with errors
    c)  Note 1605859 - FAQ: Processing step in SD self-billing procedure
    G. Lakshmipathi

  • With a wired keyboard and a 2014 iMac I cannot select multiple items which are not next to each other

    I have recently changed from Windows 7 desktop to a new iMac running Mavericks.  I have chosen a wired keyboard as I like  the usual Delete key function.
    I cannot find out how to select several items which are not next to each other (e.g. words in Pages).  The well known method in Windows, which is repeated in the the Apple Finder Help screen, does not work.  Would be grateful for advice

    Hi JBowfin,
    If I am understanding your question correctly, I believe that I have an article that will address this question for you:
    Mac OS X 10.0: Use Command Key to Select Multiple Items in List and Column Views
    http://support.apple.com/kb/TA20396
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Deleting files which are offline.

    What is the best way to get Lightroom to delete files which are offline? I don't use lightroom as a database or DAM - for that i use iMatch. I use lightroom only to process the raws and hate to see the thumb files with a question mark on them when they are really not available locally.
    Sometimes i wish lightroom behaves like the photoshop bridge program in that it will display only files that are available but i understand that lightroom does what it does because it also acts as a DAM program - that's why it still keeps the thumb files even though they don't really exist locally. But i don't want to see them if they are not available - is this possible and what's the best way to batch delete all question-marked files? Thank-you. 

    Of course doing as John suggests mean all edits, history, snapshots, collection information, virtual copies are gone, gone, gone.
    As you've said yourself, Lightroom is a database, not an browser and having access to offline files is a reason why people use Lightroom. Missing file handling could be better, but if you want to files on a missing volume, click on the Volume browser to close the folder view. Of course you'll still see the missing files in collection.

  • PO items which are not GRed

    Hello.
    I have a requirement wherein I need to print all the PO item which are not fully goods receipt ( open goods receipt qty). Can some one let me know exact logic and table from where data can be picked.
    Thank you!
    Arvind

    Hi,
    You can check in table EKPO field: WEPOS     WEPOS     CHAR     1     0     Goods Receipt Indicator
    which shows if item is GRed or not.
    Also check the following and use whichever is apt.
    ELIKZ     ELIKZ     CHAR     1     0     "Delivery Completed" Indicator
    EREKZ     EREKZ     CHAR     1     0     Final Invoice Indicator
    TWRKZ     TWRKZ     CHAR     1     0     Partial Invoice Indicator
    Regards,
    Karthik

  • AE: Deleting Initiators which are already tied to request

    Hi All
    Is there a way of deleting initiators which are already tied to requests? We would like clear the system of all initiators if this is not possible is there a way around it! We would like to use attributes assigned to those initiators in new initiators.
    Any assistance will be appreciated!

    Hi there,
    it is possible to delete initiators!
    - find the path the initiator you want to delete is tied to
    - edit the path and check the "detour" box and deactivate the "active" box
    - save the path without an initiator (detours don't need initiators)
    - now you can delete your initiator
    What is not possible is to delete the path (only when deleting the requests with the mentioned script).
    Regards,
    Daniela

  • Setting ToolTips for items which are disabled.

    Folks,
    No offence meant if this is a repeat.
    I have a JPopupMenu with Action as its components.
    1) I have disabled certain menu items to false.
    2) I would like to use a ToolTipText to show a message 'You have no permission'
    when the user hovers over the menu items which are disabled/set to false
    3) I wrote my own ToolTipText,but what is happening is that I am getting the tool tip text
    for all menu items.
    Please can anyone help me in how to get tooltiptext for menu items which are enabled to false?
    Help much appreciated
    // JPopupMenu
    JPopupMenu pm = new JPopupMenu();
    // Add Action
    pm.add(new GraphAction());      
    pm.add(new DescendantsAction());
    pm.add(new DebugAction()).setEnabled(false);
    ToolTipTextForMenuItems.setToolTipForIndividualItem(pm.getComponent()) // Does not display any Tool Tip.
    pm.add(new ResetAction()).setEnabled(false);
    ToolTipTextForMenuItems.setToolTipTextForMenuItem(pm); // Shows ToolTipText for all menu items (disabled and enabled)
    ToolTip Code
    public class ToolTipTextForMenuItems {
    private static final String TOOL_TIP_TEXT = "You have no permission";
         public static void setToolTipTextForMenuItem(JPopupMenu popupMenu){
                 for (int i=0; i<popupMenu.getComponentCount(); i++){
                    Component c = popupMenu.getComponent(i);
                    if (c instanceof JComponent) {
                              ((JComponent)c).setToolTipText(TOOL_TIP_TEXT);
         public static void setToolTipForIndividualItem(Component c){
               if (c instanceof JComponent) {
                         ((JComponent)c).setToolTipText(TOOL_TIP_TEXT);
    }

    Yes,I have looked at the Abstract Action code sent in
    I have not used Action and Abstract Action before,hence if you can/could just
    modify this as per my requirement,then I can enhance on this.
    No offence meant for the above
    Thanks

  • How can I get a birthday reminder from items which are in the read-only cal

    I am looking for a solution to get a reminder message for birtdays which are within the read-only calender imported/updated from he address book. I so far have not found the option where to turn on the reminder and I do not want to duplicate items (ie creating another birthday calender inside iCal).
    Thanks for comments.
    PB G4 Ti, 1GHz, 10.2.8   Mac OS X (10.4.7)  

    Hi ontour,
    This limitation is one of the many reasons I wrote Dates to iCal. It is a replacement for the Birthdays calendar in iCal, so you would need to turn the Birthdays calendar off in iCal's preferences.
    See here: http://discussions.apple.com/thread.jspa?threadID=466478
    Best wishes
    John M

  • Items moved to deleted items folder are disappearing

    By boss currently has an issue with e-mails received in Mail on his computer and moved to the trash folder are disappearing after a certain timeframe. His e-mail account is set up as IMAP and under user preferences/mailbox behaviors under "Trash" both move deleted items to trash and store deleted items on server are checked. Permanently erase deleted messages it set at never. (he likes to keep deleted messages for reference)
    I have access to his e-mail on my computer(his e-mail is set up as a separate account) and the settings are set up identical to those on his computer. My e-mail is set up as POP3- the move deleted items to trash mailbox is checked and permanently erase deleted messages is set at after 30 days. Could this cause his e-mails to delete after 30 days as well?

    The problem is recurring. All devices are using Mail- preferences are set to never remove deleted messages. I have contacted our e-mail host (Bluehost) to verify that nothing is triggering the deletions on their end and they insist there isn't.

  • Delete records which are checked

    What is the codings in servlet and jsp  to delete the records which have been checked where status ="To be accounted".

    Hi Rajesh,
    Case sy-ucomm.
    when 'DELETE'.
      loop at itab where checkbox = 'X'.
        delete itab.
      endloop.
    endcase.
    Please paste ur part of code.
    Calling of the Function Module should be given the user command
    call function 'REUSE_ALV_LIST_DISPLAY'
        exporting
          I_CALLBACK_PROGRAM      = SY-REPID
          IS_LAYOUT               = IS_LAYOUT
          IT_FIELDCAT             = IT_FIELDCAT
    <b>      I_CALLBACK_USER_COMMAND = 'USER_COMMAND'</b>      IT_EVENTS               = IT_EVENTS
          I_SAVE                  = C_ISAVE
        tables
          T_OUTTAB                = IT_OUTPUT
        exceptions
          PROGRAM_ERROR           = 1
          others                  = 2.
      if SY-SUBRC <> 0.
        message id SY-MSGID type SY-MSGTY number SY-MSGNO
                with SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    Regards
    Gopi
    Message was edited by: Gopi Narendra

  • Turning Open items which are partially payed into Close items.. How?

    Hello,
    In our company we use partial payment to Vendors using transaction F-59 and also automatic paymant of full amounts. Everything is working correctly but since we use very offen partial way of paymant, on transaction FBL1N I have a lot of open items and most of the time I don't know exactly how much do I own to vendor(s).
    To explain it easier I will show one simple example:
    1. I own to one of my vendors amount Eur 10.000
    2. Using transaction F-59 (partial payment) I pay him Eur 3.000
    3. When I open transaction FBL1N for that vendor and if I choose to show only Open items
    total amount shows me that I own him Eur 10.000 instead of due amount 7.000
    I understand that total amount of Eur 10.000 instead of Eur 7.000 is shown because we use partial instead of residual way of paymant but I would like to know is there any way I could manually turn these Eur 3.000 into close item because they are already payed?
    Searching through Internet I found that transaction F-44 could be used for similar but I am not sure it can do exactly what I need: to turn all partial payed open items to close items so for each vendor then I could see exact amount I own them.
    I hope someone can help me with this because I must solve it ASAP and it's slowing me down at my workplace and it would be great if I could manually close some open items, because they are already payed.
    Greetings,
    Adi
    Moderator: Please, try searching before posting a new thread. Clearing issues are well described on these forums
    Edited by: samnovice on Jul 30, 2011 3:50 PM

    Hi:
         Knocking off invoices against partial payments in F-44 is a standard procedure that is used to clear open item outstanding in Vendor ledger FBL1N. You should ideally clear partial payment in Residual Tab of F-44 and for remaining amount e.g 7 in your case you should double click in residual item column next to amount. By doing so system will also copy the original invoice reference to the partial document AB (with 7 amount) as per setting defined in OBA0 for residual item clearing.
    Line item 10 and its payment line item 3 are standing open in ledger because you did not apply them in F-44. You could have also directly apply them in F-59 of F-53. Partial document will be generated with document type as per setting you have defined in OBXH. Hope this will clear your understanding.
    Regards

  • Deleting items that are no longer on my computer

    I've recently installed a new hard drive on my laptop and reinstalled windows. I saved everything from the previous drive..when I installed itunes I am showing duplicates of all songs. I'm thinking there was a setting from my previous drive that was saved but since my songs are now on a d:\ drive instead of the c:\ drive iTunes made an entry from the old drive, then found the songs in the new drive, now there are duplicates. I have over 1000 songs in my list and don't want to delete each entry one by one.
    Is there something I can do to eliminate all items from the Music Library that are duplicates and are showing the exclamation icon on the left?
    Thanks for your help
    Glenn

    Go to the Music soource of the library and sort by *Date added*. You should find all the ! marks grouped together into the top or bottom half of the list. They don't necessarily show with a ! until you try to access them in some way, e.g click on file with the artwork preview box visible. It doesn't matter as long as you've ordered them correctly. Simply find the first missing track and click on it, scroll down to the last, hold down shift and click on the last of the group selecting all in between. Now press delete. Confirm you want to remove the files from iTunes. If asked whether files should be deleted click cancel and check on your selection process above.
    Not all Podcasts reimport properly so you may find the new copies of some of these are in Music or Movies instead of Podcasts. The same may also be true for some TV shows which may show up in Movies. You may need to change the kind of some of the newly imported movies to Music Video then remove any remaining movies, TV Shows & Podcasts with broken links. Any games can be relinked from the Applications source.
    tt2

  • Field to add to enter number of items which are  shipped to customer

    Hi Sap Experts,
    We have scenario, we have created sales order with quantity 1(Like soft copy or hard copy of CD).
    Now we want to create delivery with sales order and quantity is 1(Copy from sales order).
    Our requirement is some time we have to send additional things like hard copy of manual or complement gift which we are not entering in sales order.
    Exp: Sales order- quantity 1.
    Want to deliver quantity 1(+ manual+ complement gift, these items are not part of standard order)
    For more clarity, we have to add one field and want to enter number (How many items we have send along with main materials and these items are not relevant for pricing also).
    So requirement is add one additional field in delivery header/item.
    Customer doesn’t want to use Free of goods or BOM which we have propose him. How to customize standard table and standard program.
    Kindly suggest.
    Regards,
    Kotli
    20

    Hi,
    Thanks.We want to add a field, might be like this.We just want to enter only no of extra items like 3.
    Exp.
    Delivery Qty-1
    extra items:3
    Regards,
    Custom field to add number of packages shipped along with Delivery 

  • Outlook 2007 instead search does not show the items which are actually present in the inbox and folders

    Scenario:
    when user search for any particular email item by using the sender name or subject name it does not show any result. At the same time it works fine when he specify the search folder(target folder) instead of searching it across all the folders/sub-folders.
    1. We tried reconfiguring the outlook profile but this not fixed the issue.
    2. It is specific to only few users but so far for all the others users it works fine.
    3. Restarted the “Microsoft Exchange Indexer Service” but this is also not fixed the issue.
    4. Hence the outlook reconfigure not worked, rebuild the search index not tried yet, but will give a try.

    Hi,
    Did the user select All Mail Items scope when searching in Outlook?
    In addition, please make sure the user is not searching in a shared mailbox because in some configurations, you are limited to using the
    Current Folder search scope when searching in a shared mailbox.
    Please also let me know the result if you have tried rebuilding index.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Handling Items which are Subscription Based?

    Does anyone know a good way to handle subscription based items? I have a client which sells newspaper subscriptions among other products. Any ideas on how to handle the yearly subscriptions?

    Hi Andrew,
    Even though Subscription Items are not having any physical stocks, I think it is better to set them as inventory items in order to get the numbers of subscriber at any given time.
    This special item has most of the properties similar with actual item. You can deem these items as in the virtual warehouse.  In this way, all sales analysis and unsubscribing can be handled easily.
    This is my 2 cents only,
    Thanks,
    Gordon

Maybe you are looking for

  • Can't receive Gmail in Mac Mail - just started

    I can't seem to get any of my imap Gmail in my Mac Mail account - just started happening. Connection doctor is ok, but the little spinner just spins and spins next to my Gmail acct and nothing downloads. Have access through Time Warner Roadrunner. I

  • Submit button issue in Acrobat 9 Pro

    I have created a form in acrobat 9 pro. I have added a submit button and set the action to mailto:(my email address). I have uploaded my form to my website but the submit button is not working. I have followed the instructions within your tutorials b

  • How to make result of form post to jsp to appear in child frame

    Two frames inside a frameset, A and B (A is the first frame, B is the second). A has as it's source an html page containing a form with a submit button. The form posts to a jsp called Content.jsp. Works great, except: I want the results returned by C

  • Set until time clause to restore controlfile

    Hello How can I use "set until" clause to restore the controlfile ? The database is already in archivelog mode. RMAN> run { set until time "TO_DATE('2011-02-24 09:30:00','yyyy-mm-dd hh24:mi:ss')"; restore controlfile from autobackup; RMAN> RMAN> 2> 3

  • Need Information about Oracle DBA 9i Exam

    Hi all, I am from saudi arabia, and i would like to write OCP for 9iDBA. I tried to contact saudi arabia oracle. But no use. Can any body help regarding to find another center for OCP. Reply me on [email protected] Bye Raj