• 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
Re: modifying the save method for WO Display Group
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modifying the save method for WO Display Group


  • Subject: Re: modifying the save method for WO Display Group
  • From: Paul Lynch <email@hidden>
  • Date: Mon, 9 Oct 2006 23:25:35 +0100

On 9 Oct 2006, at 22:36, email@hidden wrote:

I would like to know how to add a little math to the save method of a Display Group.
...
The value they are modifying is called "transactionptDisplayGroup.selectedObject.passThroughAmt". I would like to know how to take the user's entered value and add 15 to it prior to the save. Then I would like to take the value of "transactionptDisplayGroup.selectedObject.passThroughAmt" before their edit and subtract from it the value the user entered with the added 15 and set the value of another field of the displayed group, "transactionptDisplayGroup.selectedObject.salonPtRec". Finally, I would like to save the results to the DB.

Take a look at the validateForSave/validateForUpdate methods in EOValidation.


Paul


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >modifying the save method for WO Display Group (From: email@hidden)

  • Prev by Date: Re: Sending a request to a url but not returning the page to the user
  • Next by Date: Re: TextDisplayFormatter.java - any updates? where can gnu.regexp be found?
  • Previous by thread: modifying the save method for WO Display Group
  • Next by thread: Re: modifying the save method for WO Display Group
  • Index(es):
    • Date
    • Thread