Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting LotusScript to allow me to do name search

Status
Not open for further replies.

rturnbul

Technical User
Feb 6, 2005
6
US
In a LotusScript I am currently writing, I want to allow the user to select a name from the Lotus Directory (names.nsf).

I know how to do this with the Formula language, but how can I do this with LotusScript. I don't want the user just typing in a name into an input box; I want them to choose it from the directory.

Is there any way to integrate the two components into my script. ie. get the name from the formula language, and then pass this into my LotusScript.

Thanks for any help you can provide.
 
When coding such things in Script, you basically have to make your own interface.
Thus, you need to make a little subform which will pop up and in which the user should be able to choose a name. Since you'll be using normal fields in the subform, you can easily code it to present a name dialog box.
The field where the user makes his choice should also be created on the form from which the user clicked the button. When the user has chosen, the value will then be copied into the field on the form, and your script can just get it from there.

Either that, or you can simply use a variant to recieve the value of an Eval (if you're using R6), or Evaluate (if in R5).
In that case, assign the Formula you would use (a @Picklist probably) to a string variable, and use Eval on it.
And voilà !

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top