Dialogbox from view - items problem

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

Subject: The problem is 2 parameters are set to True when they should be False [noNewFields] & [noFieldUpdate]

Subject: dialogbox from view - items problem -Solved

Thanks a lot , Bill!That was it. Thought i checked these parameters (noNewFields & noFieldUpdate).

I also tried pickliststrings and had real trouble with first categorized column → but a real alternative is the NotesUIWorkspace.Prompt(…) Method

Subject: dialogbox from view - items problem

Why are not using PickListStrings method from NotesUIWorkspace object?

It is a powerful method for this and this will avoid you to use a form (but a view though)

Subject: RE: dialogbox from view - items problem

Thanks very muchI’ve tried all, but closing a dialog (by view) all items (except form -item) are loosing their values ?!!

I will have a look for pickliststrings now -

using categories-view i am going for the next problem…