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

  • Newbies

Hi,

I am a beginner filemaker user and I use FMP 11 Adv. I have a problem using script to generate serial number. I am required to generate a serial number with this format: YYYYX-PPPPPPP-AA ,

YYYY is the year

X is the month code, the code for example:

Jan-Mar = A

Apr-Jun = B

Jul-Sep = C

Oct-Dec = D

PPPPPPP is the project number

AA is the number of the time the invoice is created, starting from 01

How can I implement this requirement?

Thank you very much for your help.

provide this serial number is for user side information and not relied on for a matching key value in a relationship I would say this will work:

Let ( [

ts = Get ( CurrentHostTimestamp ) ;

yyyy = Year ( ts ) ;

m = Month ( ts ) ;

x = Case ( m ≤ 3 ; "A" ; m ≤ 6 ; "B" ; m ≤ 9 ; "C" ; m ≤ 12 ; "D" ) ;

aa = Right ( "00" & hour ( ts ) ; 2 )

];

yyyy & x & ProjectNumber & aa

)

  • Author
  • Newbies

Yes, the serial number is for user side only, where do I have to specify this script? Do I have to create another field for this serial number? and why did you put aa = Right ( "00" & hour (ts) ; 2) ?

thanks

  • Author
  • Newbies

okay, I've already figured it out. Thanks for your info :)

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.