Article View: borland.public.jbuilder.java.api
Article #3317setting dataSets at run time
From: Michael Hunter
Date: Wed, 18 Feb 1998 00:00
Date: Wed, 18 Feb 1998 00:00
40 lines
1727 bytes
1727 bytes
I created a DataModule with a Database and several QueryDataSets, and would
like to use the QueryDataSets in other forms. In my form, I have a text
field and a grid control. I tried to connect the fields' dataSet property
to a QueryDataSet, like this:
void jbInit() throws Exception{
RentData dm = RentData.getDataModule();
bldgNum.dataSet = dm.queryBldsm;
gridControl1.dataSet = dm.queryRetax;
}
but when I compile, I get an error: "variable dataSet has private
access in class borland.jbcl.control.TextFieldControl"
What am I doing wrong?
Michael Hunter
Humbug_Reality@csi.com
"But what can we do? We can't do anything to show what we could do if only
we had the power we haven't got."
-- Ladies Clarice and Cora of Gormenghast
'************************************************************
Visit the ActiveCAD Pages at
http://ourworld.compuserve.com/homepages/Humbug_Reality/ActiveCAD/index.htm!
'************************************************************
begin 666 Michael Hunter.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DAU;G1E<CM-:6-H865L#0I&
M3CI-:6-H865L($AU;G1E<@T*14U!24P[4%)%1CM)3E1%4DY%5#I(=6UB=6=?
M4F5A;&ET>4!C<VDN8V]M#0I2158Z,3DY.# R,3E4,#,P.#4T6@T*14Y$.E9#
%05)$#0H`
`
end
end
Technical Details
Message-ID:
<6cg7i8$2937@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,6b00f6bc0f8dfdc8,start X-Google-Attributes: gid1089d0,public From: "Michael Hunter" <Humbug_Reality@compuserve.com> Subject: setting dataSets at run time Date: 1998/02/18 Message-ID: <6cg7i8$2937@forums.borland.com> X-Deja-AN: 326448663 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: None Newsgroups: borland.public.jbuilder.java.api