• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Shopping Cart
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shopping Cart


  • Subject: Shopping Cart
  • From: David Griffith <email@hidden>
  • Date: Fri, 27 Feb 2004 15:57:12 +0100

Hi all,

I have a shopping cart table and a cart items table.
The EditShoppingCart component uses a display group to show all the cart
items.
Each cart item has a quantity value that I need to update using a form entry
field.
This means there could be many entry fields with quantities displayed in
them, and these can be edited by the user.
When the user clicks update9 I want it to update other values in each row
of the displayGroup and save them all back to the database.

Can someone tell me the procedure I should use?

If the Item9 binding of my WORepetition for example is a CartItem, and each
element in the WORepetition displays by having a binding like
cartItem.prodName9, then should I bind the cartItem.quantity to the Form
element for editing the quantity?  I think this won9t work but am not sure.

Then, when the update button is clicked, should I step through the display
group myself, make the changes, and then do an ec.saveChanges?

If so, how do I step through the display group, and how would I identify the
value of cartItem.quantity in the java code?

I9m sure this is pretty straight forward but I could do with some pointers
:-)

Regards,
Dave.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re[2]: Is WebObjects Dead?
  • Next by Date: Xcode Isuue
  • Previous by thread: Permanently adding a localization language to Xcode?
  • Next by thread: Xcode Isuue
  • Index(es):
    • Date
    • Thread