Home » Developer & Programmer » Forms » Data Block Property
Data Block Property [message #191299] Tue, 05 September 2006 10:26 Go to next message
sweetgeegee27
Messages: 107
Registered: June 2005
Senior Member
What property do you set for a data block to allow only one record to be inserted?
Re: Data Block Property [message #191327 is a reply to message #191299] Tue, 05 September 2006 14:41 Go to previous message
RJ.Zijlstra
Messages: 104
Registered: December 2005
Location: Netherlands - IJmuiden
Senior Member
Hi SweetGG,

Nice question!

Probably the simplest way is to create a block level 'POST-INSERT' trigger.

Put the following code in:

set_block_property( 'YOUR_BLOCK_NAME', INSERT_ALLOWED, PROPERTY_FALSE);

So after the first insert, the block will not accept anything more.

HTH,

Regards,
Rob Zijlstra
Previous Topic: how can i add images
Next Topic: List Item make query
Goto Forum:
  


Current Time: Sat Dec 03 05:56:30 CST 2016

Total time taken to generate the page: 0.10701 seconds