Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Here's what I want to do:

For each record, I want a field in which I enter a number. I want a second field on the layout to keep a sum of all the numbers entered in the first field.

I do not want this sum displayed across every record in the file...I want each record to have its own separate sum.

I know this one has to be easy. Thanks in advance.

You can easily do it from a script but everytime you will have to manually run the script, hence I am trying to find out how you can do it using a calculation field.

Would you like to use a script as a solution to your question?

Edited by Guest

  • Author

Sure, a script is fine. Thanks.

How are the numbers separated in the field? Are you using spaces, commas, semicolons?

The below script should work if the field is a number field. It should give you the right results avoiding any separation character.

Decfine a global field gCount. Assume that the input numeric field is A and output numeric field is B.

Your script would look like:

Set Field[gCount,1]

Set Field[b,0]

loop

exit loop if[gCount>Lenght[A]]

Set Field[b, B + Middle[A, gCount, 1]]

Set Field[gCount, gCount + 1]

end loop

I think you are adding digits, not numbers.

  • Author

Sorry. I think my description confused the issue.

Here's what I have: A very simple database that records work effort. I want the user to locate the record of a particular task and enter the number of minutes he worked on the task (formatted as a whole number, not as time) in a field. Every time he does this, I want another field to display the total number of minutes spent on the task. So that field should increase every time minutes are entered. The user could be entering 3, 4, 19, 27...whatever.

Much better to create a portal into a related file, so that every entry creates a new record. Summing the portal data is easy using the Sum() function.

Is not quite clear how your file looks like, but i think you could use a self-join relationship to aggregate the data of diferent records in the same file.

ZZ

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.