Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SixFile Functions (continued)

GetFileLockMetaData Function

Overview

The GetFileLockMetaData function retrieves available file lock meta information from an Application File Control (AFC) cookie. This function only works with files managed by Novaworks applications.

Syntax/Parameters

Syntax

string [] = GetFileLockMetaData ( string filename );

Parameters

file

A string containing a qualified file name and path. This parameter supports UTF encoding for filenames with Unicode characters.

Return Value

Returns a string array containing the meta information or an empty array on failure. Use the GetLastError function to retrieve error information.

Remarks

The GetFileLockMetaData function attempts to locate an AFC cookie corresponding to the file specified by the filename parameter.

Note that this function does not check file access status, it is possible to have orphan AFC cookies left behind as the result of an abnormal application edit. Use the GetFileOpenStatus function to verify the file is locked.

The key names are as follows:

  Key Name   Description  
  app_name   Name of application that has the file open. The name doe snot have the version.  
  filename   Fully qualified file name.  
  last_modified   Local date and time last modified as: dd/mm/yy hh:mm:ss.  
  opened_at   Local date and time file was opened as: dd/mm/yy hh:mm:ss.  
  user_short_name   Short name (user login ID).  
  user_full_name   Full name (if setup in the local systems user profile).  
  domain   Domain the computer belongs to with the file open.  
  workstation   The workstation name.  
  notes   Any notes, most views do not fill this field out.  
  editing_view   Primary view name, most views do not fill this field out.  

 

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic