// Writing the Log for a Contact Record myRecRef.GETTABLE(Contact) myLog.RecordDetails := myRecRef.RECORDID; //saving the reference for a given Contact record // Reading the Log ... myRecID := myLog.RecordDetails ; MyRecRef := myRecID.GETRECORD; MESSAGE('FIELD 1\Field 2 %2',MyRecRef.FIELD(1).VALUE,MyRecRef.FIELD(2).VALUE);
// Writing the Log for a Contact Record MyRecRef.GETTABLE(Contact); MyLog.RecordDetails := MyRecRef.RECORDID; //saving the reference for a given Contact record // Reading the Log ... MyRecRef.GET(MyLog.RecordDetails); MESSAGE('FIELD 1 %1\Field 2 %2', MyRecRef.FIELD(1).VALUE, MyRecRef.FIELD(2).VALUE);
Answers
Which NAV version you're using?
FINDFIRST does not help, unfortunately.
I use NAV 2013R2.
Any other ideas? Would be great!
RecRef.GET(myLog.RecordDetails);
FldRef := RecRef.FIELDINDEX(1);
MASSAGE(FldRef.VALUE);
Your code could be like this:
GET did the trick. Thanks a lot. I was not aware of that kind of usage of the GET command.
Thanks again, you made my day!
Thomas