JSP item deletion problem

I have a minor problem in JSP that I can't get fixed.. When I try to remove all items from my shopping basket it deletes all items except one.. but in fact he deletes them all but fails to refresh the correct content of the shopping cart.. (at least.. that's what i think..)
<%
String name = request.getParameter("action");
     if (name!=null){
     if (name.equals("emptyCart")){
     myCart.deleteAllItems();
%>
Remove all items
So, when I add 3 items e.g. and I click on "remove all items" the first item I added still shows up in my cart, when I reload the window, it's gone.. I tried to add a JS function that would reload the window, but it doens't change anything..
Your help is greatly appreciated,
Michael

As i stated the JS function is just a function that reloads the document, but even using that the problem remains;
Here's the code from my bean:
package myShoppingCart;
import java.util.*;
public class myCart implements java.io.Serializable{
     private Vector items = new Vector();
public myCart(){
     items = new Vector();
public void deleteAllItems(){
     items.removeAllElements();
Thank you for helping out,
Michael

Similar Messages

  • Error V1 392 , item deletion from PO.

    Hi All ,
    User trying to delete few line items from PO but while saving system throwing below message and not able to save the document.
    Because of this info message user unable to save the PO with line item deletion.
    I google the issue but no success.
    Kindly suggest.

    Hi,
    Thanks for your reply.
    More details :
    Order got created via a batch job. We are getting the order from external application with all the details.
    Order created in system with Sloc in the line item level.
    This line item externally procured hence created a PR in line.
    PR converted into PO with same Sloc in PO header line item.
    This Sloc also present in material master Prod. stor. location & Storage loc. for EP , MRP 2 view.
    Strange thing is that ,
    In the same PO there are few items deleted already which was in the same situation.
    But getting above problem to delete remaining items.
    Please suggest so that I can check any other areas which are unattended.
    BR,
    Stone.

  • Subreq Deletion Problem

    GURUS
    I am Facing some Data Inconsistency Problem as A result of which the Stock requirement List Shows  subreq ( Sub contracting request )in MD04 even though the Purchase Order with reference to which they were created has been Archived
    I have a Material MD04 of which Shows Subreq which are created as a result of Purchase Order for other Material .
    Now the Purcase order is Archived but The Dependent Subreq  Is  been displayed and not deleted,
    I have tried the SAP Fix Program RM06C020 but it doesnt work as the Purcahse Order has been archived from the database and program RM06C020 will look for Order Entry in table MDBS .
    Please Suggest
    Thanks In Advance

    Hi Milind,
    Thanks for confirming that this is very rare case.
    The reservations created through MRP run will not allow you to access through MB22 route.
    Good that you could find the reservations in RESB. You can mark an entry 'X' in the RESB table field XLOEK (Item deleted) against the reservation number.
    If needed, take the help of your developer colleague to make this table entry.
    Thanks
    Senthil

  • CCM 2.0 Item Deletion and Old Shopping Carts

    Hi everyone!
    We delete an item of the catalogue and then we publish it again. If then we go to SRM Shopping Tool and buy using and OLD SHOPPING CART that contain the item. We can buy the item without problems (alhough it's not existing anymore).
    We have the same kind of problem when we change the price of the item, and we buy it using and old Shopping Card. We buy it with the old price.
    Any suggestion about how can we solve this problem?
    THANKS IN ADVANCED!!!!

    Hi Patricia,
    when you define the catalogue in the Web-Services in config there is an option Validate Product Data from SAP Enterprise Buyer. This option will check the catalogue data when copying from an old shopping cart and update where necessary.
    The config path is
    Supplier Relationship Management > SRM Server > Master Data > Define External Web Services
    Double click on your catalogue name and you fill see the various options.
    Hope this helps
    Regards
    Chris

  • Redetermine pricing on item deletion

    Hi,
    We have a requirement where in we need to recalculate the price for remaining product on line item deletion. We have a condition type ZE30 the value of which is set using custom exit. In the exit the value of the constant InactiveFlag (PricingCustomizingConstants.InactiveFlag) is set to value INACTIVE_DUE_TO_ERROR, based on the value of total net price of the order. When a line item is deleted since the total net price is affected, accordingly we need the value of condition type ZE30 for the remaining line item to be updated. On deleting a line item we see that the exit is not called at all. Only when the order is saved the exit is called.
    We are using B2B Webshop and in the initial order page when a line item is deleted we see that the price is not updated. But if we click on 'To Order' button the price is updated correctly. Is there any way to recalculate the price as soon as Update button is clicked?
    Thanks & Regards,
    Amrutha

    Hi Amrutha,
    Please share if you have fixed this issue. I am facing similar problem.
    Thanks in advance,
    Regards
    Suvitha

  • How to set the conditions for item deletion approval workflow?

    Hi,
    I have created approval workflow for item modifications ie, when user try to modify an item, it will send a mail to Project Manager. For that I set the conditions in Change the behavior of the overall task: 1. When the task process starts 2 . When the task
     process completes .
    Change the behavior of the single task: 1.when a task is Pending.
    [I followed this https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx ]
    My Requirement is that I want to set this same workflow for the scenario: when the user deletes an item it will send a mail (intimation mail for item deletion) to Project Manager. here i dont want to send modification mails when user deletes an item.
    When user modifies an item: 1. intimation mail, 2. Approve/Reject mail 3. intimation for approval / rejection mail.
    When user deletes an item: 1. intimation mail.
    How can we set it in one approval workflow?? where i have to set the condition for sending either item modification mails or deletion mail.
    Thanks,
    Praveen ji

    Hi,
    According to your post, my understanding is that you wanted to start approval workflow when item deleted.
    You should first make some changes to trigger the workflow when you delete the item.
    You can use the Event Receiver to achieve it.
    In order to trigger workflow on item delete you need to create event receivers and from event receiver call the workflow already attached with list.
    http://ravendra.wordpress.com/sharepoint-workflow-on-list-item-delete/
    You can also create custom action to start the workflow, you can refer to the following article, then modify the workflow as your need.
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=50
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Two Related (?) file deleting problems in Finder and Time Machnine

    My internal drive is partition into two volumes. In the second one (the "non-boot" one), I was have trouble putting files in the trash that were locked. As I was tracking that down I coincidentally(?) started having another problem.
    I started getting a message that the files being put into the trash must be deleted immediately. I check permissions and I had read/write Privileges in the user account I'm normally logged into. However, If I logged into my administrator account, I could put things in the trash without deleting them. I noticed that ignore ownerships wasn't checked, so I checked that.
    That allowed my to put files into the trash without immediately deleting them. I went ahead and deleted the files I wanted to get rid of. However, I'm wondering if there was another issue because I am lead to understand that the ownership privileges shouldn't have necessitated checking "ignore ownerships"?
    Also, I had trouble deleting the backups of those files and folders in time machine. I can delete most of it. But for one folder (and all the folders in which it resides in the hierarchy) I can't deleted it. I tell it to delete backups of that folder (or folders it is in), I put in the password, and goes "ding". But nothing disappears...
    (After I wrote this, I tried unchecking "ignore ownerships" and the problem did not reappear. I can still put files in the trash without the immediate deletion problem.)
    Message was edited by: davidpsummers
    Message was edited by: davidpsummers

    Pondini wrote:
    davidpsummers wrote:
    Also, I had trouble deleting the backups of those files and folders in time machine. I can delete most of it. But for one folder (and all the folders in which it resides in the hierarchy) I can't deleted it. I tell it to delete backups of that folder (or folders it is in), I put in the password, and goes "ding". But nothing disappears...
    Are you doing that via the Finder or Terminal? If so, that's not the way to delete backups. See #12 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    And now I'm getting an error in time machine. "Files can't be copied onto the backup disk because it appears to be "read only"". I do get info on the disk, and my account has Read & Write privleges, but it say "You can only read" above that".
    The Finder or Terminal deletions may have corrupted your backups. Repair them, per #A5 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of the +Time Machine+ forum).
    Message was edited by: Pondini
    I'm doing the deletion through Time Machine (I go into Time Machine, find the folder in the backup, and ask Time machine to delete all backups of that folder).
    I did find the tip of unmounting the disk, rebooting, and remounting it. That Stopped messages about the disk being read only. However, the folder still doesn't delete. I'm also a bit worried about these being symptoms of some other problem...
    Message was edited by: davidpsummers

  • Disabling "Item Deleted" notifications in Collab

    Our users are loudly complaining about "Item Deleted" notifications coming through from Collab subscriptions.
    I know there are templates for the emails, but even if I deleted the template I'm sure it would still trigger something (like a blank email).
    Anyone know how I could go about changing things up to block those types of emails from all users? I'm assuming that is a PEI?

    could you put an "unsubscribe" link right in teh collab email template? I think it woudl be possible to link directly to the "my subscriptions" link in the users My Account page.

  • SDB - delete problem/solution

    Hi Experts.
    Is it possible to delete problem/solution from solution database? There is information in help that it is not possible to delete problem/solution, but that they can be archived.. But note 946030 says it is not available...
    Regards
    Piotr

    Hello Piotr,
    In version 4 it was released one note (730402) that allow us to delete some symptoms and solutions. However, this may lead into some inconsistencies if they're linked with documents. We've never tried to execute it.... but if this may help you, try it
    Kind regards,
    Bruno

  • Sales order line item delete error for MTO sales order

    Dear Experts
    iam facing below error for MTO sales order line item deletion
    "For reasons of cost management, item 000040 cannot
    be deleted"
    Please help
    Regards,
    KEdar

    It looks you try to delete the sales order line item and you get this error message.
    Try to put reason for rejection for the line item and save the order. This is equal to deleting the line item.
    You can also refer the OSS note 14097 - Order item cannot be deleted/overwritten for further information.
    Regards,

  • Item Deletion

    Hi All,
    We have EBS 11i (11.5.10.2) .
    We have to delete some of the existing items via Open Inteface from item master which are not used in BOM.
    Can anyone guide me to accomplish this task ?
    regards & Thanks in advance...
    Sanjay

    Hi Sanjay
    What Sabari has said is true about Item deletion. Having said that, it's not advisable to delete items against which the transactions has happened. The work around for the issue raised by you is to make the status of the Item as inactive, and it can be done through Item Open Interface if the amount of data is huge.
    Thanks & Regards
    Prakash Kumar

  • Item Deletion Flag

    Dear Mentors
    Where i can check item deletion fiag (mm06) whether item flag is active or not ?
    Regards
    Laxman

    Hi,
    You can check it in MM06 one-by-one.
    If you have several goods to be checked you have to use SE16 (to check tables) or SQVI (to create query using two or more tables).
    Since you can mark a material with DF at different organisational levels, you have to use the appropriate material master tables tables.
    E.g. if you marked your goods at client level the DF can be found in table MARA (MARA-LVORM). If you marked your goods at plant level, try table MARC (LVORM). You can use DF at SLoc level, WH level, etc...
    BR
    Csaba

  • Item delete - Any quick ways of removing the found constraints errors

    All
    On 12.1.3 and looking for advice for people who have done the Item Delete and have found a quick way to remove the rows in the tables that the constraints find?
    I have 195 items with an avg errors equaling 11 which comes out to 2,145 errors that need to be fixed.  Looking to see if anyone has come up with a quick way to remove the items, .....
    and the resulting errors
    thanks

    hello sir,
    i want to your help
    i was installed fresh windows 7 via cd rom and then after installed all software.
    and now after 1 day customer complained me that cd rom not read any cd and i m also check when i insurt cd so its not read and when i am double click on cd rom icon its eject so what i do for that please reply on my email address.
    [text removed for privacy]
    VIMAL

  • Master-Detail-Detail JSP/BC4J Sync Problem

    Hi everybody,
    im having a strange problem with my MDD schema in my custom BC4J/jsp page,
    I went through all other topics in the forum but couldnt find any analogue to my specific problem,
    Lets call schema as M->D1->D2
    What I need to do is to navigate my cursor on D1 using a rowkey, the problem is when i use <jbo:ROW ... action="find"> using the rowkey sent by DataEditComponent, it seeks the first row in my data source(in sync with Master) instead of seeking the actual row.
    FYI, the problem disappears when I omit the master ViewObject (normal master detail using D1->D2)
    Any comments appreciated (ofcourse ASAP ;))
    Here is the original code:
    <%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=utf-8" import = "oracle.jbo.html.*, oracle.jbo.JboException"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="SalesModule" definition="SalesWeb.SalesModule" releasemode="Stateful" />
    <jbo:DataSource id="dsContact" appid="SalesModule" viewobject="SContactView1" rangesize="10" itermode="LastPagePartial"/>
    <jbo:DataSource id="dsOrder" appid="SalesModule" viewobject="SOrderView2" rangesize="10" itermode="LastPagePartial" />
    <jbo:DataSource id="dsItemList" appid="SalesModule" viewobject="SOrderItemView3" rangesize="10" itermode="LastPagePartial"/>
    <%
    RequestParameters params = HtmlServices.getRequestParameters(pageContext);
    boolean doRedirect=false;
    String PageID=this.getClass().getName();
    String sessJboRowkey=(String)session.getAttribute(PageID+"_jboRowKey");
    String paramJboRowkey=(String)params.getParameter("jboRowKey");
    if(sessJboRowkey!=null && paramJboRowkey==null && (params.getParameter("jboEvent")==null || params.getParameter("jboEvent").toString().compareToIgnoreCase("create")!=0))
    paramJboRowkey=sessJboRowkey;
    else
    if(paramJboRowkey!=null)
    session.setAttribute(PageID+"_jboRowKey",paramJboRowkey);
    String masterRowKey=params.getParameter("masterRowKey");
    if(masterRowKey!=null)
    %>
    <jbo:Row id="currRow" datasource="dsContact" action="find" rowkey="<%=masterRowKey%>" ></jbo:Row>
    <%
    %>
    <jbo:OnEvent name="update" datasource="dsOrder" >
    <jbo:Row id="myrow" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="Update" />
    <jbo:Commit appid="SalesModule" />
    </jbo:OnEvent>
    <jbo:OnEvent name="create">
    <% if(paramJboRowkey!=null)
    %>
    <jbo:Row id="newrow" datasource="dsOrder" action="createinrange" ><%
    try
    { %>
    <jbo:SetAttribute dataitem="*" /><%
    } catch (JboException ex)
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    <jbo:Commit appid="SalesModule" />
    <%
    } //end if %>
    </jbo:OnEvent>
    <jbo:OnEvent name="delete">
    <jbo:Row id="delrow" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="Delete" />
    <jbo:Commit appid="SalesModule" />
    <%
    doRedirect=true;
    %>
    </jbo:OnEvent>
    <%
    if(doRedirect)
    %>
    <jbo:ReleasePageResources />
    <%
    response.sendRedirect((String)params.getParameter("originURL"));
    %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <TITLE>Edit Order</TITLE>
    </head>
    <body>
    <% if(paramJboRowkey==null)
    %>
    <h3>Edit Order</h3>
    <jbo:DataEdit datasource="dsOrder" enctype="application/x-www-form-urlencoded" targetURL="SOrderView2_Edit.jsp"/>
    Cancel
    <%
    else
    %>
    <h3>Order Details</h3>
    <jbo:Row id="rowCur" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="active">
    <table class="clsViewCurrentRecord" cellspacing="2" cellpadding="3" border="0">
    <jbo:AttributeIterate id="def" datasource="dsOrder">
    <tr class="clsTableRow">
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"> <jbo:ShowHint hintname="LABEL">##Column</jbo:ShowHint> </td>
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"> <jbo:RenderValue datasource="dsOrder">##Cell</jbo:RenderValue> </td>
    </tr>
    </jbo:AttributeIterate>
    </table>
    </jbo:Row>
    <%
    %>
    <br>
    <% if(paramJboRowkey!=null)
    %>
    <center>
    <h3>Order Items</h3>
    <table border="0">
    <tr>
    <td ALIGN="right"><jbo:DataScroller datasource="dsItemList" /></td>
    </tr>
    <tr>
    <td><jbo:DataTable datasource="dsItemList" edittarget="SOrderItemView3_Edit.jsp" /></td>
    </tr>
    </table>
    </center>
    <%
    %>
    <jbo:ReleasePageResources />
    </body>
    </html>

    Hi,
    you can use the column- or alias-name of the first query like:
    <dataQuery>
    <sqlStatement name="Q_MASTER">
    <![CDATA[
    select field1,field2 from master_table
    where field3 = 'ABC'
    ]]>
    </sqlStatement>
    <sqlStatement name="Q_DETAIL">
    <![CDATA[
    select field4,field5 from detail_table
    where field6 = :field2 (where field2 is a column of Q_Master)
    ]]>
    </sqlStatement>
    Pay attention that the column-names (aliases) are distinct
    regards
    Rainer

  • Deleted Items deletes email weekly

    I am using the Exchange setup on the iPhone for my work email (Exchange Server). Everything works great for email except that messages in the Deleted Items folder get trashed after one week. And, yes, we do have IMAP enabled on the server.
    The iPhone is set to 'Never' for removing/deleting items in this folder.
    I do not want any messages in the Deleted Items folder to be deleted unless I do it manually.
    Any idea? Thanks, in advance.

    Moreover, the iPhone gives the option of how to handle the various folders and its set correctly. Only on the iPhone is the email in the Trash (i.e., shown on the iPhone as Trash but on .Mac in Deleted Items).
    If you have the Deleted Items server stored mailbox for the account selected as the mailbox for messages marked for deletion to be placed when Entourage, this server stored mailbox should be available to be designated as the account's server stored Trash mailbox for the account preferences with the iPhone's email client.
    Do you have the Deleted Items server stored mailbox designated as the account's server stored mailbox with the iPhone's email client? Seems like you would want the same server stored mailbox designated with both email clients - with Entourage and with the iPhone's email client.
    No folder should delete items.
    True.
    This doesn't mean anything by itself but I don't use Entourage and I've never had a problem with messages being purged from my .Mac account's server stored mailbox other than my designated setting which is the same with the Mail.app on my Mac. I also use the same server stored Trash mailbox with both - because I have only one.

Maybe you are looking for