Purchase Invoice - Adding field

I have created a new field (Type Real) in pending invoice form the value is stored in vendinvoiceinfotable , but if i reopen the form again the value disappears. Can someone please suggest how to save the value in the customized field in Purchase invoice form even after reopening the form.