Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Record ID properties in FM5

 
   Database Forums (Home) -> FileMaker RSS
Next:  consecutive tables  
Author Message
bjaynes

External


Since: Dec 12, 2006
Posts: 6



(Msg. 1) Posted: Mon Oct 27, 2008 7:18 am
Post subject: Record ID properties in FM5
Archived from groups: comp>databases>filemaker (more info?)

Hello,
The Status(Current Record ID) function appears to return an
incrementally larger number each time a record is started.Is that 100%
reliable, that is, that is always a larger number? I could really use
this in a sorting problem.
PS Haven't been here for a while. Immediately cheering to see Harry
and Lynn here.
Thanks much,
Bill

 >> Stay informed about: Record ID properties in FM5 
Back to top
Login to vote
Helpful Harry

External


Since: Jun 23, 2003
Posts: 589



(Msg. 2) Posted: Mon Oct 27, 2008 4:25 pm
Post subject: Re: Record ID properties in FM5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
"bjaynes@montanaport.net" wrote:

> Hello,
> The Status(Current Record ID) function appears to return an
> incrementally larger number each time a record is started.Is that 100%
> reliable, that is, that is always a larger number? I could really use
> this in a sorting problem.
> PS Haven't been here for a while. Immediately cheering to see Harry
> and Lynn here.
> Thanks much,
> Bill

The RecordID is basically an internal field that FileMaker uses to keep
track of individual records, so an unique number is given to each
record when it is created.

Technically you can use this to identify records, but there is no
flexibility (eg. you cannot change this "field"). The RecordID is also
not static. If you import the records into another database (eg.
importing from a corrupt file into a fresh copy), then the record will
not necessarily get the same number.

It's usually much better to define your own "ID" field and use the
Auto-Enter Serial Number option.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)

 >> Stay informed about: Record ID properties in FM5 
Back to top
Login to vote
Lynn Allen

External


Since: Aug 13, 2007
Posts: 47



(Msg. 3) Posted: Mon Oct 27, 2008 9:07 pm
Post subject: Re: Record ID properties in FM5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-10-27 07:18:02 -0700, "bjaynes@montanaport.net"
said:

> The Status(Current Record ID) function appears to return an
> incrementally larger number each time a record is started.Is that 100%
> reliable, that is, that is always a larger number? I could really use
> this in a sorting problem.
> PS Haven't been here for a while. Immediately cheering to see Harry
> and Lynn here.

Well, I was gone, then I came back. Smile

Yes, Record IDs are always larger in creation order. I haven't tested
whether they sort by number or as text, which are different.

As Harry points out, Record IDs are not persistent. If you base a
creation sort on them, then sort by another field and import into a
clone, your creation sort is screwed.

Try this: Append a serial and a creation timestamp into a number
string, Timestamp first. Then sort by that field. It will persist
through all imports and be unique.

In fact, that's what I use for my keys. I don't need to reset the
serials after import, and the timestamps always ensure that even
repeated serials don't create a duplicate key.
--
Lynn Allen
--
www.semiotics.com
Member Filemaker Business Alliance
Long Beach, CA
 >> Stay informed about: Record ID properties in FM5 
Back to top
Login to vote
bjaynes

External


Since: Dec 12, 2006
Posts: 6



(Msg. 4) Posted: Tue Oct 28, 2008 6:36 am
Post subject: Re: Record ID properties in FM5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Harry,
I use the Auto Enter Serial option in other situations
but in this case, a more robust number field would
be useful.
If I have a number field Auto-Enter Status(Current RecordID),
wouldn't it, thereafter, be just a static number field?
Bill
 >> Stay informed about: Record ID properties in FM5 
Back to top
Login to vote
Helpful Harry

External


Since: Jun 23, 2003
Posts: 589



(Msg. 5) Posted: Tue Oct 28, 2008 4:25 pm
Post subject: Re: Record ID properties in FM5 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
"bjaynes@montanaport.net" wrote:

> Thanks Harry,
> I use the Auto Enter Serial option in other situations
> but in this case, a more robust number field would
> be useful.
> If I have a number field Auto-Enter Status(Current RecordID),
> wouldn't it, thereafter, be just a static number field?
> Bill

That would work, as long as when importing into another database you
remember to turn OFF the perform Auto-enter options. Other than not
being able to reset the counter, I can't really see why this would be
"more robust" than a normal Serial Number Field though.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
 >> Stay informed about: Record ID properties in FM5 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
record count - hi I've not been filemaking for a while. I'm fiddling w my finance db set up a few years ago fr scratch w FM7. It works ok, but tweaking it is always a bit hair-raising. How do i do the following simple-sounding thing: ....a field showing the number o...

Related Record in Portal - I have a portal. I put a "Clear" button over the field "Customer Name" I attached the script "Go to related record" to the button. Why does it not go to the correct related record each time. It seems to only work if I a...

Related Record Creation - Well, I decided to make a project tracker that tracked what I actually needed, rather than edit a template. The Project layout: Lists Project information on the left Task information for that project on the right (from a related "Task" table)....

Logging Deleted Record - Is there a way to log, maybe to a global field, when a record has been deleted from a database and which user deleted the record? In Filemaker 8. -- NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth

Saving one Layout per record? - I have a severe problem. I am a complete newbie to Filemaker. My task was to modify an existing fm database to suit our needs. The database was meant to be for inventorizing our computers. Now we want to inventorize all our stuff with it. So I had to..
   Database Forums (Home) -> FileMaker All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]