---
title: "Define Interface Setup"
id: "define-interface-setup"
project: "MWP Knowledge Base"
url: "https://help.cloud5.com.au/articles/mwp-knowledge-base/define-interface-setup"
keywords:
  - "Clocks"
  - "Employees"
  - "Import"
  - "Users"
updated: 2026-12-02T01:10:26Z
---

# Define Interface Setup

2 Export Interfaces
 
2.1 Screen Options The following is a screen shot of the options available when the ‘Export’ Interface Type is selected.
 
2.1.1 Filename If a standard file name is to be used whenever this Interface is run, do not select either of the ‘Derived Subfolder’ or ‘Derived File Name’ options.
 
If the folder where the file is to be created varies with each run or based on who runs the interface, the ‘Derived Subfolder’ option can be selected. There is also the option of choosing the ‘Derived File Name’ option. This gives options in a drop-down list that can be used for the folder name or file name. The options available are:
 
* Login User
* Run Date & Time

If the ‘Login User’ option is used from the ‘Derived Subfolder’ options as part of the filename, the filename will appear as follows:
 
Example: If the MWP users name is ‘jcitizen’, when they run the Export interface, the process will create a folder ‘c:\jcitizen\’, and create the output file (employees.csv) within this folder.
 
Before you select one of the drop-down list options, you should move the cursor to the position in the ‘Filename’ field as to where you want the ‘[USER]’ or ‘[DATE TIME]’ values to be defined.
 
With the above selection of both [USER] and [DATE TIME] in the filename, the file that is created will be as follows:
 
2.1.2 Filetype The filetype offers an option as to whether to output the fields in specific positions or have them separated by a specific character.
 
If the ‘Fixed Position’ option is chosen, then the ‘Start’ position must be entered for each field. The ‘End’ position or ‘Length’ can also be entered if required.
 
If the ‘Use Separator’ option is chosen, the ‘Separator’ field must contain a character which is to be used as the separator between fields. Also the fields can be contained within double-quotes if the ‘Use Quotes’ option is selected. (The ‘Start’ position for each field is not required if ‘Use Separator’ is chosen.)
 
2.1.3 Header Data A Header line is optional. The ‘Value’ field is to contain the Header value for each column. If the ‘Fixed Position’ option is chosen, then the Start Position must be entered for each Header field.
 
2.1.4 Body Data The Body Data section outlines the data that will be output. To select a database Table and Field that is to be output, in the Tree field on the left-hand side that specifies all the MWP Frame names, locate the frame/table that you with to export data from. Double-clicking on the item in the tree-structure will then list all the fields that are available for export.
 
Then select a field that is required and click on the ‘&gt;’ button, that indicates ‘Add new field to Body’. A line is then added to the ‘Body’ section.
 
Then continue on and select all the fields that are required in the ‘Body’ section of the output file, and the ‘Body’ section will look similar to the following screenshot.
 
If it is required that a ‘hard-coded’ specific value is output on each line, the ‘Process Flag’ should be selected, and then the required data value entered into the ‘Value’ column. In the example below, the value ‘EMP DATA’ will be output at the start of each line of employee data.
 
The default is for fields to be left-justified in their designated position. If it is required that they are right-justified and require spaces or zeroes to fill the left or right gap, the selections can be made as below. When these options are selected, the length of the output field must be entered to indicate how far left or right the data value exists with the zeroes or spaces filling the gaps to the right or left.
 
If data is to be sorted in a particular order the ‘Sort’ column caters for that. Enter 1, 2, 3, etc, on the columns that are to be used for sorting the output data. In the example below, the SORT sequence is ‘Surname, Given Names’.
 
If the output of a numeric value requires specific formatting, the ‘Format’ column can be used. The example below shows that the Standard Hours value is to be output with 2 decimal places.
 
2.1.5 Footer The setup and use of the Footer section is optional and is the same as the ‘Header’ section, but the Footer data is the last record in the output file.
 
2.1.6 Selection Data The Selection Data section is used to restrict the records that can be selected for processing. In the example below, the selection is to be restricted to employees who are in the ‘ADMN’ Location.
 
2.1.7 Scheduling The Scheduling section is used if regular runs for an Interface are required.
 
2.1.8 Recipients This section caters for e-mail recipients to be sent the generated file when the Interface is run. This is for either manual or scheduled runs of the Interface.
 
3 Import Interfaces
 
3.1 Screen Options The following is a screen shot of the options available when the ‘Import’ Interface Type is selected.
 
3.1.1 General The Import Interfaces can be selected to run when a Clocking Import is run. If this is required then select the ‘Run Automatically as part of Clocking Import’ field.
 
3.1.2 Filename There are 2 options for the filename setup when importing data.
 
In the example below, a standard hard-coded file name is used, and this is the only file that will be processed,
 
The other option is to turn on the ‘Use partial filename match’ option, and specify part of the filename that will cover multiple files to imported from the folder. When using the partial filename option, the only files that will be selected with be files ending with ‘.txt’. In the example below, all files that match ‘c:\mwp\clockings\transactions\*.txt’ will be processed.
 
3.1.3 Filetype The filetype offers an option as to whether to process the input file with the fields in specific positions or specify that they are separated by a specific character.
 
If the ‘Fixed Position’ option is chosen, then the ‘Start’ and ‘End’ position must be entered for each field as follows:
 
If the ‘Use Separator’ option is chosen, the ‘Separator’ field must contain a character which is to be used as the separator between fields. Also the fields can be contained within double-quotes if the ‘Use Quotes’ option is selected.
 
3.1.4 Processing Values The processing value fields are optional, and can be used to specify a Processing character value in the import file that indicates whether the record is to be processed for the ‘Insert’ of a new record, the ‘Delete’ of an existing record or the ‘Update’ of an existing record. The values assigned to these fields do not have to be ‘I’, ‘D’ and ‘U’. They just need to match the character supplied in the file.
 
An example of the use of these characters is as below, where the 1st field is set as a ‘Process Flag’ field, which is to be the ‘Processing Value’ character. The example here is for records being processed for the Location Maintenance table (ta\_location).
 
And here is an example of the file being processed with the ‘Process Flag’ character in Position 1.
 
3.1.5 Header Data A Header line can exist in a file being imported. The setup in the Interface Definition can be setup with just one field indicating that a Header record does exist.
 
3.1.6 Body Data The Body Data section outlines the data that will be processed as input from the specified file.
 
The selection of Fields to be handled as data input is the same as defined in Item 2.1.4 .
 
At the completion of this process, the ‘Body’ section of an Import interface could look like this where fixed positions are to be used:
 
If a separator is being used in the Import file, the Body of the Interface definition could look like this:
 
3.1.7 Scheduling The Scheduling section is used if regular runs for an Interface are required.