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

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

Recommended Posts

  • Newbies
Posted

Is there a way to delete all entries in a repeating field using scripting? I've tried, and have only been able to delete the first entry.

Help!

D.T.

Posted

quote:

Originally posted by DirtyThief:

Is there a way to delete all entries in a repeating field using scripting? I've tried, and have only been able to delete the first entry.

Help!

D.T.

Not with a single step. You could delete all repetitions of the field using the Set Field command for each repetition.

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Senior Filemaker Developer

http://www.inthescene.com

mailto:[email protected]

=-=-=-=-=-=-=-=-=-=-=-=-=

  • Newbies
Posted

quote:

Originally posted by DirtyThief:

How would I script that? Is there a specific calculation to tell it to go to the next repetition?

No.

Workaround is to create a second database with an empty repeating field(same number of repeatitions) and do an import(with selected "Replace records" option)into the repeating field you want to clear.In this case you nees to have the same number of found records in both databases(scriptable).

Posted

quote:

Originally posted by DirtyThief:

How would I script that? Is there a specific calculation to tell it to go to the next repetition?

Set Field (FieldName, 1) = ""

Set Field (FieldName, 2) = ""

and so on...

------------------

=-=-=-=-=-=-=-=-=-=-=-=-=

Kurt Knippel

Senior Filemaker Developer

http://www.inthescene.com

mailto:[email protected]

=-=-=-=-=-=-=-=-=-=-=-=-=

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