Изменить

Поделиться через


AutoSplitKey Property

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:

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.

Properties