Deleting a dataTable item after sorting

Hello,
I am using a "h:dataTable" which has a 'delete' commandLink on every row.
If I sort the table and then delete an item, the wrong item is deleted.
The deleted item is the item that was originaly in the same place (before sorting).
What should I do to fix that?
Thank you,
Dana

Should I call "sortDataList" before deleting the item the way it was sorted in the previous request?
If so, the function should receive an "ActionEvent event".
public void sortDataList(ActionEvent event) {
        String sortFieldAttribute = getAttribute(event, "sortField");
}What should I send as the parameter to the sorting function?

Similar Messages

  • System should not allow to delete PO line Item after GR/IR

    Hi,
    I am working on a SAP Retail Implementation project.
    Currently the system is allowing us to delete the PO line items after doing GR or IR against that PO line item. But the clients requirement is that the system should not allow to delete PO line item after doing GR/IR.
    We are using Account Assignment Category-N, Item Category-S.
    Please let me know if you have the solution for this requirement.
    Thanks in advance
    Thanks & Regards,
    Suresh

    Hi,
    Standard SAP will not allowed the PO to be deleted once it was GR done. The controlled is on the attributes of message to set as "E"
    Message no. 06115
    But if invoiced takes place, the is the point that PO can be deleted.
    You have to do have a Enhancement using MM06E005, insert you logic here to check PO history tables like EKBE, then check if invoice " Q" (BEWTP) exist, the PO cannot be deleted once the user delete the PO line and SAVE it. Ask you developer to help you on the following coding.
    Use MM06E005 and EXIT_SAPMM06E_012
    IF SY-TCODE = 'ME22N'.
    IF sy-ucomm = 'MESAVE' OR SY-UCOMM = 'YES'..
    LOOP AT TEKPO.
    IF TEKPO-LOEKZ = 'L'.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR1 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'E'.
    IF SY-SUBRC = 0.
    SELECT SINGLE BELNR FROM EKBE INTO BELNR2 WHERE EBELN = TEKPO-EBELN AND EBELP = TEKPO-EBELP AND BEWTP = 'Q'.
    IF SY-SUBRC = 0.
    Regards,

  • How to delete delivery  Line item after the Invoice Passed accounting

    Hi Experts,
                    Outbound delivery was created w.r.t.  Purchase order using VL10B.In the current process here batch is determined at delivery level.There was a line item with '0' Quantity which had a batch and another line item with Full Quantity confirmed for a batch and the PGI was done for the delivery.Invoice was created and passed accounting.
                     The problem is that in VF04 in the Billing due list we are able to see the '0' Quantity Line item  as shipped but not yet billed.
                     Doing a PGR ,then delete the line item with '0' Quantity and then again doing PGI was suggested by few people but i feel that will be a very tediuos process since the document  passed accounting.
                      Can anyone help in getting the line item deleted from the delivery document or suggest with ways to remove the data at VF04.
    Warm Regards,
    Jeff

    I think you can comeplete the item by using T.code VL_COMPLETE, check and let us know your feedback

  • Problem in deleting Rows of JTable after sorting it

    Hi all,
    I'm getting problems in Removing Row(s) after sorting a JTable.
    Please find the code snippets at this URL. Thanks for your time...
    http://forum.java.sun.com/thread.jsp?forum=31&thread=459736&start=15&range=15&hilite=false&q=

    Hi Abhijeet,
    I tried it the way you said using
         wdContext.nodeBirhtday_List().nodeItab().moveFirst();
         //     loop backwards to avoid index troubles
         for (int i = n - 1; i >= 0; --i)
              current_date  = wdContext.nodeBirhtday_List().nodeItab().currentItabElement().getGbdat().getDate();
              current_month = wdContext.nodeBirhtday_List().nodeItab().currentItabElement().getGbdat().getMonth();
              if (( current_date != date_today ) && ( current_month != month_today ))
                   wdContext.nodeBirhtday_List().nodeItab().removeElement(wdContext.nodeBirhtday_List().nodeItab().
                                  getElementAt(i));                
              wdContext.nodeBirhtday_List().nodeItab().moveNext();     
    It adds records...
    According to Valerys Solution, the IPrivate<CustomController> doesnt show me the required nodes. and gives me 'Unable to resolve' error.
    Can you please suggest where I am going wrong
    Regards
    Abdullah

  • ALUI Publisher 6.4 - deleting of content items after expiry date

    Hi, We have a requirement to delete content items from Publisher after the expiry dates. Is there a process to do this within ALUI Publisher 6.4? Appreciate any suggestions or thoughts. Thanks.

    I work with publisher for a long time now, and I don’t think that there is an automatic process that dose that, you have to manually delete it when it is expired.
    -Lilach

  • Possible to delete SC item after PO creation?

    Dear all
    We use Extended classic. I need a piece of info.
    I am able to delete the SC item after PO creation..! Is it allowed as per general business scenario. Is it possible to delete SC items after PO creation?
    How to curb this?
    Please share your valuable knowledge in this regards
    Thanks in advance
    Krupa

    Hello,
    As per standard design, it is possible to delete a shopping cart if only                 
    one follow-on document exists. For example, a purchase order or a                        
    purchase requisition.                                                                               
    When you delete the shopping cart in EBP, the deletion indicator will                    
    be set in the purchase order.                                                                               
    You cannot delete the shopping cart if the follow-on document has other                  
    follow-on documents, like confirmation or invoice.                                                                               
    The following is the standard behaviour for SC/limit SC deletion:                                                                               
    SC -> PO : deletion possible                                                             
    SC -> PReq: deletion possible                                                            
    SC -> PReq + PO: deletion NOT possible                                                   
    SC -> PO + CF: deletion NOT possible                                                     
    SC -> PReq + PO + CF: deletion NOT possible                                              
    SC -> PO + CF + INV: deletion NOT possible                                               
    SC -> PReq + PO + CF + INV: deletion NOT possible                                                                               
    Standard logic: in general SC does not prevent the deletion of SC items                  
    just because of existence of follow-on documents.                                        
    The SC item itself does not know if the deletion is possible.                            
    It just tries to delete the corresponding item of follow-on document.                    
    If this deletion has been successful, then also the SC item can                          
    and will be deleted. If the deletion of follow-on document item has                      
    failed, the SC item deletion is not possible.                                            
    So it is a task of follow-on document to know if its items can be                        
    deleted or not.                                                                          
    Best regards,
    Ricardo

  • Deletion of Line item in Po after GR occurs

    Hi SAP Expert,
    Can we make the system to block the users from perform deletion the line item in PO after GR has been made? There are case that the user simpled
    delete the line item in PO which GR has been perform and we what to block
    the users from do this deletion.

    Hi,
    In attributes of system Message setting for PO try to add message no.06 115 as error and assign the same to users.Moreover this message comes as a standard setting and prevents from deleting the PO line if Gr is made .But this will not restrict if MIRO is done after GR.
    Dhruba

  • TS3899 After updating to ISO6, my email sending get extremely slow or dispeard. on the botton line of mail page always indicate "sending # of 9", however I do not know where to check or delete these unsent items. Please help! It has consumed lots of data.

    After updating to ISO6, my email sending get extremely slow or dispeard. on the botton line of mail page always indicate "sending # of 9", however I do not know where to check or delete these unsent items. Please help! It has consumed lots of data.
    I use @me.com and @hotmail.com

    Hi,
    >>A CHAR datatype and VARCHAR2 datatype are stored identically (eg: the word 'WORD' stored in a CHAR(4) and a varchar2(4) consume exactly the same amount of space on disk, both have leading byte counts).
    Ok, but on the other hands:
    SGMS@ORACLE10> create table x (name char(10), name2 varchar2(10));
    Table created.
    SGMS@ORACLE10> insert into  x values ('hello','hello');
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> select vsize(name),vsize(name2) from x;
    VSIZE(NAME) VSIZE(NAME2)
             10            5
    SGMS@ORACLE10> select dump(name),dump(name2) from x;
    DUMP(NAME)                                         DUMP(NAME2)
    Typ=96 Len=10: 104,101,108,108,111,32,32,32,32,32  Typ=1 Len=5: 104,101,108,108,111Cheers

  • PO change output not triggered after deletion of line item

    Hello SAP experts,
    I have one issue with PO output
    I have created PO with output type & we are outputing through ME9F( 3- Send with application own transaction)
    Below is the sequence,
    1.PO created & outputed thru ME9F
    2.Now ,i added the line item in the PO,Output triggred but not processed.
    3.I deleted the line item immedietely,Output not triggered.
    (My question is Why the output is not tiggered?)
    4.I outputed it through ME9F,vendor will receive only 1st output & never get the 2nd o/p for the deletion of item.
    I am clear that after processsing the 1st output,then only i can process the 2nd.
    But in business point of view,this scene created the problem.
    Please provide your valuable input.

    Hi,
    In IMG - Materials Management- Purchasing-Messages - Fields relevant to Print out of changes
    Enter Table EKPO , Reference Field LOEKZ, tick on change print relevant for purchase order,in routine enter 03.
    Now your Output will be triggered with a change indicator and you can process it using ME9F.
    Regards
    Chandra Shekhar

  • After sorting my pictures into albums, I  deleted them from the camera roll, now they're all gone. Including the ones filed in the albums. Would it be possible to get them back ?

    after sorting my pictures into albums, I deleted them from the camera roll, includings the ones filed in the albums. Would it e possible to get them back ?

    A photo in the Camera Roll cannot be in an album unless the photo remains in the Camera Roll. Photos in an album or not duplicated. A photo in an album includes a pointer to the original photo stored in the Camera Roll. The Camera Roll is for temporary storage. Photos/videos can and should be imported by your computer as with any other digital camera.
    The Camera Roll is included with your iPhone's backup. If your iPhone's backup has been updated to include all photos that were in the Camera Roll and has not been updated since the photos were deleted, you can try restoring your iPhone from your iPhone's backup. Do not update your iPhone's backup before doing so and decline the prompt to update your iPhone's backup as the first step after selecting Restore.

  • To Delete the PO Work Item after 2 days

    Hi Experts,
    I am new to workflow.
    In R/3,
    I want to delete the PO workitem automatically from UWL after 2 days .
    I am using WS20000075, and tasks TS20000166, TS20000167, TS20000168 .
    How can I delete the work item from UWL .
    Please give me a brief solution .
    Regards
    Krishhna

    Hi,
    Activate processing obsolete option in the task step for which workitem has to be deleted.
    Also specify the latest end for 2 days.
    Cheers,
    Raja.D

  • Lion has changed the order in which Finder items are sorted in Icon View; Acc vs. Desc.  How can you change this order?

    The order in which items are sorted has changed in Lion and I can't figure out how, or if, it can be changed.  Previously in Snow Leopard if you sorted by 'Date' in Icon View, your icons would be arranged from oldest to newest.  The same was true for 'Kind' and all the order sort options.  In Kind my *.zip files were positioned last.
    Now in Lion, the order is reversed.  Newest and Zips on top... the accending vs. decnding order has been changed.  How can I change the sort order in Icon View?

    I managed to fix the reverse order issue by deleting the com.apple.finder.plist and com.apple.finder.plist.lockfile in the user library folder. I did have to use terminal to delete the files and then re-launch finder from the force quit window. Here are the step-by-step instructions:
    Hold down the option key while selecting the Go menu. Select Library.
    Navigate to the Preferences.
    Find the com.apple.finder.plist.lockfile and delete it.
    Open Terminal (Application/Utilites)
    In Terminal type in sudo rm (include a space after the rm and do not hit enter)
    Drag com.apple.finder.plist file to the terminal window. It will fill in the path to the file)
    Press return.
    Type in your password and hit return. (The cursor will not move when you type in your password)
    From the Apple menu, select force quit.
    Highlight finder and select re-launch.
    Be careful when using Terminal. There is no undo button and you can accidentally delete important files.
    I hope this helps.
    Henry

  • Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

    We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
    August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
    failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
    values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
    Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
    instead of only "Daughter".
    Please provide the solution to get rid of this issue.
    Thanks
    Ramasubbu

    Try below:
    http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
    http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
    While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
    'i' and I was working with an Edit Form. Changing it to
    'u' as it was with every other FormField fixed the issue.
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
    />
    Explanation:
    DataBind operation type parameters (the first parameter) are listed below:
    'i' stands for INSERT,
    'u' stands for UPDATE,
    'd' stands for DELETE.
    http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • Deleted PO line item not coming to Sourcing

    Hi,
    We created PO from sourcing, later we realized that vendor need to be chaged. so we deleted PO line item, but this deleted line item is not displaying in sourcing cockpit. when could be the reason
    Thanks
    Ravi

    Ravi,
    Please check the following notes
    Note 1059979 - BBP_GET_STATUS_2: deleted PO did not send the shp to SOCO
    Note 1012124 - SHP not reappear in SOCO after backend PO delete
    Note 1055238 - Item is not sent to SOCO after backend PO deletion
    From the bid Invitation
    Note 1134786 - Requirement sent back to SOCO when a PO is deleted
    Thanks,
    Surya

  • User-exit for deletion of line item in PO

    hi group
    i want to delete a line item of purchase order.
    and after that i have to make some changes
    so i want to know which user-exit will be used here.
    please help its urgent.

    Hi,
    Please fine the list of user exits for the transaction ME22.
    If it serves your purpsoe , please close the thread and reward suitable points.
    Regards,
    Irfan Hussain
    Transaction Code - ME22                     Change Purchase Order
    Exit Name
    Description
    AMPL0001
    User subscreen for additional data on AMPL
    LMEDR001
    Enhancements to print program
    LMELA002
    Adopt batch no. from shipping notification when posting a GR
    LMELA010
    Inbound shipping notification: Transfer item data from IDOC
    LMEQR001
    User exit for source determination
    M06B0001
    Role determination for purchase requisition release
    M06B0002
    Changes to comm. structure for purchase requisition release
    M06B0003
    Number range and document number
    M06B0004
    Number range and document number
    M06B0005
    Changes to comm. structure for overall release of requisn.
    M06E0004
    Changes to communication structure for release purch. doc.
    M06E0005
    Role determination for release of purchasing documents
    ME590001
    Grouping of requsitions for PO split in ME59
    MEETA001
    Define schedule line type (backlog, immed. req., preview)
    MEFLD004
    Determine earliest delivery date f. check w. GR (only PO)
    MELAB001
    Gen. forecast delivery schedules: Transfer schedule implem.
    MEVME001
    WE default quantity calc. and over/ underdelivery tolerance
    MM06E001
    User exits for EDI inbound and outbound purchasing documents
    MM06E003
    Number range and document number
    MM06E004
    Control import data screens in purchase order
    MM06E005
    Customer fields in purchasing document
    MM06E007
    Change document for requisitions upon conversion into PO
    MM06E008
    Monitoring of contr. target value in case of release orders
    MM06E009
    Relevant texts for "Texts exist" indicator
    MM06E010
    Field selection for vendor address
    MMAL0001
    ALE source list distribution: Outbound processing
    MMAL0002
    ALE source list distribution: Inbound processing
    MMAL0003
    ALE purcasing info record distribution: Outbound processing
    MMAL0004
    ALE purchasing info record distribution: Inbound processing
    MMDA0001
    Default delivery addresses
    MMFAB001
    User exit for generation of release order
    LWSUS001
    Customer-Specific Supply Source Determination in Retail
    MRFLB001
    Control Items in Release Creation
    No of Exits:         33

Maybe you are looking for