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.

Featured Replies

Hi all!

I am new to the boards. but was told this was the place to come if I want to learn more about Filemaker. I have been using Filemaker since version 4 for basic things, some forms, some invoice-type calculation layouts, inventory management etc. But now I am working on something more involved and I have hit a wall.

Here is my problem. I have a customer who wants a asset management system developed (which is no problem - done a couple of these), but the problem arises when it gets to serial numbers. The customer is a graphics and printing company who inventories printed goods from 1000's of different customers. They would like each customers inventory to have it's own set of serial values.

For example, Company A has printed booklets in stock and printed calendars, Company B has printed booklets, printed calendars, and printed direct mail pieces. My customer would like these items to each have their own unique serial number within a unique serial list.

In other word, company A's iinventory report would like this:

CA001 - booklets

CA002 - calendars

Company B's would looik like this

CB001 - booklets

CB002 - calendars

CB003 - direct mail pieces.

So what I need really is a serial value field that can check against a company name and add one to the last record for that company only, not for the whole database.

I have no idea how to do this. I have tried to tackle it via a script, but my gut says this is a calculated field of some type, but for the life of me I don't know how to define the field. Any help would be greatly appreciated. Thanks!

Wade

You could define a self-join, called ToMe, on CompanyName->CompanyName.

Then script -

Set Field (ItemNumber, 1 + Max(ToMe::ItemNumber))

Set Field Unique Number = CompanyName & numtoText(ItemNumber)

etc.

  • Author

Hey Paul:

Thanks! That worked great as a starting point on a new approach. I appreciate it!

  • 2 months later...

I need exactly the same sort of thing, but I tried this in FileMaker 7 and couldn't get it to work. I got an error that it was expecting an operator. What am I doing wrong?

Oldfogey's script should read:

Set Field [itemNumber; 1 + Max(ToMe::ItemNumber)]

Set Field [unique Number; CompanyName & GetAsText(ItemNumber)]

Create an account or sign in to comment

Important Information

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

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.