report task

surisuri Member Posts: 123
hi good evening one and all
Q )Write a report which will insert Item unit of measure for items whose item unit of measure is not populated
this is the above question given to me;

i have taken dataitem(as item)
i have taken in sections
no description and base unit of measure

on item body presecition()

IF Item."Base Unit of Measure"=''THEN
base := Item."Base Unit of Measure";
MESSAGE('%1',Item."No.");

i have written this code
this was displaying item no without base unit of measure

i have tried this code


IF Item.FINDFIRST THEN
Item.SETRANGE(Item."No.",'100','70061');
IF Item."Base Unit of Measure"<>'' THEN BEGIN
REPEAT
base :=Item."Base Unit of Measure";

UNTIL Item.NEXT=0
END;

it was displaying no :=100 so many times..

where i have done wrong i don't know,
can you suggest me the code please
thank you.

Comments

  • surisuri Member Posts: 123
    hi one and all
    i find the solution by keeping table view property,i got it
    thank you
Sign In or Register to comment.