piPrimaryIndex - DataDictionary

Defines which index is used to generate the record ID as it is used in WebApp state hashes

Type: Property

Access: Read/Write

Data Type: Integer

Parameters: None

Syntax
 Property Integer piPrimaryIndex

Read Access: Get piPrimaryIndex to IntegerVariable
Write Access: Set piPrimaryIndex to IntegerVariable/Value


Description

This property defines which index is used to generate the record ID as it is used in WebApp state hashes.

This should be a unique index. Multi-segment indexes are allowed.

Note that the values of the segments in this index will be used in the state hashes and can appear in the URL.

If the default value of -1 is used, it will use the DF_FILE_PRIMARY_INDEX attribute. That means that it will use recnum for the embedded database and the primary key for SQL databases.