In dire need for help in lotus script

I have a saved document already using the form Purchase Item Entry.Only one field is left without being filled.

I want to get the old document and enter the field value.

I have a 'rder number’and ‘urchase order number’.

Now should I get the document from its view and then re-edit it?

Please give an easy and an effective way to solve this problem…

Thanks in advance.

Anju Deshmukh

Subject: RE: In dire need for help in lotus script

Anju

To confirm I understand your request correctly:

You wish to populate a field on the current form (formA) with a value from a previously created form (formB)!?

If this is the case, you need to ‘get’ formB using a unique identifier (perhaps this could be the order or purchase order number or NoteID etc?)

Set formA = db.CurrentDocument

Set formB = view.GetDocumentBykey(formA.UniqueIdentifier(0))

Once you get a handle on formB, you can then access the values of it. All you then need to do is set the value on formA with the value of formB

requiredvalue = formB.FieldName

formA.missingvalue = requiredvalue

HTH

Kendy