NAVISION 3.70 I’M TRYING TO EXECUTE THE FOLLOWING CODE : Filters := Rec.GETVIEW; PurchLine.SETVIEW(Filters); WHERE PURCHlINE AND REC ARE RECORD ON PURCHASE LINE TABLE. I GET THE FOLLOWING ERROR : “The Purchase Line table does not have an active key wich starts with the following field(s): Document type, Document No., Line No.” But this is the primary key !!! And it is activated ! I tried also with SETCURRENTKEY but it didn’t work !! Thanks. Bye. Elisa.
Hi Elisa, I don’t know what you are trying to achieve, but it looks to me you are trying to copy filters? And the key? What are you aiming at?
Check one more time Records of those variables. I think PurchLine.COPY(Rec) or PurchLine.COPYFILTERS(Rec) should work fine in your case.
Try Rec.GETVIEW(FALSE) and Rec.SETVIEW(FALSE)