Dear NAV Peers,
I'm developing a production order report , In the report i have used 1) Production order and 2) production order line table .I have a field as specification where i want to fetch the value through coding.
The below coding i have written in production order line -> OnAfterGet record ()
RecItem.RESET;
RecItem.SETRANGE(RecItem."No.","Prod. Order Line"."Item No.");
IF RecItem.FINDSET THEN BEGIN
RTestPlanSetup.RESET;
RTestPlanSetup.SETRANGE (RTestPlanSetup."Item No.",RItem."No.");
IF RTestPlanSetup. FINDSET THEN BEGIN
RTestPlan.RESET;
RTestPlan.SETRANGE(RTestPlan."No.",RTestPlanSetup."Test Plan No.");
IF RTestPlan.FINDSET THEN BEGIN
RTestPlanPropertySet.RESET;
RTestPlanPropertySet.SETRANGE(RTestPlanPropertySet."Test Plan No.",RTestPlan."No.");
RTestPlanPropertySet.SETRANGE(RTestPlanPropertySet.Version,RTestPlan.Version);
IF RTestPlanPropertySet.FINDSET THEN BEGIN
REPEAT // new
NewSpecification := RTestPlanPropertySet.Description;
MESSAGE('%1',NewSpecification);
UNTIL RTestPlanPropertySet.NEXT =0;
// MESSAGE('%1',NewSpecification);
END;
END;
END;
END;
in the test plan property we have 5 lines , in the message box all the five lines are displayed but in layout it display the last line only . Please help .
the below image is the report , only the last line is being displayed.
Looking forward for the solution for the same . Thanks in advance.
*This post is locked for comments