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

Simple problem baffling me. Have a file with 20 layouts. I have a field called "View all layout names" and it is a calculated field which uses the LAYOUTNAMES(fieldname) function. It is blank and is not showing the layoutnames. I have tried every combination of indexing (on, minimal, all), I just can't get it to carry out an index and display the layout names. This was originally a FM6 file. When I create a small test file from scratch in FM8 the layout names do appear. Yet when I do the same in my other file....blank field. Is there any way of forcing an index to be made of the layout names ? I have tried deleting the field and re-defining it, to no avail. Am I missing something obvious ? Thanks for any help offered. Allan

Please copy your calculation and paste it here. Also, what is the exact name of your file?

  • Author

Here is the calculation: LayoutNames ( "S1andS2PI" )

File is called S1andS2PI. I have set calculation result as text and for storage options tried every possible combination.

The calc should be unstored (if you want it to update when new layouts are added).

The result should be set to Text.

If it still doesn't work, try this syntax:

LayoutNames ( Get (FileName) )

Another thing worth trying: clone your file (Save a Copy As.. > "clone (no records)") and see if it works in the clone.

  • Author

Calc is unstored and result set to text.

Using your suggested syntax LayoutNames ( Get (FileName) )

produces an invalid Get function parameter.

No joy with cloning the file either...same result, blank field.

Thanks for your suggestions, any more worth trying ? Allan

Can you post your clone? If you like, you can delete any non-essentials - a single table with a field or two and a couple of layouts should suffice.

  • Author

Here it is.

The account name and password are both [color:red]add

Thanks

_Clone.fp7.zip

Does this one work over there?

Notes:

1. Your calc was NOT set to be unstored.

2. When you clone a file, the name is changed, so you need to change it in the calc too (unless you're using the Get (Filename) syntax).

3. The first character of the file name was a space - this could be the problem with your original file as well.

Cloned.fp7.zip

  • Author

Works perfectly now, I misunderstood your suggestion to use the GET(FILENAME) function. I took you to mean I was to use the actual filename in inverted commas as in GET("S1andS2PI"), which is why it did not work.

Many thanks Comment for your assistance, it is much appreciated.

Allan

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.