RAD function: iscurrent

A RAD function that determines if the record that you are working with is identical to the version in the database. A value of true or false is returned.

Function

iscurrent

Format

$Boolean=iscurrent($file.variable)

Factors

This function only determines if another user has changed the current record since you open it.

Examples

Example 1:

  1. User1 logs in and opens record IM10005.
  2. User1 modifies IM10005, but does not save it.
  3. User1 calls iscurrent($L.file) with $L.file pointing to IM10005.

    A value of true is returned. This is because the record user1 gets in step 1 is identical to the version in the database.

Example 2:

  1. User2 logs in and opens record IM10005.
  2. User2 logins and opens record IM10005. (User2 gets the same version of record IM10005 as user1.)
  3. User1 modifies IM10005 and saves it. (IM10005 in the database is changed.)
  4. User2 calls iscurrent($L.file) with $L.file pointing to IM10005.

    A value of false is returned. This is because the record user2 gets in step 2 is not identical to the version in the database.