New Entry (OpenInsight 32-bit)
At 28 FEB 2012 10:58:54PM Kimberley Lao wrote:
What property can I place to the read event in the OI Form Designer that I can detect that the user is creating a new record during runtime?
At 02 MAR 2012 12:03AM Bob Carten wrote:
OI will notify you of a new row in the SYSMSG event.
You can put something like this is the SYSMSG event of the window
$insert ps_Equates $insert Msg_Equates if msgCode eq SYSMSG_NEWROWINFO$ then msg(@window, 'New Row!') end RETURN 1Or, you can cheat and put something like this in the read event of the window
* let the read happen call Forward_Event() * after the read, look for <new entry> in the title work = get_Property(@window, 'TEXT') work = work[-1,'B-'] if ( work _eqc ' <New Entry>' ) then call msg(@window, 'This is a new record') endHTH
- Bob
At 02 MAR 2012 03:53PM Barry Stevens wrote:
The sysmsg is a new one to me, I usually check @record=null$ at post-read.