🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12935

Problem with jdbComboBox

#12935
From: Wilf Reedijk
Date: Thu, 22 Oct 1998 00:00
27 lines
1332 bytes
I am having a problem getting jdbComboBox to bind to the column in the
dataset. Originally when the panel was initialized it did not initialize
the combo box at all. If I add the following lines to jbInit it
initializes ok:


    // to get around a bug:
    patient.getQDSPatient().refresh();
    String st = patient.getQDSPatient().getString("SEX");
    jdbComboBox2.setSelectedItem(st);


However if I change the value in the combo box the change does not make
it to the dataset...unless...I navigate to the next record in my dataset
and then back again. Now changes to the combo box seem to be reflected
in the dataset. 

Is this a bug. If so what is the workaround? If not what might I be
doing wrong?

Thanks
Wilf Reedijk
Millennium MRI Research Group


p.s please cc me at the following (work) email if you have a reply:
wilf@millennium.ca
Technical Details
Message-ID: <36301009.53738C70@home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d62a5cd021aa0618,start
X-Google-Attributes: gid111d45,public
From: Wilf Reedijk <wreedijk@home.com>
Subject: Problem with jdbComboBox
Date: 1998/10/22
Message-ID: <36301009.53738C70@home.com>
X-Deja-AN: 404180326
Content-Transfer-Encoding: 7bit
Organization: @home network
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing