{{tag>category:"OpenInsight 32-bit" author:"Kimberley Lao" author:"Bob Carten" author:"Barry Stevens"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== 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 1 Or, 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 in the title work = get_Property(@window, 'TEXT') work = work[-1,'B-'] if ( work _eqc ' ' ) then call msg(@window, 'This is a new record') end HTH - 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. [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=8BD4B9A300045F41CCD2FB700|View this thread on the Works forum...]]