Working with Outbox / List Files Process
Process Purpose
This is a Filebox Service related process.
The "Outbox File List" process is used to get the list of files present in the device’s Outbox (which is a specific area included in the device's Filebox).
The process's properties window is displayed automatically after having added the "Outbox File List" process.
If any subsequent edition is required, double-click the process to open its properties window and enter the necessary modifications.
In this case, the properties window includes two tabs - "General" and "Advanced".
"General" tab
Fill in the following options:
File List |
|
Filter |
Define the filter to apply to the file(s) list OR click to select the variable with the intended value. |
Sort On |
Define the order of the file list to be received. Select an option from the drop-down ("File Name", "File Date" or "File Size") and check either the ascending or descending option. |
Store Result into Variables |
|
Number of files |
Click to define the variable that will receive the "Number of files" information. |
Total size (Bytes) |
Click to define the variable that will receive the "Total size (Bytes)" information. |
1st File Name |
Click to define the variable that will receive the "First File Name" information. |
If File List is empty |
|
Go to |
Select a target location from the drop-down or list, in case a "file list is empty" error occurs. See Detail of a window below.
When defining a screen as a target destination (ex: via a “Go to” process), you CANNOT use variables to specify the name of that target screen. You must select the intended screen from the available drop-down/list. |
Detail of a window:
"S:Menu" is a screen included in the same program as the process.
"R:Routine_1" is a routine included in the same program as the process.
Proceed to the "Advanced" tab.
"Advanced" tab
If required, fill in the following options:
Store Result into Data File (Optional) |
|
File Name |
Select an existing data file to store extra information from the received file list. If required, click to edit the selected data file. See Editing a Data File. |
Value Column |
Field Name Column |
Name |
Select the data file field that receives the file name information from the drop-down. |
Extension |
Select the data file field that receives the file extension information from the drop-down. |
Size (Bytes) |
Select the data file field that receives the file size information from the drop-down. |
Date (YYYY/MM/DD HH:MM:SS) |
Select the data file field that receives the file date information from the drop-down. |
Attributes |
Select the data file field that receives the file attributes information from the drop-down. |
If required, use the icons on the upper right corner of the process properties window:
Click this icon to create a new data file. It opens an "Add New Data File" window. Go to Creating a Data File to see how to fill in the several options available.
Click this icon to attach any relevant notes to this process. The added information is displayed in the "Notes" field of the "Actions" tab in which the process is inserted in.
After filling in the required options, click to conclude or to abort the operation.
The added process is displayed in the corresponding "Actions" tab or "Process" window.
When creating a file, we recommend you use the related best practices (ex: do NOT use special characters).
For more detailed information, register/log in to our MCL Community and access MCL's Knowledge Base ("File Name Best Practices").
If you want to use a label as a target destination, you can use the "Auto-Label" mechanism. This alternative to the "Set Label" process allows you to create a label in the properties window of a process - specifically, in the fields used to define target destinations (ex: the "If Error..." type fields). See To Automatically Create a Label.
Use the right-click in MCL-Designer's input boxes to access some related options as well as the general "Cut", "Copy"; "Paste"; "Search" actions (active/inactive according to the current context).
Ex: If you right-click the "Variable" input box (included in a "Conversion's" properties window), you are provided with general editing/search actions and other more specific options such as "Variable Select" (see "Variable Select"); "Variable Insert" (see "Variable Insert"); "Insert Special Character" (see To Insert Special Characters into a Control's Text Input Field) and "Localization Select" (see Localization List).
If you right-click another input box, it may provide other possibilities.