(RUS) Set up data types for requisites
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2
You can use the data type directory to store and manage a list of all possible data types for requisites that are available in the electronic reporting templates. Data from this directory is used to verify report data. Data types in a directory are created automatically when you refresh the structure in the Document templates form, or when you transfer settings from one template to another. You can also create a data type manually.
You can use the following data types to create requisites.
Data type |
Description |
Valid values |
---|---|---|
string |
Line |
Any line is valid. |
boolean |
Boolean |
true, false, 1, and 0 |
decimal |
Decimal |
Integers and fractions |
integer |
Integer |
Only integers |
long |
Integer |
–9223372036854775807 to 9223372036854775808 |
int |
Integer |
–2147483648 to 2147483647 |
short |
Integer |
–32768 to 32767 |
byte |
Integer |
–128 to 127 |
nonPositiveInteger |
Integer |
Any value that is less than or equal to 0 (zero). |
nonNegativeInteger |
Integer |
Any value that is greater than or equal to 0 (zero). |
unsignedLong |
Integer |
0 to 18446744073709551615 |
positiveInteger |
Integer |
Any value that is greater than 0 (zero). |
unsignedInt |
Integer |
0 to 4294967295 |
unsignedShort |
Integer |
0 to 65535 |
unsignedByte |
Integer |
0 to 255 |
float |
Decimal |
Integers and fractions |
double |
Decimal |
Integers and fractions |
dateTime |
Date and time |
Values must be in the following format: '-'? yyyy '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s+)? (zzzzzz)?
Example: 1999-01-01T13:20:21.12 |
time |
Time |
The value must be in the following format: hh:mm:ss.sss
Example: 13:20:21.233 |
date |
Day |
The value must be in the following format: '-'? yyyy '-' mm '-' dd zzzzzz?
|
gYearMonth |
Year and month |
The value must be in the following format: CCYY-MM
|
gYear |
Year |
0001 to 9999 |
gMonthDay |
Day of the month |
The value must be in the following format: mm-dd zzzzzz?
|
gDay |
Day |
The value must be in the following format: dd, where dd is the day, expressed as two characters. |
gMonth |
Month |
The value must be in the following format: mm, where mm is the month, expressed as two characters. |
anySimpleType |
Built-in data type |
Any value |
Use the following procedure to set up data types for requisites that are used in electronic reporting.
Click General ledger > Setup > Financial reports generator > Data types.
Click New, and then, in the Extended data type and Description fields, enter an identification number and a name for the extended data type.
In the Base type field, select the base data type that is used in the XML schema definition (XSD).
Note
The XSD schema is the requisite that is used on the electronic report that uses the XML format for the elements.
To create the data type automatically, select the Automatic creation check box. In this case, you do not have to complete steps 5 through 10.
–or–
To create the data type manually, clear the Automatic creation check box, and then follow steps 5 through 10.
If you selected string in the Base type field, follow these steps:
In the Minimum length and Maximum length fields, enter the minimum and maximum lengths for the requisite.
In the String length, enter the string length of the requisite.
If you selected integer in the Base type field, follow these steps:
In the Number of digits field, enter the maximum number of digits for the number.
In the Number of decimals, enter the number of decimal places for the number.
In the Min exclusive field, enter the minimum value of the requisite.
In the Max exclusive field, enter the maximum value of the requisite. For example, if the maximum value is 10, the valid value is less than 10.
In the Min inclusive field, enter the minimum value of the requisite.
In the Max inclusive field, enter the maximum value of the requisite. For example, if the maximum value is 10, the valid value is less than or equal to 10.
On the Templates FastTab, click Add to create a line.
In the Template field, enter the template that defines the valid sequence of characters and numbers in a value.
On the Values FastTab, click Add to create a line.
In the Value field, enter a value for the selected base type.