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

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

Recommended Posts

Posted

I am developing a DB that has a To Do/Reminder list. On start up it checks the records to see what is "Due Today", "Past Due" or "Not Due Yet" and displays this in the "satus" (I know, a typo and have not fixed it)field. Script follows:

Go to Layout [To Do main]

Show All Records

Go to Records/Request/Page [First]

Go to Field ["satus"]

Clear[select]

Go to Field ["Date Due"]

if ["date due = Today"]

Go to Field ["satus"]

Insert Text [select, "Due Today"]

Go to Field ["Date due"]

Else

if ["Date due < Today"]

Go to Field ["satus"]

Insert Text [select, "Over Due"]

Go to Field ["Date due"]

Else

if ["Date due > Today"]

Go to Field ["satus"]

Insert Text [select, "Not Yet Due"]

Go to Field ["Date due"]

End If

End IF

End IF

My problem is I want it to go through every record and preform the above, but I have had no success. I have tried Loop and still can not work it out, as it endless loops on the first or second records.

Please help

Trevors

Posted

Hi,

Try this...

Go to Layout [To Do main]

Show All Records

Go to Records/Request/Page [First]

Go to Field ["satus"]

Clear[select]

Go to Field ["Date Due"]

if ["date due = Today"]

Go to Field ["satus"]

Insert Text [select, "Due Today"]

Go to Field ["Date due"]

Else

if ["Date due < Today"]

Go to Field ["satus"]

Insert Text [select, "Over Due"]

Go to Field ["Date due"]

Else

if ["Date due > Today"]

Go to Field ["satus"]

Insert Text [select, "Not Yet Due"]

Go to Field ["Date due"]

End If

End IF

End IF

Loop

Go to Records/Request/Page [Exit after last, Next]

Go to Field ["satus"]

Clear[select]

Go to Field ["Date Due"]

if ["date due = Today"]

Go to Field ["satus"]

Insert Text [select, "Due Today"]

Go to Field ["Date due"]

Else

if ["Date due < Today"]

Go to Field ["satus"]

Insert Text [select, "Over Due"]

Go to Field ["Date due"]

Else

if ["Date due > Today"]

Go to Field ["satus"]

Insert Text [select, "Not Yet Due"]

Go to Field ["Date due"]

End If

End IF

End IF

End Loop

The important bit is when you place your loop step in, to click on the checkbox which says Exit after last.

Hope this helps

Ed

Posted

Sorry, I meant...

The important bit is when you place your GO TO RECORD NEXT step in, to click on the checkbox which says Exit after last.

Ed.

Posted

Hi,

Aside from this script, why don't you use calculation for this status field :

Status = Case (date<Status(CurrentDate), "Overdue", date = Status(CurrentDate), "Due Today", date>Status(CurrentDate), "Not Yet Due").

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