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

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

Recommended Posts

Posted

Hello.

I would be grateful if someone could please help me....

I have a database called "Users.fp5" and in ScriptMaker I have a script called "TimeIn", which only works for the current record.

How do I use ScriptMaker to repeat that script for all the records in my database?

Is there some way of saying "perform script for all records"?

Thank you for all your help!

Posted

Depending on what exactly you are doing, you can either use the replace command to set the value of a field in all records at once with the result of a calculation, or you can put a loop in your script. The loop is more general so that's what I'll describe. The script steps are as follows:

code:


Go to Record/Request[first]

Loop

# Put your existing script steps

# that operate on the current record here

.

.

.

# Now go to the next record and repeat

Go to Record/Request[next][exit after last]

End loop


  • 2 weeks later...
Posted

Whether you use the "Replace" command or the loop, make sure you have "Find All" script step before the "Replace" or "Loop"; otherwise, you will only perform the actions on the current found set.

Good Luck

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