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

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

Recommended Posts

Posted (edited)

Hi all,

Please be gentle I am a newb!

I need to generate a report that only shows me clients that have a job booked in within the next seven days.

How do I set up a script to do this?

Thanks in advance!!

Edited by Guest
Posted (edited)

Enter find mode() /* pause unchecked

Set Field(datefield; get(currentdate)& "..."& Get (Currentdate)+ 7)

Or set up 2 new date fields:

Startdate

enddate

/* Of course you need to have these fields on the layout and need to input the dates prior to running the script. You could make them a calc field. StartDate = Get(Currentdate); enddate=get(currentdate + 7) */

Set Field(datefield;startdate &"..." & enddate)

Perform Find()

Edited by Guest
  • 4 weeks later...
  • Newbies
Posted

Hi

I'm jumping on the train right here, as I have a similar question:

I want to see all entries which are older than 180 days.

I tried the following script, but without success:

Action: Find records

find criteria: Date﹝≤(//-180)﹞

No success, all of the entries appear (even these younger than 180 days.

Is it possible like this?

Thanks in advance for any comments.

Harry

Posted

The "//" unfortunately doesn't work like that.

You'll need a script more like aldipalo shows, with something like:

  Set Field( dateField; "<=" & Get(CurrentDate) - 180 )

as your dynamic find criteria.

This topic is 6192 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.