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

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

Recommended Posts

Posted (edited)

Let's say I have a found set of say 50 records, I want to set serial numbers for these records starting with $initialpos

So I put the "Replace Field Contents" step into my script.

I select "Replace with Serial numbers" - in initial value I put $initialpos, and in "increment by" I put 1.

The script actually puts the text "$initialpos" into the first record. Subsequent records are "$initialpos1, $initialpos2" etc.

How can I get this script step to work like it should?

If I have to page through every record and set script-calculated serial numbers I will, but I hope there's a better solution than that!

Thanks!

P.S The one thing I did try was putting double quotes around the variable name. No joy. Still didn't work.

Edited by Guest
Posted

I think you'll have to use the calculated result option instead:

$initialpos + get( recordNumber) - 1

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