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.

Can a script dynamically populate a report?

Featured Replies

  • Newbies

I'd like to create a report that shows the future value of a savings account in yearly increments.

Example:

2010 | $100.00

2011 | $105.00

2012 | $110.10

The parameters of the valuation like starting balance, interest rate, and how many years to project are in a table. I'd like to have a the line items in the report be populated by the database dynamically as the report is run.

I'm thinking I could do this with the use of a script that populates a separate table then using this table to base the report from, but I don't have enough experience to know if it is the best way to do it.

Does anyone have a better approach?

That sounds like a good approach. A "temp table" "reporting table" or "scratch table" are terms I've heard for such an approach. Tag each record with a unique constant such as a timestamp (captured at the start of script into a $var), so that you can be sure that you are reporting on the correct set of records.

Tag each record with a unique constant such as a timestamp

I would think the AccountID might be a better choice?

Another option is to forgo the script and do the report directly in the account record, using either a custom function or repeating calculation fields. However, it depends on how this report is going to be used.

I think AccountID might pick up "old records." Obviously, cleaning out this table after you're thru is ideal.

Well, a timestamp might pick records created by another user for another account...

Anyway, I think one should delete related records before creating new ones. Again, it depends on how this is going to be used, but I don't see the related table as "temp" or "scratch": as long as the basic data doesn't change, the records continue to reflect the future value of the account in the projected year and there's no need to delete them.

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.