Примечание.
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Version: Available or changed with runtime version 1.0.
Sets whether a key is automatically created for a new record placed between the current record and the previous record.
Applies to
- Request Page
- Page
Property Value
True if the key is automatically created for the new record; otherwise, false. The default value is false.
Syntax
AutoSplitKey = true;
Remarks
To set this property to a value of true, the following conditions must be met:
The current key must be the primary key.
The last field in the primary key must be an Integer Data Type, BigInteger Data Type, GUID Data Type, or Decimal Data Type field.
When AutoSplitKey is enabled, a value is automatically calculated for the last field of the primary key when a new record is inserted between two existing records. The new key value is set to a value halfway between the keys of the surrounding records.
Negative key values
APPLIES TO: Business Central 2025 release wave 1 and later
If a new row is inserted before the first record in the list, a negative key value may generated so that the new record sorts before all existing records. Both 0 and negative values are allowed for numeric key fields, though AutoSplitKey doesn't currently generate 0 as a value.