Configuration file for character string substitution (jp1imss_replace_string_setting.conf)
- Organization of this page
Description
This file defines whether to replace a string contained in a textarea type element of an Item to be registered with a linefeed character when the Item is registered by using the Item registration (jssitementry) command.
Format
;comment (Linefeed) [REPLACE] REPLACE_FLAG=Whether to convert a string to a linefeed character(Linefeed) REPLACE_STRING=A string to be converted to a linefeed character(Linefeed)
Lines starting with a semicolon (;) are treated as comments.
- Legend:
-
(Linefeed): Indicates a linefeed character.
File names
-
jp1imss_replace_string_setting.conf (Configuration file for character string substitution)
-
jp1imss_replace_string_setting.conf.model (Model file of the Configuration file for character string substitution)#
- #
-
You can use the model file to reset the contents of the Configuration file for character string substitution. To do so, delete the existing Configuration file for character string substitution, then copy and rename the model file.
Storage folder
JP1/SS-path\conf\command\
When the definition is applied
The definition is applied when the jssitementry command is executed.
What is described
You can specify the specification keys described in the table below. Use an equal sign (=) to connect a specifiable key and its value.
Specification key name |
Description |
Default value |
---|---|---|
REPLACE_FLAG |
When you use the jssitementry command to register an Item, specify whether to replace a string (a value specified by REPLACE_STRING) contained in a textarea type element of an Item with a string for registration. Note that the string is not replaced for elements (other than textarea-type elements) for which a linefeed character cannot be specified.
|
false |
REPLACE_STRING |
When you use the jssitementry command to register an Item, if you want to replace a string contained in a textarea-type element of an Item with a linefeed character, specify the string you want to replace with a linefeed character. Specify a string that is one to 32 bytes long and does not contain control codes, double quotation marks ("), and commas (,). |
[\r\n] |
Notes
-
If you set to replace a string contained in a textarea-type element of an Item with a linefeed character by using Configuration file for character string substitution, do not insert a string to be replaced in the value of the form element ID from JIMSD_FORM_USERTEXT01 to JIMSD_FORM_USERTEXT20. If you insert such a string to be replaced and execute the jssitementry command, the operation cannot be guaranteed.
-
TheConfiguration file for character string substitution (jp1imss_replace_string_setting.conf) must be created or edited with a character encoding that is compatible with the system locale of the machine on which JP1/Service Support is installed. You can use one of the following character encodings:
-
In a Japanese environment: MS932
-
In an English environment: ISO-8859-1
-
In a Chinese environment: GB18030
-
Definition example
The following example replaces [\r\n] with a linefeed character:
[REPLACE] REPLACE_FLAG=true REPLACE_STRING=[\r\n]