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

From what I am reading, this may be impossible or at least improbable.

I have a table of status made up of the following: status_ID;status_active;status_sort;status_text

It is related to a contacts table via the status_ID in a 1 to 1 relationship (i.e. each contact can have 1 status).

I am storing the status_ID value in the Contact table.

My question:

I would like to be able to keep a user from selecting an inactive status from a popup list and I would like the values to be sorted by the status_sort values.

I have previously programmed in MS Access, and creating a list this way is somewhat trivial using a query to sort values.

FMP doesn't seem to allow for a Value List to be created by a script or calculation.

I tried using a filtered portal sorting by status_sort and filtering by status_active, but it did not function correctly. Once an inactive selection is made, the user can no longer select anything from the value list. Additionally, the values are sorted by the text, not the status_sort (see attached file).

Is there any way to pull this off?

Thank you.

status_sort.zip

From what I am reading, this may be impossible or at least improbable.

I have a table of status made up of the following: status_ID;status_active;status_sort;status_text

It is related to a contacts table via the status_ID in a 1 to 1 relationship (i.e. each contact can have 1 status).

I am storing the status_ID value in the Contact table.

My question:

I would like to be able to keep a user from selecting an inactive status from a popup list and I would like the values to be sorted by the status_sort values.

I have previously programmed in MS Access, and creating a list this way is somewhat trivial using a query to sort values.

FMP doesn't seem to allow for a Value List to be created by a script or calculation.

I tried using a filtered portal sorting by status_sort and filtering by status_active, but it did not function correctly. Once an inactive selection is made, the user can no longer select anything from the value list. Additionally, the values are sorted by the text, not the status_sort (see attached file).

Is there any way to pull this off?

Thank you.

I'm not sure exactly how to sort the value list based on the sort field. I did however filter out inactive statuses. The database is attached. I added another field to the status table and another table occurrence. Also, an opening script.

status_sort.fp7.zip

  • Author

I did however filter out inactive statuses. The database is attached. I added another field to the status table and another table occurrence. Also, an opening script.

Certainly a creative solution.

I'm not sure I see the purpose of the opening script. The global field value will not change and will not be displayed to the user at any point. Also, I have more than one value list that needs this functionality in the real database, so it would be nice to make this a truly global solution.

Certainly a creative solution.

I'm not sure I see the purpose of the opening script. The global field value will not change and will not be displayed to the user at any point.

The data in global fields gets deleted whenever the file is closed, hence it needs reset every time the database opens.

Also, I have more than one value list that needs this functionality in the real database, so it would be nice to make this a truly global solution.

Hopefully this solution helps out some things.

The data in global fields gets deleted whenever the file is closed

Not really. A global field is reset to its default value - i.e. the value entered when the file was last opened in single-user mode. You could have also used an unstored calculation field = 1.

Here's yet another way to do the same thing:

status_sort2.zip

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.