What am I doing wrong. I’m trying to replace a value in the backend and make it show up in the front end.
I thought I could use the notesuidocument to get to the notesdocument and use the uidoc.autoreload=true so the chages automatically show up in the front end. I’m messing up setting that backend doc. I’ve tried all sorts of things. Can someone tell me what I’m doing wrong, thanks!!!
Sub Initialize
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim newdate As String
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document
uidoc.autoreload = True
Dim item As NotesItem
newdate = Inputbox(“Enter a date (mm/dd/yyyy format)”, “ABC Company - Review”)
If newdate = "" Then
Msgbox "Review Canceled...", MB_OK, "ABC Company - Review"
Exit Sub
End If
then will 2 versions of the document be created? I want to make sure my code is correct and will not cause conflicts. I was thinking that I could save the docuent in the backend and automatically show the changes to the front end. Maybe I’m looking at this too much.
…takend from a help book…
When documents stored in the database(notesdocument) are accessed through the document in the user interface (notesuidocument), the two versions of the document must be synchronized. Is some cases, the synchronization happens automatically. In others, code forces the synchronization.
Also, will this cause replication conflicts the way I’m doing this? It’s working now but I want to make sure the back end updates withouth causing conflicts.