You are here: Development Standards > OSAS Standards > Data Files > xxWIND - Inquiry Window Definitions

# xxWIND - Inquiry Window Definitions

The xxWIND file, and its associated xxTRSHDR and xxTRSDTL files, contains the inquiry window definitions for an application. It resides in the system files (sysfil) directory. Create it as defined in the Resource Manager File Descriptions manual at the BASIC prompt, or with the _define utility program. The xxTRSHDR and xxTRSDTL are created when using the Inquiry Windows Definitions function in Resource Manager. Inquiry windows are also maintained thru this function.

Window Record Key Definition Options

Base window IDs must always be 8 characters long. Alternate window IDs must be nine characters long. You can use one of two possible key structures:

- If you invoke the window from an add/change program, make the key unique. It enables users to modify the window records and have the modifications show up for the one occurrence of the window only. For example, the Customer Maintenance Customer ID field should be named ARACC W1. It is the first window offered in the ARACC program.
- If you invoke the window from a pick screen, you can use a standardized window key. Define this key by the main data it displays. For example, ARCUSTID is a good key for a window that displays a generic AR customer ID list at any pick screen CUST ID field. This key structure lets you use a single window record in many programs, and minimizes the size of the xxWIND file.

File Name Options

When specifying a file name or channel number, these rules apply:

- If you specify a FILE[ALL] number for the inquiry window, the file currently open on that channel is used for the inquiry window, even if the file names do not match.
- If you do not specify a FILE[ALL] element, GENWIND.PUB finds an unused channel and opens the specified file for the inquiry window on that channel.
- If you follow the file name with an x, it looks for the company-specific file.
- If you follow the file name with .XXX, it adds the current terminal ID to the end of the file name and looks for that file (used to inquire on scratch files).
- If you follow the file name with .SYS, it adds STBL(“SYSOPEN”) to the end of the file name (used to inquire on OSAPPL.xxx).