🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to implement a JdbNavComboBox

#12596
From: Jay Wagner
Date: Thu, 10 Dec 1998 00:00
45 lines
2073 bytes
Ramanan,

I am using a JPanel.  Here is a snipplet of code I am using.

 ..
// sdsCodes StorageDataSet with a list of codes.
// sdsProducer StorageDataSet is a data-entry record.
..
    JNavCombBox ncbTypeCode = new JNavComboBox();
..
   ncbTypeCode.setColumnName("TYPE_CD");
    ncbTypeCode.setBounds(new Rectangle(9, 41, 47, 20));
    ncbTypeCode.setDataSet(sdsProducer);
// Column "DESCRIPTION" Display Value for dropdown list on codes.
// Column "CODE" Data Value for dropdown list on codes.
// Column "TYPE_CD" Data Value from Producer Record
    PickListDescriptor p = new PickListDescriptor(sdsCodes, new String[]
{"DESCRIPTION"}, new String[]      {"CODE"},  new String[] {"TYPE_CD"},
false);
    sdsProducer.getColumn("TYPE_CD").setPickList(p);

What shows up is a JNavComboBox with just the value from the sdsProducer
row.  Is there something I am missing?

Can you show me some code you used to get the component to work?

Thanks,

Jay

Ramanan Varadarajan wrote:

> i think u have 2 questions .. not sure if they are separate ones
> or the same
>
> if ur NavComboBox is not even showing the drop down list then
> it could be that ur container is not swing.... get a swing container
> such as Jpanel etc...
>
> if u want to attach one querydataset to another,  u can use
> a master-detail link which works perfectly fine for JdbNavComboBox...
>
> hope this helps
>
> ramanan
Technical Details
Message-ID: <36702370.9684CFFA@gte.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36681B0B.C42BFB37@gte.net> <366D559D.3675C352@lancomp.com> <366E7D8D.FAF3FE88@gte.net> <366EC237.BE0F27FF@lancomp.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2fdf92b46fdaae02
X-Google-Attributes: gid111d45,public
From: Jay Wagner <jwagner1@gte.net>
Subject: Re: How to implement a JdbNavComboBox
Date: 1998/12/10
Message-ID: <36702370.9684CFFA@gte.net>
X-Deja-AN: 420908151
Content-Transfer-Encoding: 7bit
References: <36681B0B.C42BFB37@gte.net> <366D559D.3675C352@lancomp.com> <366E7D8D.FAF3FE88@gte.net> <366EC237.BE0F27FF@lancomp.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing