Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

'Serial Number' Generation in Portals

Featured Replies

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!

  • Author

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

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.

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!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.