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