Home » Developer & Programmer » Forms » how to add previous value in current record if their ID is same
how to add previous value in current record if their ID is same [message #633320] Mon, 16 February 2015 00:13 Go to next message
saraa
Messages: 14
Registered: February 2015
Junior Member
i have a tabular form i select item_id through lov and also have quantity field i save 1 in it. now i want if i again select the same id then it vl make it 2 in quantity field. mean it vl add previous quantity if the item_id is same
Re: how to add previous value in current record if their ID is same [message #633323 is a reply to message #633320] Mon, 16 February 2015 00:20 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
POST changes to the database. When selecting ID value, check whether the same ID already exists and add 1 to previously stored quantity value.
Re: how to add previous value in current record if their ID is same [message #633325 is a reply to message #633323] Mon, 16 February 2015 00:30 Go to previous messageGo to next message
saraa
Messages: 14
Registered: February 2015
Junior Member
i want to do it at form level .behind validate item trigger of quantity field what will be the code. plz??
Re: how to add previous value in current record if their ID is same [message #633343 is a reply to message #633325] Mon, 16 February 2015 07:35 Go to previous message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
That's what I meant - post changes you made in your form to the database. POST command works well in Forms.

As of code you need to write, I'm afraid you'll have to do that part yourself. If you can't make it work, please, come back here and post what you did. Someone will assist.

Previous Topic: Data saving
Next Topic: Implementing a Cancel Button
Goto Forum:
  


Current Time: Thu Apr 25 06:03:29 CDT 2024