You can customize CSEntry's behavior by creating a PFF file
. You can then use the PFF file as a command line parameter for CSEntry.exe. For example, if you name your PFF file MySurvey.pff, then you run the data entry application by invoking:
"C:\Program Files (x86)\CSPro 7.2\CSEntry.exe" MySurvey.pff
This assumes that CSPro was installed in the default directory. Your PFF file must have a .pff extension.
You can create a PFF file in one of two ways: either  create one with a text editor (such as Notepad or Wordpad), or  have it generated automatically for you by launching your data entry application from within the CSPro Designer. The file will have the same name as your application, but with a .pff extension instead of .ent. For example, if your data entry application was named MySurvey.ent, the generated PFF would be named MySurvey.pff.
The following section shows the options available to you in a CSEntry PFF file. A PFF file is not case sensitive, so you can use any combination of upper and lower case text.
The [Run Information] block is required. The Version and AppType and must appear exactly as shown in the example above. The Description is optional. If included, it will be used instead of the name of the file in the list of applications (mobile only) and in the window title during data entry (all platforms).
The [DataEntryInit] block is optional. It gives you the opportunity to customize the following runtime characteristics:
- OperatorID=specifies the operator ID for the purposes of logging operator statistics. If this line is not present but your data entry application has been set to ask for this, CSEntry will prompt the operator for one at runtime.
- StartMode=determines the mode in which CSEntry starts. The possible options are: Add, Modify, and Verify. If this line is not present, one of two things will occur: if the data file does not exist, then the program will start in Add mode; if the data file does exist, then CSEntry will wait for the operator to choose their desired mode. The operator's choices may be constrained due to options indicated in the Lock feature.
You can also specify the case upon which to act by adding a semicolon and the case IDs of an existing case (for example: StartMode=Modify;010502). This will open CSEntry in Modify mode and open the case indicated by the ID. If the StartMode conflicts with the Lock parameter settings, then the StartMode parameter will take precedence.
- AutoAdd=indicates whether, while in Add mode, CSEntry should continuously add cases, meaning that after a case is added, CSEntry will begin adding another case. The possible options are: Yes (default) and No.
- FullScreen=determines whether CSEntry will open the application in full screen mode, with no case tree on the left. The possible options are: Yes, No (default), and NoMenus. The parameter NoMenus will open CSEntry in a tablet-friendly mode whereby the case tree and the CSEntry menus and title bar are not shown.
- NoFileOpen=determines whether CSEntry will permit the operator to open another data file while running a data entry application. The possible options are: Yes (default) and No.
- Lock=indicates what CSEntry modes the operator cannot access. The possible options are:
Multiple modes can be specified by listing each mode, separated by a comma.
- Add: The operator cannot add new cases.
- Modify: The operator cannot modify existing cases.
- Verify: The operator cannot verify existing cases.
- Stats: The operator cannot view operator statistics.
- Delete: The operator cannot delete cases.
- CaseListing: On mobile CSEntry, the Case Listing screen will be bypassed.
- Interactive=specifies the default way that CSEntry runs in Interactive Edit mode. The possible options are:
If the mode is followed by a comma and Lock, then the mode cannot be changed by the operator. Otherwise, unless the option is Off, the operator can change the mode from within CSEntry.
- Ask: The default option, CSEntry will ask the operator how to run Interactive Edit.
- Both: CSEntry will display both out-of-range messages and errors generated from the errmsg function.
- ErrMsg: CSEntry will only display errors generated from the errmsg function.
- Range: CSEntry will only display out-of-range message.
- Off: Interative Edit mode will be disabled.
- CaseListingFilter=filters the cases in the data file shown to the operator. The filter string can use regular expressions. If you have multiple operators entering data to the same data file, this can be a way to prevent operators from interacting with data entered by other operators. The filter is matched against the IDs of each case.
- ShowInApplicationListing=determines whether the application associated with this PFF is displayed on the mobile Entry Applications screen. The possible options are: Always (default), Never, and Hidden. You can show hidden applications by modifying CSEntry's settings, whereas PFFs with the Never option will never be shown.
The [Files] block is required. A description of the files, not all of which have to be specified, is as follows:
- Application=the name of the data entry application that you created.
- InputData=the data file that an operator will be creating, modifying, or verifying with this data entry application.
- Paradata=the name of a file where events logged during the application's run are saved.
- CommonStore=if you use the loadsetting or savesetting functions in your program, this file overrides the default location where these settings are saved.
If the [ExternalFiles]
block is present, it means that a second (or more) dictionary was linked to the data entry application. In the example above, LOOKUP_DICT is the dictionary name, and LookupFile.dat is the name of the data file that contains the lookup codes
The [Parameters] block is optional. This section defines parameters for the data entry run.
- Parameter=allows you to pass in a string to your program. The parameter can be any length, although the string that retrieves the value in your program (via the sysparm function) must be large enough to accommodate it. Once the parameter is retrieved, it can be parsed by your program for further usage.
- Language=specifies the initial language of the program. The parameter must match the name of a language specified in the question text, dictionary, or message file.
- OnExit=specifies a PFF file to run after the data entry program closes. This can be useful, for example, if you want to relaunch a menu program after collecting data.
block is for use with any persistent IDs
that you have defined. CSEntry will assign the specified values to the indicated persistent fields when a new data file is created. This feature allows automatic definition of persistent fields, such as geographic IDs. If you provide values and run this on an existing data file, and the PFF file values do not match the values in the data file, then the PFF values will be ignored. The syntax is as follows: