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.

find

Featured Replies

hello,

i have been trying to do this but still in vain.

i have a field(date format) with the date of expiration. what i want is to have a script which will find data and show them on screen of those expiring 30 days from current date.

any help. thank you

Try this script:

Enter Find Mode[]

Set field [exp date; Get ( CurrentDate ) + 30 ]

Perform Find[]

  • Author

thanks for the reply. i tried what you suggested:

Set field [ ("EXPIRATION"); Get ( CurrentDate ) + 30 ]

it is giving me an error "an operator is expected here"

help!

Hi

you have to enter the name of your field, without (" and "), something like:

Set field [ YourTable::EXPIRATION; Get ( CurrentDate ) + 30 ]

  • Author

i am sorry for the confusion. the above script works (latest post). but what i really want is all data that will expire in 30 days from present day and not only those expiring exactly 30 days from present day which the present script does. thanks again.

You will need to use global fields to enter the start and End dates for the Range, and then perform a find on that range.

g_start (text, global storage)

g_End (text, global storage)

Script is:

Set Field [ YourFile::g_Start; Get ( CurrentDate ) ]

Set Field [ YourFile::g_End; Get ( CurrentDate ) + 30 ]

Enter Find Mode [ ]

Set Field [ YourFile::Expiration; YourFile::g_Start & "..." & YourFile::g_End ]

Perform Find [ ]

HTH

Lee

Or simply:

Enter Find Mode [ ]

Set Field [ YourTable::ExpirationDate ; Get ( CurrentDate ) & ".." & Get ( CurrentDate ) + 30 ]

Perform Find [ ]

  • Author

thank you very much :P

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.