Refreshing Field

I have come code in a view that allows the user to select multiple document and the approve them. In the form I have a Status Field (hidden) and a ShowStatus Field which is Computed from the Status field.

The code sets the stats to “Approved” but the document doesn’t refresh from the back end so the show status field remains “Pending Approval” until I go into the document, put it in edit mode and save it again.

I’m calling doc.save and doc.refresh. What am I missing?

doc.Status = “Approved”

Call doc.Save( False, True )

Call doc.refresh

Subject: Refreshing Field

you could do…

doc.computeWithForm( true, false)

john

Subject: RE: Refreshing Field

the above should work i think… if it doesnt try

call NotesUIDocument.reload

Subject: RE: Refreshing Field

Thanks that seems to have done it.