Home » Developer & Programmer » Forms » Updating value
Updating value [message #171051] Mon, 08 May 2006 02:08 Go to next message
seemafarheen
Messages: 8
Registered: January 2006
Junior Member
I want to increment a value in control block , ie initial value I am taking from database . For doing this I have used WHEN_NEW_BLOCK_INSTANCE trigger . But this trigger executes only once and gives the initial value . Now to increment that in control block
Re: Updating value [message #171069 is a reply to message #171051] Mon, 08 May 2006 04:17 Go to previous messageGo to next message
hidayatk
Messages: 25
Registered: November 2005
Junior Member
to incremet use 'select colum+increment_value into item from table'..but..
if block is multi-record, then use pre-text_item/when_new_item_instance on the item and if u want fresh value from database, then before select, a commit_form is advised.
Re: Updating value [message #171170 is a reply to message #171069] Mon, 08 May 2006 18:25 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
If you only want it to happen ONCE, then use the When-Create-Record trigger at the block level.

David
Previous Topic: Query Problem
Next Topic: Running Sum in Form
Goto Forum:
  


Current Time: Fri Sep 20 09:54:08 CDT 2024