Hello
recRef.OPEN(122); -- opening the Purch. Inv. Header
FldRef := recRef.FIELD(44);--- Order No field ref
FldRef.SETRANGE('106015');--- filtering the Purch. Inv. Header table with the Order Number Value.
IF recRef.FINDFIRST THEN;
recRef is using the default primary key or the Purch. Inv. Header Table.
I would like to set a new key that is Order Number , to search for the records effectively by FldRef.SETRANGE('106015');
Can anybody help me how to SET new key to the recRef
Thanks and Regards
Ajay
Ajay
0
Comments
Regards
I need some sample code for the following
If I have the field number in the current table , for example take field number 44 (Order No.) in Purch. Inv. Header table.
I would like to get the key index which will contain the field number 44 from the current table pointing by the RecRef.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Regards