Skip 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.

Script/Calculation help needed

Featured Replies

  • Newbies

Hello all!

I need to create a calculation or script that will accomplish the following:

I have a TimeSheet file with fields Activity, Time, and Project ID.

The TimeSheet file has multiple entries relating to the same Project ID, and there are multiple instances of each Activity for each Project ID.

I need to find all instances of each Activity for a specific Project ID and then add up the total hours spent on that specific Activity, for that specific Project to create line items in an invoice. I cannot have multiple line items for Design, for instance.... simply a sum of all hours spent on the Design Activity.

Any assistance would be GREATLY appreciated.

Thank You!

First define an calculated field selfIDActivity=ID & " " " Activity.

Then define an self relationship "selfActID" using the above field on both side of this rel.

Finally define all your calcs thru aggregate functions and the above rel, for ex:

timeSpent=Sum(selfActID::time) would yield total time for all records having the current record projectID and activity.

Dj

Be aware that I gave you only the basic idea on how to deal with this problem.

In reality the file you described should be a join file between Project and Task (Activity) dbs.

So one possible solution could be, after defining an relational value list in Projects as use values from field taskID from rel projects (based on projectID), looping on valuelistItems and setting the totals (using an calc similar to one I gave you above) in your report.

Dj

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.