Hello!
Hi need to create several func to convert some navision data types into a text data type.
I'm creating a func RecordIDToText that converts a recordID into a text, but I can't manipulate a recordId in C/AL to create and test my func.
I'm need to know how make an attribution to a recordId and who to manipulate it.
Can u guys please help me.
0
Answers
I don't know what you mean by 'RecordID' though
RIS Plus, LLC
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I was triing to convert a RecordID (one of the navision data types) into a string. My problema was that i could not create a recordId with valid data to do the tests. Its necessary to use a RecordRef to get a recordId
Exemple:
Customer.RESET;
IF Customer.FIND('-') THEN BEGIN
RecRef.GETTABLE(Customer);
RecID := RecRef.RECORDID;
END;
My problem is SOLVED thanks guys
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Is the other way round possible?
I mean: when I have a recordID, how can I use this to get a record through a recordvariable (instead of a RecordRef)
is is as simple as the following code?
And do I need a find statement right after the settable?
Tested it myself, and yes it is that simple and you don't need a find statement right after teh settable line.
...
Everybody on-line.
...
Looking good!