Difference between revisions of "Edi Enforce Primary Measure"
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:How_To]] | ||
+ | [[Category:How_To V11]] | ||
The Primary Measure as defined by the EDI standard should always be AN..15 (an alpha numeric value up to 15 characters in length). | The Primary Measure as defined by the EDI standard should always be AN..15 (an alpha numeric value up to 15 characters in length). | ||
When creating an EDI format of a Data Structure Definition, the Primary Measure will be output as defined by the Data Structure. So a Primary Measure could be a value which does not conform to the EDI standard, thus the generated EDI file may not be compliant to the standard. | When creating an EDI format of a Data Structure Definition, the Primary Measure will be output as defined by the Data Structure. So a Primary Measure could be a value which does not conform to the EDI standard, thus the generated EDI file may not be compliant to the standard. | ||
− | |||
== Enabling EDI Enforce Primary Measure Mode == | == Enabling EDI Enforce Primary Measure Mode == | ||
− | To enable the mode that for all Data Structures output in EDI format, that the Primary Measure will be AN..15, a Java System variable needs to be | + | To enable the mode that for all Data Structures output in EDI format, that the Primary Measure will be AN..15, a Java System variable needs to be specified "edi.enforce.primarymeasure.enabled" which must be set to "true". This is supplied via the -D parameter <code> -Dedi.enforce.primarymeasure.enabled=true </code> |
When using Apache Tomcat, the simplest way to perform this is by modifying the setenv.bat or setenv.sh file. To illustrate this: | When using Apache Tomcat, the simplest way to perform this is by modifying the setenv.bat or setenv.sh file. To illustrate this: |
Latest revision as of 06:05, 5 September 2022
The Primary Measure as defined by the EDI standard should always be AN..15 (an alpha numeric value up to 15 characters in length).
When creating an EDI format of a Data Structure Definition, the Primary Measure will be output as defined by the Data Structure. So a Primary Measure could be a value which does not conform to the EDI standard, thus the generated EDI file may not be compliant to the standard.
Enabling EDI Enforce Primary Measure Mode
To enable the mode that for all Data Structures output in EDI format, that the Primary Measure will be AN..15, a Java System variable needs to be specified "edi.enforce.primarymeasure.enabled" which must be set to "true". This is supplied via the -D parameter -Dedi.enforce.primarymeasure.enabled=true
When using Apache Tomcat, the simplest way to perform this is by modifying the setenv.bat or setenv.sh file. To illustrate this:
SET JAVA_OPTS=-Dedi.enforce.primarymeasure.enabled=true
(For Windows systems)
export JAVA_OPTS=-Dedi.enforce.primarymeasure.enabled=true
(For Unix systems)