Home > Ask the Domino Experts > Lotus Instant Messaging/Sametime Questions & Answers > How can I get a pop-up window to collect preliminary user information before they can access a form?
Ask The Domino Expert: Questions & Answers
EMAIL THIS

How can I get a pop-up window to collect preliminary user information before they can access a form?

Hans van der Burg EXPERT RESPONSE FROM: Hans van der Burg

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 29 April 2003
There is a form that, when launched, I would like an initial dialog box to pop up to collect some preliminary information prior to the user gaining access to the entire form. Additionally, I would like the same dialog to be presented when the user closes/saves the document to verify these fields maintain the correct information. Can you help direct me in the best way to do this? I'm sure script is the best way to go, but I'm new to scripting so this is a bit of a challenge for me. And help would be appreciated.

>
The principle of popups, assuming we are speaking here about a Notes interface, is that information entered in fields in these popups can automatically be inherited into the main form from which the popup was called. This is done by using the @DialogBox function, which is exhaustively described in the Designer Help file. Sometimes it is easier to do these things with LotusScript.

I have attached some example code below, to give you a head start. It is important to remember that when you "dialog" a form using LotusScript, you will need to create a document object as well, to be able to read the values the user enters. If you do not do so and do not use this object in the calling method (see below), you would not be able to read any values entered by the user using LotusScript. The method dialog box of the notesUiworkspace, takes a value for a LotusScript NotesDocument object, which will then take the values entered. This method returns a true or false, related to the equivalent [OK] and [Cancel] button on the dialog box that appears to the end user. This allows you to trap if the user actually pressed the [OK] button and, if so, use the data from the dialog box to fill in or process your current document.

Dim s as New notesSession
Dim w as new notesUiWorkspace
Dim db as notesDatabase
Dim tmpDoc as notesDocument
Set db=s.currentDatabase
Set w=New notesUiworkspace
Set tmpDoc=db.createDocument
'open dialog box to enter details for reversing activities
dlgFlag = w.DialogBox( "dlgReverse", True,True,False,False,False,False, "Reversing Activities",tmpDoc,True,False)
If dlgFlag Then
'do your thing on the calling document
End if


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Lotus Instant Messaging/Sametime
How to enable communication between multiple Lotus Sametime servers
Lotus Sametime users with different 'home' servers cannot see each other online
Resources for deploying Lotus Sametime on the Internet
No one can see Lotus Sametime user is online
Meeting windows won't appear on Sametime 7 with Sametime Connect 3 client
Saving and archiving Lotus Sametime Web conferences
Collaborating with clients who don't have Sametime
Unable to log into Sametime through Notes with SSO
Can Lotus Notes leverage domain authentication?
Updating local location documents for Sametime users

LotusScript
LotusScript agent parses ACL to Microsoft Notepad
LotusScript finds the first occurrence of a string from the right
Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
Search Microsoft Active Directory with LotusScript
Three steps to trap and handle save conflicts with LotusScript
Troubleshoot agents by displaying LotusScript variables online
LotusScript sorts lists alphabetically
Run or restart Notes/Domino agents via text messages
LotusScript code rebuilds corrupted busytime.nsf file
Soft-code item names to facilitate LotusScript management

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts