Hougaard.com – Applied Hacking

In NAV 2013 R2 RecordRef.CURRENTKEYINDEX can return -1

In NAV 2013 R2, if a RecordRef does not have a active record, CURRENTKEYINDEX will return -1. IN NAV2009 and older, the value was 1 (As the number of the primary key).

If the value of CURRENTKEYINDEX is given to KEYINDEX – a index out of bounds error will occur.

This is not documented in the NAV 2013 R2 help.

[follow_me]

1 thought on “In NAV 2013 R2 RecordRef.CURRENTKEYINDEX can return -1

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.