Hi all,
I have a radio button where i use “Use formula for choices”. The the formula i entered “ChoiceList”.
I have the following codes in the QueryOpen event:
Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
Dim s As New NotesSession
Dim doc As NotesDocument
Dim currentuser As String
Dim temp As String
Set doc = Source.Document
'doc.InUseBy(0) = ""
If source.IsNewDoc = False Then
If doc.HasItem("InUseBy") Then
currentuser = doc.InUseBy(0)
If currentuser ="" Or currentuser = s.username Then
doc.InUseBy =s.UserName
Call doc.Save(True,True)
End If
End If
End If
End Sub
But now i can not see any options in the radio button when i create a document. I am sure that ChoiceList has some values. But if i comment the call.save(trues,trues) in the QueryOpen event, then the radio button will show some values. Can someone tell me what is happening?
Thanks