Article View: borland.public.jbuilder.java.swing
Article #10393Re: why ListControl and JdbList are empty after setDataSet()
From: Randy Strobel
Date: Tue, 21 Sep 1999 00:00
Date: Tue, 21 Sep 1999 00:00
23 lines
1419 bytes
1419 bytes
You could try reversing the order of the method calls. Call setColumnName()
first and then setDataSet(). This how we've been doing it and have had no
troubles. If this doesn't solve it....make sure your dataset has data.
Make sure it is opened and the correct query has been executed.
Shaomei Ruan wrote:
> What's wrong with the following code?
>
> myListControl.setDataSet(queryDataSet);
> myListControl.setColumnName("column1");
>
> myJdbList.setDataSet(queryDataSet);
> myJdbList.setColumnName("column1");
>
> These codes do not populate the data into the ListControl and JdbList as
> I expected. Did I miss anything? Is this a bug? How do I get around it
> without having to retrieve each record from the dataset myself and then
> set item to JdbList?
>
> Thanks
>
> Shaomei
Technical Details
Message-ID:
<37E7A190.6D82052A@siscom.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37E1B88F.A081BA1C@geocities.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,e736ecc5014f464f X-Google-Attributes: gid111d45,public From: Randy Strobel <krstrob@siscom.net> Subject: Re: why ListControl and JdbList are empty after setDataSet() Date: 1999/09/21 Message-ID: <37E7A190.6D82052A@siscom.net> X-Deja-AN: 527846549 Content-Transfer-Encoding: 7bit References: <37E1B88F.A081BA1C@geocities.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: PMI Food Equipment Group Mime-Version: 1.0 Reply-To: strobrj@pmifeg.com Newsgroups: borland.public.jbuilder.java.swing