Solved

Change combobox values

Posted on 2003-11-03
2
387 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

803 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