Jump to content
Sign in to follow this  
cybertaz

'Serial Number' Generation in Portals

Recommended Posts

Alright, have a quick dilemma. Lets say you pull up a record in my database and you click on a portal field which has some options. That portal field is created, than it automatically creates another portal field...and so on. For this single record, I need the portal to give each 'line' and number starting with 1, and continuing +1 with each new record. The problem is, if I create a new record, and begin entering new lines in the portal, it is continuing the numbering from the previous record, but I need to it start over. Look at the example below:

Record One

(portal)

Revision # Comment

-----------------------------------

1 Yum

-----------------------------------

2 Tasty

-----------------------------------

3 Salty

-----------------------------------

and so on. Notice how the revisions are increasing with each portal record. I need them to start over on then numbering which each new record. Thanx!

Share this post


Link to post
Share on other sites

I guess a more simple way of putting it is how do I reset the serial number scheme via a script or something. Thanx.

j

Share this post


Link to post
Share on other sites

quote:

Originally posted by Justin:

Alright, have a quick dilemma. Lets say you pull up a record in my database and you click on a portal field which has some options. That portal field is created, than it automatically creates another portal field...and so on. For this single record, I need the portal to give each 'line' and number starting with 1, and continuing +1 with each new record. The problem is, if I create a new record, and begin entering new lines in the portal, it is continuing the numbering from the previous record, but I need to it start over. Look at the example below:

Record One

(portal)

Revision # Comment

-----------------------------------

1 Yum

-----------------------------------

2 Tasty

-----------------------------------

3 Salty

-----------------------------------

and so on. Notice how the revisions are increasing with each portal record. I need them to start over on then numbering which each new record. Thanx!

Filemaker serial number generation is a simple sequential scheme. It increments them in order of record creation. You need to control the creation via some other method, such as an auto-entered calculation that determines the max value and add +1 to it.

Share this post


Link to post
Share on other sites

if you have specific categories that a portal record can be created for (i.e. Bitterness, Sweetness, etc.) then you may be able to create global fields to hold the current serial numbers for each category and run an "update" script at the end of the data entry process. However, if you have alot of categories, as it stands... my thought process could lead to a very ugly, time consuming option. Hope this helps, if it doesn't...I'll blame it on the Friday night beers!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.