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.

How to identify a range of dates in a script?

Featured Replies

I am about wiped out trying to figure out the easiest way to do this. Here is what I am trying to accomplish.

I have a layout that is for scheduling appointments and I want to view dates that are available by viewing the schedule from todays date, on forward. I want the user to find open dates even if they are scheduled up to 6 months later.

They view the schedule in a columnar report that lists dates/times.

How can I setup a script to where when they click a button, that it will run the script and show all dates/times that are scheduled and not leave any out and display the results in a columnar report?

Many thanks!

Chris

How about

Allow User Abort [Off]

Set Error Capture [On]

Enter Find Mode [ ]

Set Field [datefield; ">=" & Get(CurrentDate)]

Perform Find [ ]

If [Get(FoundCount)]

Go to Layout [report]

Else

Show Custom Dialog ["There are no scheduled dates for today or afterward."]

Show All Records

End If

  • Author

The Set Field line appears to be having some problem determining the current date with future appointments that are entered. ScriptMaker sets the line up as

Set Field[Appointments::Apptdate; " > = "& Get ( CurrentDate )]

Is the format of the line, the problem, or do I have some other consideration to look at?

You need to remove the spaces around >= or use the 'greater than or equal to' symbol located in the Operators list, or the find will fail due to invalid criteria.

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.