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

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

Recommended Posts

Posted

You can change sno to a calculated field (unstored calculation) instead of a text field with auto entered calculation.

However, DO NOT do this if the field is used for any other purpose than a user display.  If it changes with sort order or found set, it is useless as data. A serial number, to be valid, must never change. Never use a number derived from Get(RecordNumber) as a serial number.

If sno is an abbreviation for serial number, I suggest you change the name to dno for display number, and do not under any circumstance use it as a serial number.

  • Like 1
Posted

hello,

I think if you are going to delete records then there will be gaps in your serial numbers.

I don't know how to solve this, sorry,. But I am sure it is doable, but pretty complicated. Maybe others can give an idea.

What Doughemi is saying in his reply is : Make your serial number field a calculation field and use the Get(RecordNumber) function.

Like this :  Sno = Get(RecordNumber) [ file is calculated field with result set to be number].

Hope clear.

rgds

Kevin

Posted
19 hours ago, dezkev said:

What Doughemi is saying in his reply is : Make your serial number field a calculation field and use the Get(RecordNumber) function.

He is saying one more thing:

On 10/07/2016 at 6:45 PM, doughemi said:

You can change sno to a calculated field (unstored calculation) instead of a text field with auto entered calculation.

 

And I am saying that you probably don't need such field at all: just insert the record number symbol onto the layout:
http://www.filemaker.com/help/15/fmp/en/#page/FMP_Help%2Finserting-variables-on-layout.html

 

Note that both methods will number the found set. Omitting a record will renumber the remaining records same as deleting a record would. And sorting the records will renumber them to reflect the new sort order.

  • Like 1

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