Hiusing the action categorize, i wasn’t able to prevent users select more than one categorie.
Therefore I have build a form with a categories-radio button in a table.
Now I want to call the dialogbox and select a Categorie from dialoglist.
My Problem: I can get no item but the form (same in debugger)
My Code:
…
Set db = session.CurrentDatabase
Set collect = db.UnprocessedDocuments
Set dialogdoc = db.CreateDocument
dialogdoc.Form = “Category Helper”
’ *** flag = notesUIWorkspace.DialogBox( form$ , [autoHorzFit] , [autoVertFit] , [noCancel] , [noNewFields] ,
’ *** [noFieldUpdate] , [readOnly] , [title$] , [notesDocument] , [sizeToTable] ,
’ ***[noOkCancel] , [okCancelAtBottom] )
flag = ws.DialogBox(“Category Helper”,True, False, False, True, True, False, “Kategorie auswählen”,dialogdoc , True, False, True)
If flag Then
Set cItem = dialogdoc.GetFirstItem("CheckCategories")
’ *** cItem is always empty ??? ***
If cItem Is Nothing Then
categories = ""
Else
categories = cItem.Values
End If
Set doc = collect.GetFirstDocument
While Not doc Is Nothing
Call doc.ReplaceItemValue("PublicCategories", categories)
Call doc.Save(True, True)
Set doc = collect.GetNextDocument(doc)
Wend
Please help