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

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

Recommended Posts

Posted

I'm wondering why the clear function only clears the fields displayed in the current layout.

I want to clear all fields but only the fields displayed in layout 1 is cleared and not in layout 2, although in my script, I wrote

clear [field1]....clear [fieldn] for all my fields.

Any thoughts? Is this normal? Should I use cut, or select field, ""?

Posted

Clear is like Cut and Paste. The field it operates upon must be present on the current layout for the script step to work. A much better to way is to use the Set Field (Field, "") script step. This step does not require a field to be visible on the current layout to work.

-bd

Posted

Hi,

From LifeOak: "A much better way is to use the Set Field (Field, "") script step."

Yes, and not only that, it's also faster. In a loop with 5000 records this gives a very important boost! So, better never use the Clear-script again.

Erwin

Posted

There is a bit of a trade-off. For a few fields, multiple replace functions can be faster for a large number of records. For a lot of fields, the looping approach is faster. You just have to do some testing. I have scripts which perform some replaces and some looping.

-bd

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