Login
`
Templates, Tools and Utilities
|
||
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
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.
Today is November 21, 2024, 3:33 am This article has been viewed 35203 times.
|
|