Auto-populate a field in IUA?

Kenneth Brody kenbrody at bestweb.net
Tue Aug 3 09:37:39 PDT 2004


Jeremy Anderson wrote:
> 
> When users are adding records through IUA, is it possible to auto-fill
> one of the fields from a global variable?
> What I want to do is this:
> on the first record, users will enter a date.  On every record
> thereafter, the date field will be filled with what they entered on the
> first record.  They will, however, be able to enter a new value, which
> would then be echoed in all subsequent records.

You can use @UPDATE to populate the field(s) from global variables, and
set those variables upon saving the record.

For example:

               declare save_date(10,mdyy/,g)
   @update:
          If:  date_field = ""
        Then:  date_field = save_date

               .... update the record ...

               save_date = date_field
               end

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody at spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+




More information about the Filepro-list mailing list