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.

Sorting portals by a field in a table related to the related portal table

Featured Replies

  • Newbies

Hi all,

I am desperately trying to get the items in a portal sorted properly but has so far failed utterly.

I am trying to keep track of a number of images that are used in a number of documents, and therefore I use a Documents layout containing a portal showing the names of the images that are related to each document. And I would like to have this list sorted alphabetically.

Each image can be used in several documents, so I am using a "link" table that connects the (unique) document ID with the (unique) image ID. Thus, my database consists of three tables:

- one for documents

- one for images

- the link table that connects the document with the image

I have tried everything (I think), but the items still seem to be listed in the order they were created:

- I tried to sort the relationship between the link and the image tables by the image name

- I tried a number of other ways of sorting the relationships as well

- I added a calculation field to the link table that "copies" the image name from the Image table, and then selected "Sort portal records" for the portal to sort by this calculation field

- In the portal, I replaced the Image name field from the Image table with the calculation field from the link table

- I randomly clicked wherever could, just to see if it made any difference...

Everything displays nicely, except that the bugger won't sort. Any ideas would be appreciated - I have attached an example with this post.

SortTest.fp7.zip

  • Author
  • Newbies

Well, sometimes it helps to just to ask for help...

I found that my calculation field was set to "Numerical", and when I changed it to "Text", it suddenly worked.

Or maybe it was the random clicking that actually helped..

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.