Skip to main content
 
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

  

Sign in to participate PreviousPrevious NextNext


Lori Reid 27.Sep.03 05:12 PM a Web browser
Domino Designer All Releases All Platforms


I am trying to create a dialog box that contains a layout region for users to select a date (with the calendar). GRIEF!

I have a date field on my form that is named the same as a date field on the dialogboxform.

I have created a action (tried with button as well), on my form with the following LS.

Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim session As New NotesSession
Dim db As NotesDatabase
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument

Set db = session.CurrentDatabase
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document

Call uidoc.RefreshHideFormulas()

flag = workspace.DialogBox( "dialogboxform" , True, True , False , False , False , False , "title" , doc, False , False , False )
...

This gives me the error "DialogBox cannot be used in this context; a document must be selected."

I have looked at this thru debugger....Notes seems to have a handle on 'doc'.

What am I missing?

I have searched thru the forum and have tried my declarations in the Global and PostOpen events...doesn't seem to make a difference.






DialogBox cannot be used in this co... (Lori Reid 27.Sep.03)
. . RE: DialogBox cannot be used in thi... (Timothy P Marti... 15.Oct.03)
. . . . RE: DialogBox cannot be used in thi... (Thomas Bernoeck... 4.May.04)
. . . . This message appear when you have m... (Frode Frisvoll 5.Jan.06)
. . RE: DialogBox cannot be used in thi... (benpoole 27.Sep.03)
. . This is probably the 'gotcha' (Joris De Geyndt... 29.Sep.03)
. . . . RE: This is probably the 'gotcha' (Lori Reid 29.Sep.03)
. . . . . . Another Gotcha solution (Paul Gaudion 16.Feb.04)
. . . . . . . . RE: Another Gotcha solution (Arunkumar Mohun... 17.Mar.04)
. . . . . . . . . . I give you another Gotcha solution (Roger Johansson... 1.Apr.04)
. . . . RE: This is probably the 'gotcha' (Max Flodén 26.Jun.07)
. . . . . . I totally agree! Good old Google! e... (Paul Cutcliffe 2.Oct.07)
. . . . . . . . The gift that keeps on giving (JP Shelley 26.Nov.09)
. . . . . . . . . . ..and giving (Phil M Jones 30.Aug.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

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 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 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 Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM Web Content Manager
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite