Hello,
It seems to be very simple, but for some reason that I don't know, the values of the variables are not shown in the report. The process enters the condition and assigns value to the variables, in fact I added a Message so that it would be displayed on the screen, which it does.
Variables:
Name DataType Subtype Length
DimValue Record Dimension Value
Value1 Text
Value2 Text
Item Journal Batch - OnAfterGetRecord()
DimValue.SETRANGE(Code, "Item Journal Line"."Shortcut Dimension 2 Code");
IF DimValue.FINDLAST THEN BEGIN
Value1 := DimValue.Name;
Value2 := DimValue.Code;
MESSAGE('Name: %1, Code: %2', Value1, Value2);
END;
Thanks in advance
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!