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

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

Recommended Posts

Posted

Found this script in FM Help and I'm trying to implement it into my DB.

In the following example, you create a script to clear the contents of a field with five repetitions

count=1

Loop

Clear [select;FileName::FieldName[count]

count=count+1

Exit Loop If [FileName::count=5]

End Loop

What is [count] at the end of the Clear script?

What goes in here, the word count, the value 1? And how do I get it in there, does it go in the Repetitions box?

Also count=count+1, there is no script step for count that I can find, I found it in the Calculation box, but how do I get it into a script step?

Yes, I know you all hate Repeating fields, and I should be using Relationships and Portals, but this is a simple 1 layout design, with no extra relationships or tables. I just want to be able to clear the repeating fields with 1 script.

Many Thanks

Posted

Steer clear of repeaters, with your skill level is it called:

Go To Related Record[Found Set]

Delete All Record[No Dialog]

--sd

Posted

I know you all hate Repeating fields

I do not hate repeating fields, only the abuse of them deliberately violating relational concepts!

--sd

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