AllExperts > Experts 
Search      

Using Lotus Notes

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Using Lotus Notes Answers
Question Library

Ask a question about Using Lotus Notes
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Paski K. Paskaradevan
Expertise
I have 3 + years in Lotus Notes application development. I am a CLP R5 Application Development. I can answer any question pertaining to application development.

Experience
R5 CLP. In addition, I have a bachelors degree in Engineering and a MBA.
 
   

You are here:  Experts > Internet/Online > Email > Using Lotus Notes > Automatically complete field in form

Topic: Using Lotus Notes



Expert: Paski K. Paskaradevan
Date: 12/1/2007
Subject: Automatically complete field in form

Question
I have created a form to enter user details. The three details Name, UserID and Telephone Number can all be found in a view with in another database (Coporate Address Book). I currently have it so that name field is a dialog list and  "Uses an address dialog for choices". What I would like to happen is then the other feilds to be filled in automatically depending on what name has been selected. I hope this makes sence. Thank-you

Answer
Hi,

There are two ways you can do this. I am going to explain this for one field. You can duplicate it for other fields.

1. Make the userID field computed and the formula is a @dblookup formula using the name entered as the key. The names field property should be set to Refresh Fields on keyword change. The disadvantage is that this will refresh the form every time you select a new name and I normally do not like this.

2. Make the names field Computed (type should still be names). Then create a button which will use @prompt and @picklist([names].....) so that when the button is clicked, the name can be picked from the CNAB. Use FIELD keyword to set the names field. In that button use the @dblookup formula to pick up the UserID and use the FIELD keyword to set the UserID field. I like this method since it does not refresh the document every time a new name is selected.

But both are ok. It is a matter of personal preference and if there are any validation formulas in other fields in the form.

Regards.

Paski  

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.