Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


Mark XY Brown 4.Oct.12 07:09 AM a Web browser
Domino Designer 6.0.3 Windows XP


Greetings all!

One of my databases is giving me harassments, again. I've had to change the design of a form to capture more information from the users. So that existing documents don't go without, I've written an agent to populate these fields where required. All well and good.

The new information relates to how the document should be classified - each user can create documents on behalf of one or more areas within the the department. The agent is written in Lotus Script. If it encounters a document written by a user with permissions for multiple departments, it is supposed to compile a list of those departments and present it to the user in a prompt. Here is the relevant section of code:

****************************************
'Multiple groups for this user
For intG = 0 To (dcGroups.Count - 1)

Set docGroup = dcGroups.GetNthDocument(intG + 1)
Redim Preserve varGroups(0 To intG)
varGroups(intG) = docGroup.GetItemValue("GroupName")

Next

Set namRFC = New NotesName(varKey(0))
strPrompt = "Select a group for " & namRFC.Common & Chr(13)
strPrompt = strPrompt & "for RFC '" & docRFC.GetItemValue("RFCTitle")(0) & "'."

varSelGroup = ws.Prompt(prompt_okcancellist, "Data cleansing", strPrompt, , varSelGroup) '<- This is the line that fails

If Isempty(varSelGroup) Then

Messagebox "No group selected for " & docRFC.GetItemValue("RFCNumber")(0) , 48, "Data cleansing"
Goto NoGroups

Else

strGroup = varSelGroup(0)

End If
****************************************

(Yes, I know I'm using the dreaded "GetNthDocument" call, but that was the easiest way to synchronise the loops, and the collection won't have more than five documents.)

When the code execution reaches the line that fails, no prompt is displayed. I've run the code normally and in debugger mode, and either way that line is skipped over so the first part of the following If statement is invoked. This is somewhat irksome.

Has anyone encountered this before? I can post the rest of the code if required.

Thanks for reading!






Workspace prompt not being displaye... (Mark XY Brown 4.Oct.12)
. . need a default value? (Phil M Jones 4.Oct.12)
. . . . RE: need a default value? (Mark XY Brown 4.Oct.12)
. . . . . . could it be this simple? (Phil M Jones 4.Oct.12)
. . . . . . . . RE: could it be this simple? (Mark XY Brown 5.Oct.12)
. . . . . . . . . . I usually see this happen when... (Rich Schwartz 5.Oct.12)
. . . . . . . . . . . . RE: I usually see this happen when.... (Mark XY Brown 10.Oct.12)
. . . . RE: need a default value? (Mark XY Brown 4.Oct.12)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite