Jump to content

Scripting in Repeating Fields


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

Recommended Posts

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]

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

Link to comment
Share on other sites

  • Newbies

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).

Link to comment
Share on other sites

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]

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

Link to comment
Share on other sites

This topic is 7787 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
 Share

×
×
  • Create New...

Important Information

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