Solved

Change combobox values

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now