Geting All Secondary Keys

toniMtoniM Member Posts: 11
edited 2005-07-18 in Navision Attain
hi
i am trying to make dynamic search in set of tables, i need to get all secondary keys with code , is that possible in navision?

Comments

  • kinekine Member Posts: 12,562
    You can use KeyRef for that... any key with Index >1 is secondary key. Index 1 is PK...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • toniMtoniM Member Posts: 11
    THX
    i solved my problem:
    Key KeyRef;
    
    FOR i := 1 TO RecRef.KEYCOUNT DO BEGIN
       Key := RecRef.KEYINDEX(i) ;
    
    
Sign In or Register to comment.