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.

Creating a value list that is always the past 7 days?

Featured Replies

Is there a way to create a value list that always shows the current date and

the last 7 days?

I need a short popup menu that users can select from to filter portal results for the current date and the past 7 days.

Several ways....

On startup go to a utility table purge all records and then create 7 records starting from today - 7. Then create a value list that shows all values from the field. This wouldn't require the table to be tied to every TOG.

You could create a utility table that has a record for each date for the next few years, then a relationship that does a range filter based upon a global field that you set at startup. Base your value list off the relationship.

Use a plugin that allows you to create a value list from a field/variable.

Edited by Guest

If you create a global date field and on your startup script, you set it to the current date, you can try this:

A repeating calc with date result (7 reps)

gCurrentDate - 7 + Get ( CalculationRepetitionNumber )

Then on your value list, you can specify the repeating field.

  • Author

Awesome! Thanks.

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.