Jump to content
Server Maintenance This Week. ×

Updating a calculation


milky

This topic is 3808 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi all,

I created a text field that uses a calculated value and I would like a way to update all 1000 records in my database instead of going to the original field and typing the data in so the calculation works.

Any ideas?

Link to comment
Share on other sites

  • 3 weeks later...

Actually, if Daniele means what I think, it would be faster and easier to simply do it that way (as he suggests by changing in field definitions).

 

Go to field definitions, change it to a calculation instead of text.  Back up first.  Be sure it is NOT set to unstored.  Exit back to the layout then go back to definitions and change it back to text.  Behind the scenes, when changed to an indexed calculation, the data will change and plant in the records.

 

One of the problems with Replace Field Contents[] is that it is not safe in multi-user mode because if a record is currently locked by another User, it will not change the field.  It will produce an error if you think to trap for it but only after it finishes and it does not tell you which record was locked.  The other problem with RFC is that the entire record set must be downloaded from the server.  You change the single field.  Then the entire record set must be uploaded again; it is very resource intensive whereas changing in field definitions takes place only at the server and no *records are downloaded.


Also, when you change it to a calculation, be sure it is set to TEXT at the bottom of the calc dialog and not as default of number.

Link to comment
Share on other sites

This topic is 3808 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.