I have an embedded view in a form being displayed in the web. I want to select certain documents to be marked as invalid. Here is my code to create a checkbox in the view column: unid := @Text(@DocumentUniqueID);“[<input type="checkbox" name="Invalid" value="” + unid + “">]”
Here is my WebQuerySaveCode:
Sub Initialize
Dim session As New notessession
Dim db As notesdatabase
Dim doc,doc1 As notesdocument
Dim doc2 As notesdocument
Dim item,item1 As notesitem
Set db = session.currentdatabase
Set doc = session.documentcontext
Set item = doc.GetFirstItem( “Selection” )
Forall v In item.Values
Set doc1 = db.getdocumentbyunid(Cstr(v))
doc1.valid = “no”
End Forall
End Sub
It doesn’t get the unid that is set in ‘Selection’. Does anyone have any suggestions how to get this to work?
Thank you to anyone that can help.