I have a temporary table in a report. Its a temporary table of Type Purchase Header. And I am populating it with data from a few places. At one point i have this code:
PHead."Document Type" := PHead."Document Type"::Order;
PHead."No." := "Purch. Rcpt. Header"."Order No.";
IF PHead.INSERT(FALSE) THEN BEGIN
PHead."Completely Received" := TRUE;
MESSAGE(FORMAT(PHead."Completely Received"));
PHead.MODIFY(FALSE);
MESSAGE(FORMAT(PHead."Completely Received"));
PHead.FIND;
MESSAGE(FORMAT(PHead."Completely Received"));
END;
The messages that I get are Yes. Yes. No.
Why, in between the modification and re-retreiving the record from my Temp table does this field reset itself to False?
GaMBe
0
Comments
RIS Plus, LLC
-There may be no filters on "PHead" for doing a FIND (or FIND('=') ). (But I don't think this is the problem)
-If your field "Completely Received" is a flowfield, this is normal, because it is always recalculated.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Funnily the formula thats there doesnt actually give the correct value, but thats another days work.