Article View: borland.public.jbuilder.java.language
Article #18029Updating a parameterRow value
From: Marie Ricketts
Date: Fri, 21 Aug 1998 00:00
Date: Fri, 21 Aug 1998 00:00
23 lines
1176 bytes
1176 bytes
I would like to update the value of a parameterRow and re - execute the
query when a button is pushed.
The parameterRow lives in a dataModule and the field that I am updating
from is in another java file in the project.
In OtherFile.java:
labelControl1.setColumnName("COLUMN_NAME");
labelControl1.setDataSet(datamod.getQueryDataSet1());
labelControl1.setVisible(false);
In ThisFile.java:
ParameterRow parameterRow = datamod.pRow();
parameterRow.setString("pRowName",OtherFile.labelControl1.getText());
The error that I get is "Error:( line#) cannot make a static reference
to a non-static variable labelControl1.
Thanks!
Marie Ricketts
Technical Details
Message-ID:
<35DDE1B2.100A8B14@Dartmouth.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,291ebf2bc70c6719,start X-Google-Attributes: gidf74b3,public From: Marie Ricketts <Marie.G.Ricketts@Dartmouth.edu> Subject: Updating a parameterRow value Date: 1998/08/21 Message-ID: <35DDE1B2.100A8B14@Dartmouth.edu> X-Deja-AN: 383457848 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language