Solved

Change combobox values

Posted on 2003-11-03
2
390 Views
Last Modified: 2013-12-18
I need to change the combobox values when a button is clicked, I get this information from another data base.
Do you know what is the code to add or remove this values,   or another way to do it???
0
Comment
Question by:isadam_2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 125 total points
ID: 9672960
You can use DBLookupe in combobox formula as list. Goto second tab of the field property and in the choices section select Use Formula.. and write the following formula

@DBLookup( "Notes":"NOCache"; "Server":"DatabasePath"; "View Name"; "Search Key"; "Column # or Field Name to extract")

And check option Refresh choices on doc refresh

~Hemanth
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 9674939
Create a hidden field, computed for display, alows multiple values, named COMBOBOX_CHOICES

Change the ComboBox so it uses formula for choices, and enter COMBOBOX_CHOICES as the formula. Set it to refresh choices on document refresh.

Set the COMBOBOX_CHOICES field's formula to:
@If(@IsDocBeingLoaded; "First deafult choice" : "Second default choice" : "..." : "Last default choice"; COMBOBOX_CHOICES)

In your button, change the current value of COMBOBOX_CHOICES, then refresh the document.  The combobox will pick up the new choices that you set in the COMBOBOX_CHOCES field.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus Notes 41 223
VBA Lotus notes 2 203
Connect SQL Server from Lotus Domino Application 7 364
DNS error assumed 8 86
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question