1 Reply Latest reply on Feb 4, 2013 2:57 PM by philmodjunk

    New Record "Mode"



      New Record "Mode"


           Can anyone tell me if there is a function that can tell if someone is entering a new record?

           There is a test for "windowMode" but that only covers Browse, Find and such.



        • 1. Re: New Record "Mode"

               There is no such thing as a "new record mode".

               Can you explain what you are trying to accomplish by detecting such? There are a number of ways you might accomplish that result.

               One option is to set up an auto-entered serial number field and specify the "on commit" option instead of the default "on creation" option. Then, if this field is empty and you are in browse mode, this is a new record that has not yet been committed.

               But it's very easy to commit a record before all data has been entered. It may work more smoothly to set up a special layout of global fields for entering data for a new record. Clicking a button on such a layout 'saves' the data by creating a new record and using set field steps to move the data from the global fields into the corresponding fields in the new record.