` Printed Icetips Article

Icetips Article



Par2: Testing for batch or standard insert mode
2001-03-13 -- Jim Katz
 
> UpdateForm X allows for recursive inserts.  Now, in which embed to put some
> control initialising code, to execute at beginning of UpdateRecord AND
> BatchInsert mode.  I specifically want to set the state of an entry control
> every time the form is called for BatchInsert or normal Update, based on the
> existing (or default value) of an checkbox field:
> ?PRE:Entrycontrol{prop:disable}=CHOOSE(PRE:Checkbox=1,false,true)
> PRE:Checkbox is a table field and defaults to 0 (false)

In the Form's Windomanager' Init method test for Self.InsertAction. It
will return Insert:Batch for recursive inserts, Insert:Caller for normal
inserts.



Printed November 21, 2024, 6:29 am
This article has been viewed/printed 35203 times.