Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7271 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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?

Posted

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.

This topic is 7271 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.