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.

Calculate date range to show next due date graphic?

Featured Replies

I have been struggling with this one for about 8 hours! Please help...

I have a container field that is on a portal row. There is a field on the portal row that has a transaction date. These dates are not always the 1st of the month but the 1st of each month is when tuition is due. I think I need to round each date entry to the first of the month for the calculation for starters. The first line of the script below seems to work. Also I have named the date field "Month" I hope that is not a problem.

What I need is a calculation that will show a global container field when today’s date is 10 days away from the end of the month.

To better describe the scenario...

Dec tuition is on a portal row

Nov tuition is on the row below it

I have gDue on the portal row so that the current month's tuition in the portal row will have a little "Due" graphic on it. The tricky part for me is that I need it to show on the December portal row starting 10 days before December 1st.

Then it would show on the December row each day until today is 10 days before Jan and then it would show on the January row.

Thanks in advance for any ideas you may have. The last failed attempt I came up with is below.

GetAsDate(Date(Month(Month); 1; Year(Month))) = GetAsDate(Date(Month(Get(CurrentDate))+1; -10; Year(Get(CurrentDate))))

; gDue ;nothing)

~ Tyler

Hi Tyler,

Try:

Case ( Get ( CurrentDate ) ≥ YourDueDate - 10 ; Flag )

HTH

Lee

  • Author

Perfect!

Thanks a million Lee. I knew I had my head wrapped around that one incorrectly!

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.