This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Renaming field  RSS feed

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently having a problem renaming a field and wonder if someone might be able to help me with this problem?

I have opened the database in Netbeans IDE 8.1.
I found the field that needs to be renamed and renamed it.
Not only was the field on the current form reflecting the change, but another
form also showed the new name as well.

I re-built the .jar file and opened the app.
The field name had not changed in the app.

I went back and tried to clean and re-build the .jar file.
This time I got an error and could not clean/rebuild.

So I just chose rebuild once again.
I opened the app again, but once again the field name had not changed.

Any suggestions on this?
 
Sheriff
Posts: 12198
199
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That all depends on what you mean by "field name has not changed" and the code that's involved.

Are you referring to a database field or a field in an object? What code is involved in displaying this name that you say isn't changing? Show it to us so we have a better idea of what's going on. 
 
David Henstridge
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Junilu Lacar wrote:That all depends on what you mean by "field name has not changed" and the code that's involved.

Are you referring to a database field or a field in an object? What code is involved in displaying this name that you say isn't changing? Show it to us so we have a better idea of what's going on. 



First off I must apologize for not getting my terminology straight.
I did not rename a field, but rather the field's label.

The only thing I see mentioned in the code for the label is:


Under the label's properties I see:
text:  RNC

This is the new name I gave the label.

What else would I have to change to get the new label to show?
The old label that still shows is Account ID.


 
David Henstridge
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a few more references to the label in the code:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!