(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)?

  • '-'? yyyy – The year expressed as four characters and a minus sign, if a minus sign is required.

  • '-' – The delimiter between date value parts.

  • mm – The month, expressed as two characters.

  • dd – The day, expressed as two characters.

  • T – The delimiter between the date and time.

  • hh – The hours, expressed as two characters.

  • ':' – The delimiter between time value parts.

  • mm – The minutes, expressed as two characters.

  • ss – The seconds, expressed as two characters.

  • ('.' s+)? – The milliseconds. This value is optional.

  • (zzzzzz)? – The time zone code. This value is optional.

Example: 1999-01-01T13:20:21.12

time

Time

The value must be in the following format: hh:mm:ss.sss

  • hh – The hours, expressed as two characters.

  • mm – The minutes, expressed as two characters.

  • ss – The seconds, expressed as two characters.

  • sss – The milliseconds, expressed as three characters.

Example: 13:20:21.233

date

Day

The value must be in the following format: '-'? yyyy '-' mm '-' dd zzzzzz?

  • '-'? yyyy ' – The year expressed as four characters and a minus sign, if a minus sign is required.

  • mm – The month, expressed as two characters.

  • dd – The day, expressed as two characters.

  • zzzzzz? – The time zone code. This value is optional.

gYearMonth

Year and month

The value must be in the following format: CCYY-MM

  • CCYY– The year, expressed as four characters.

  • MM – The month, expressed as two characters.

gYear

Year

0001 to 9999

gMonthDay

Day of the month

The value must be in the following format: mm-dd zzzzzz?

  • mm – The month, expressed as two characters.

  • dd – The day, expressed as two characters.

  • zzzzzz? – The time zone code. This value is optional.

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.

  1. Click General ledger > Setup > Financial reports generator > Data types.

  2. Click New, and then, in the Extended data type and Description fields, enter an identification number and a name for the extended data type.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. On the Templates FastTab, click Add to create a line.

  8. In the Template field, enter the template that defines the valid sequence of characters and numbers in a value.

  9. On the Values FastTab, click Add to create a line.

  10. In the Value field, enter a value for the selected base type.

See also

(RUS) Extended data types (form)

(RUS) Document templates (form)