Article View: borland.public.jbuilder.database
Article #176Re: picklist will not populate from database
From: Peter Wetjens
Date: Tue, 25 Apr 2006 17:54
Date: Tue, 25 Apr 2006 17:54
49 lines
3118 bytes
3118 bytes
Sorry, see below
jdbTable1.setDataSet(queryDataSet1);
jdbStatusLabel1.setText("jdbStatusLabel1");
dBDisposeMonitor1.setDataAwareComponentContainer(this);
queryDataSet1.setQuery(new
com.borland.dx.sql.dataset.QueryDescriptor(
database1, "SELECT * FROM USER", null, true, Load.ALL));
queryDataSet2.setQuery(new QueryDescriptor(database1,
"SELECT TEMPLATE_NAME FROM TEMPLATE", null, true,
Load.ALL));
column1.setColumnName("USER_TEMPLATE");
column1.setDataType(com.borland.dx.dataset.Variant.STRING);
column1.setPickList(new com.borland.dx.dataset.PickListDescriptor(
queryDataSet2, new String[] {"TEMPLATE_NAME"},
new String[] {"TEMPLATE_NAME"},
new String[] {"USER_TEMPLATE"}, null, false));
column1.setPrecision(30);
column1.setTableName("USER");
column1.setServerColumnName("USER_TEMPLATE");
column1.setSqlType(12);
contentPane.add(jdbStatusLabel1, java.awt.BorderLayout.SOUTH);
contentPane.add(jdbNavToolBar1, java.awt.BorderLayout.NORTH);
contentPane.add(jScrollPane1, java.awt.BorderLayout.CENTER);
jScrollPane1.getViewport().add(jdbTable1, null);
queryDataSet1.setColumns(new Column[] {column1});
"Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com> schreef in bericht
news:xn0el8ypl3m92t000-kdean@www.teamb.com...
> Peter Wetjens wrote:
>
>>Below I included my code, because I don't understand your question. My
>>guess, the answer is "yes".
>
> There's no code in your post.
>
> --
> Kevin Dean [TeamB]
> Dolphin Data Development Ltd.
> http://www.datadevelopment.com/
>
> NEW WHITEPAPERS
> Team Development with JBuilder and Borland Enterprise Server
> Securing Borland Enterprise Server
> http://www.datadevelopment.com/papers/index.html
>
> Please see Borland's newsgroup guidelines at
> http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<444e6263@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-out.nuthinbutnews.com!sp6iad.superfeed.net!in2.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<44468e94$1@newsgroups.borland.com> <xn0el7k2whrik001-kdean@www.teamb.com> <444902b7@newsgroups.borland.com> <xn0el8ypl3m92t000-kdean@www.teamb.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,31f881c625ff6d88 X-Google-Attributes: gid1073da,public X-Google-Language: ENGLISH,ASCII-7-bit Subject: Re: picklist will not populate from database From: "Peter Wetjens" <peterwetjens@planet.nl> Date: Tue, 25 Apr 2006 19:54:39 +0200 Message-ID: <444e6263@newsgroups.borland.com> References: <44468e94$1@newsgroups.borland.com> <xn0el7k2whrik001-kdean@www.teamb.com> <444902b7@newsgroups.borland.com> <xn0el8ypl3m92t000-kdean@www.teamb.com> Lines: 51 NNTP-Posting-Host: 80.61.249.52 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!news-out.nuthinbutnews.com!sp6iad.superfeed.net!in2.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail Newsgroups: borland.public.jbuilder.database X-Trace: newsgroups.borland.com 1145987683 80.61.249.52 (25 Apr 2006 10:54:43 -0700) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response