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

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

Recommended Posts

Posted

I am over thinking this and it has me so frustrated... I have a database that needs to be kept in "order" with each record needing to be sorted. The user may not always enter the data in order and so I am tracking each record with a serial number. When the user need to "insert" a line above or below they use one of two scripts. The scripts works fine but they are long and I know there is an easier way and it's just not hitting my brain. Any suggestions on how to better manage this would be great. I would love to streamline the process and eliminate mistakes.

FMP.png

Posted

One thing. If you insert a record between 2 others, you only need to renumber those above it in the sort order. I would use a Loop, with an incrementing counter, as Replace Field Contents doesn't let you programatically set the start number. This would save a lot of time if they insert it near the end, which is likely.

For a new record, wouldn't the next number just be Max ( self_Constant::Sort_num ) + 1, which could auto-enter. It's pretty slow with a lot of records.

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