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.
Juggernaut

Featured Replies

Hi,

 

I would like to put the next serial increment value into a message box but I get no value when I use ….

 

"Your next value is " & GetNextSerialValue ( Get ( FileName ) ; User::UserID )

 

I don't want to use it, just reference it in a message box. 

 

Since the above function yields no value in a message box, is there another way ?

 

Thank you.

 

 

Tom

 

 

"Your next value is " & GetNextSerialValue ( Get ( FileName ) ; User::UserID )

 

You need to pass the field name as a literal expression.

 

Did you read the documentation?  :sleep:

  • Author

Eos,

 

So ...

 

I put the field in quotes … :-) Gotcha !! :-)

 

Thank you.


Eos,

 

GetNextSerialValue ( Get ( FileName ) ; "User::UserID" )

 

Works perfectly :-)

 

Again, thank you.

 

Tom

Why don't you quote the important part:
 
Important  Literal text parameters such as filenames and layout names must be enclosed in quotation marks. Use quotation marks around field names to indicate the literal string is the parameter (omit quotation marks to indicate the value stored in the field is the parameter).
http://www.filemaker.com/help/13/fmp/en/html/func_ref1.31.34.html#1028995
 
What this means is that your version:

GetNextSerialValue ( Get ( FileName ) ; User::UserID )

looks inside the User::UserID  field for the name of the field to get the next serial value from. You need to use either:
 

GetNextSerialValue ( Get ( FileName ) ; "User::UserID" )

or, preferably (to prevent the calculation from breaking if the field is renamed):
 

GetNextSerialValue ( Get ( FileName ) ; GetFieldName ( User::UserID ) )

Great explanation, Michael.  I believe I have some fields mis-specified this same way.

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.