I already checked. It doesn't change the status. If it was New, it stays New and if it was Certified, it stays Certified. What I wanted was to force it to become Certified.
IF NOT RecRoutingHeader.FINDFIRST THEN BEGIN
RecRoutingHeader."No." := "No. Macho";
RecRoutingHeader.Description := Description;
//RecRoutingHeader.Status := RecRoutingHeader.Status::Certified;
RecRoutingHeader.INSERT;
RecRoutingHeader.Status := RecRoutingHeader.Status::Certified;
RecRoutingHeader.MODIFY;
END ELSE BEGIN
RecRoutingHeader.Status := RecRoutingHeader.Status::Certified;
RecRoutingHeader.MODIFY;
END;
Great. It worked with those 2 lines of code at the end. Strange, because those two lines are repeated earlies in the trigger and it wasn't working. Thanks!!
As for my final problem (I think I already wrote about that in this topic), when I press the arrow button down and then back up, the value in my TempoExecução field goes back to 0. It's like the value isn't stored. Do you have any idea why?
Comments
If not write this code at end
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
As for my final problem (I think I already wrote about that in this topic), when I press the arrow button down and then back up, the value in my TempoExecução field goes back to 0. It's like the value isn't stored. Do you have any idea why?
I think TempoEx is a variable not field..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav