Very quick question, how do i refresh the uidoc after the user clicks a button to create a response document?
I have an embeeded view with a button next to it (on the form) which allows the user to create a document that should appear in the embedded view, but it only appears after i press F9.
I have tried a uidoc.refresh in the button, but it runs it too early, before the document has been created.
Is the new document opening in a new tab, being edited, saved then closed? If so refreshing the original doc could be an issue.
If the button is creating the document all in lotusscript then you can probably use workspace.viewrefresh at the end of the button’s code without a problem.
Yes, I guess you could create the doc, save it refresh the workspace then open in with workspace.editdocument, but that would cause problems if people had the option to cancel out without saving at the moment.
Something else I tried in the past was to put a refresh in the queryclose of the new document - seem to remember having limited success with it though.