I have done a customised form whereby user has the possibility to create a PO which will create entry in the standard purchase order form(50).
Now, there is a boolean field[Created] will flag to TRUE if its created and I have placed the field(Qty. to Receive which comes from the form 50) on the customised form.
Also, each time when a user wants to change the qty. to receive on form 50 before posting, it should update the field Qty. to Receive found on customised form. And also after posting, it should take the new value for that field.
Please find my codes below:
ReqLineL.SETRANGE(Created,TRUE);
ReqLineL.SETRANGE(“Last PO No.”,PurchaseLine.“No.”);
ReqLineL.SETRANGE(“Line No.”,PurchaseLine.“Line No.”);
IF ReqLineL.FINDSET THEN BEGIN
REPEAT
ReqLineL.“Purch. Qty to Receive”:=PurchaseLine.“Qty. to Receive”;
ReqLineL.MODIFY;
UNTIL ReqLineL.NEXT=0;
END;
You want to update the line in your customized form (requision line) each time whenever user modify Qty to receive in form50…
You have written code and calling the same in Customized form…is it?
you have to run the function from customized form each time manually to update the changes…
Is that your whole code? with that code you cant achieve what you want…