| Contents: | Main | Chapter | See Also: | Getting Started Manual | Advanced User Manual | |||
This procedure retrieves the values of the file-level attributes for the specified file. It does not return subfile attributes.
FILE^DID(FILE,FLAGS,ATTRIBUTES,TARGET_ROOT,MSG_ROOT)
| FILE |
(Required) File number (but not subfile attributes). |
|
| FLAGS |
(Optional) Flags to control processing. The possible values are: |
|
| N | No entry in the target array is created if the attribute is null. | |
| Z | Word processing attributes include Zero (0) nodes with text. | |
| ATTRIBUTES |
(Required) A list of attribute names separated by semicolons. Full attribute names must be used:
Alternatively, an "*" can be used in this Parameter to request ALL attributes. |
|
| TARGET_ROOT |
(Required) The name of a closed array reference. |
|
| MSG_ROOT |
(Optional) The name of a closed root array reference that is used to pass error messages. If not passed, messages are returned in ^TMP("DIERR",$J). |
|
| TARGET_ROOT |
The array is subscripted by the attribute names. Some attributes can have multiple sub-attributes and these are further subscripted with a sequence number and the sub-attribute name. Attributes that contain word processing text also have a sequence number for each line of text. |
>D FILE^DID(999000,"","NAME;GLOBAL NAME;REQUIRED IDENTIFIERS","TEST")
>ZW TEST
TEST("GLOBAL NAME")=^DIZ(999000,
TEST("NAME")=ZZZDLTEST
TEST("REQUIRED IDENTIFIERS")=TEST("REQUIRED IDENTIFIERS")
TEST("REQUIRED IDENTIFIERS",1,"FIELD")=.01
TEST("REQUIRED IDENTIFIERS",2,"FIELD")=1
| 200 | There is an error in one of the variables passed. |
| 202 | Missing or invalid input parameter. |
| 301 | Flags passed are unknown or incorrect. |
| 401 | The specified file or subfile does not exist. |
| 403 | The file lacks a Header Node. |
| 404 | The file Header Node lacks a file #. |
| 501 | The field name or number does not exist. |
| 505 | The field name passed is ambiguous. |
| 510 | The data type for the specified field cannot be determined. |
| 520 | An incorrect kind of field is being processed. |
| 537 | Field has a corrupted pointer definition. |
Reviewed/Updated: February 2017