Hi,
I need to show a user the categories in a database which are not used. I have written a lotusscript on a button which works out the unused categories and stores them in an array - this works fine. I am now stuck with trying to display this array of values to the user. Any ideas?
TIA
Subject: Display contents of array to user
Use the Join command (similar to @implode) to convert the array to a string and then just put it in a msgbox.
Will that work?
Subject: RE: Display contents of array to user
Of course, if this list is too long it will be cut off, and the messagebox is a modal dialog, so if they need to do something in Notes with the list values while they are still displayed, it could be inconvenient. Instead, you might create a report for them in its own window. The ReportGenerator class on openntf.org might be useful for this (though it’s a bit of overkill for just presenting a list – you could easily in a few lines, create the NotesDocument and RT item, append some text, and display the document. But you could use this as a model for how, if that wasn’t enough of a hint.
Subject: RE: Display contents of array to user
Maybe …
notesUIWorkspace.Prompt using PROMPT_OKCANCELLIST (4)
just disregard the return… Like this…
Dim workspace As New NotesUIWorkspace
Dim myDoc As NotesDocument
Set myDoc = workspace.CurrentDocument.Document
Dim askme As Integer
askme = workspace.Prompt(PROMPT_OKCANCELLIST, _
"TYest", "test.",,myDoc.sizeTest)
I’m using a multi value field on a doc, but it’s the same for an array.