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.

Value list sorting issue

Featured Replies

Hi all

I have a "calendar" table which includes a date field (there is an entry for every date in a year)

It also includes various calculation fields relating to that that date.

One of the calc fields is a Short month/year field - ie so that 1/10/2009 would be "Oct 2009" (as would 2/10/2009)

I have a conditional value list of the short month names year field (based on going back a calendar year from todays date)

BUT because the short month name/year field is a text field it sorts alpha - I would like it to sort in month order and must confess to being a bit stumped

I have tried sorting the relationship but that didnt make any difference

Any help most welcome

TIA

The values in a value list built from values in a field (whether or not that field is related) will always be displayed in alphabetical order.

What I would suggest is that you change the calc field so instead of returning "Oct 2009" it returns "2009-10 (Oct 09)".

The calculation for which would be:

year(myDate) & "-" right ( "0" & month(myDate) ; 2 ) & " (" & left(monthname(myDate);3) & " " right(year(myDate);2) & ")"

It isn't as elegant as we might hope, but it sorts in the right order and does at least display something meaningful to the novice user. People do get mighty confused when April comes before December, which comes before February :)-)

Sorry it doesn't really answer your question the way you might have hoped, but at least it should ease the head-scratching...

James

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.