Using an AR Export file to change the request ID field format
You can edit AR Export (.arx ) files regardless of the database underlying your . You can use the .arx strategy or a different strategy that bypasses to operate directly in the database.
To change the Request ID field format through an AR Export file
- In the browser, open the form that you want to change.
- Create a report. See Creating-and-managing-reports-from-the-AR-System-Report-Console.
Perform the following to export the results of the report to the .arx file format:
- Select the report from the list.
- In the Destination field, select File.
- In the Format field, select .arx output format for the report.
- Run the report.
For more information, see Exporting-a-custom-AR-System-report.
To export a complete record to an ARX file on the Report Console > Reportcreator form, select each field manually.
- Edit the file to change the format of the Request ID field.
See the section below. - In the browser, delete all requests in the form.
- In Data Import, select File > New Mapping.
- In the Source Data File field, enter the .arx file you edited.
- In the Source Form Name field, enter the form from which you created the .arx file.
- In the Target Server and Target Form Name fields, enter the server and form to which to import the data.
This is the same server name and form name you used to create the .arx file. (You are simply changing the Request ID field on the same form.) - Click Auto Map to map the fields.
- Click the Options tab.
- Under the Data Handling panel, select the following options:
- Make Non-Core Required Fields Optional
- Disable Pattern Matching
- Under the Duplicates panel, select Reject Duplicate Records from the Handle Duplicate Request IDs By list.
- Select Import > Start Import.
Editing the .arx file
After the first few header lines, the remaining lines in the .arx file have the following format:
where <otherData> is data from the form.
The Request ID field always follows the keyword DATA. In this example, the Request ID field has no prefix and is 15 characters in length. Use a text editor, such as WordPad, to convert the format of the Request ID field.
The following procedures show how you can shorten a Request ID field with a length of 15 characters to 10 characters and add a prefix of ABC.
To edit the .arx file in Windows
- Open the .arx file in a text editor that has a Find/Replace command with a feature for matching case (for example, WordPad).
Use the Find/Replace command to search for DATA "00000000.
This command contains eight zeros. Five of the zeroes represent the difference between the original length of fifteen characters and the new length of ten characters. The other three zeros represent the spaces to be replaced by ABC.
- Use the match case feature.
- Replace all instances of:
DATA "00000000
with:
DATA "ABC - Save the changes to the file.
To edit the .arx file in UNIX
- Open the file in a text editor.
Type the following command:
g /^DATA "00000000/s//DATA "ABC/- Save and close the file.