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.

Portal Sorting driving me crazy!!!!!

Featured Replies

I have a portal setup for a card collectors DB. I have it setup with different colors to reflect the different options the user has to pick from such as 'own', 'trade', & 'sold'.

When the user selects a new record for the portal I want the new record to be first in the portal.

I want the sort to be 'own' first, 'trade' second, and 'sold' third as they are listed in the portal. The 'own', trade',& 'sold' are listed on the form as checkboxes, so they either have a value of '1' or '0, zero'. I have tried setting up the order through sort portals, but it never comes out right. Is there something else that would setup the portal to list the cards in this order? Another note is that when a card is selected as 'own' it can also have a check for 'trade' since the user may want to trade this card.

I thought I could setup the portal order as 'own', 'trade', & 'sold', but I get mixed results when FM lists the order.

thanks,

Brewser

Could you attach your file so that we can see what you have acccomplished so far.

I'm on a lecture right now ( a little bit unfocused) but my first reaction is that you're doing the right thing.

Hi,

Try converting these 3 options to one calculation.with a result of 1,2 or 3 depending on your 3 choice results (1 for own, 2 for trade and 3 for sold). Then use this calc as the sort key of your relationship.

  • Author

Hello,

Thanks for the info. Right now I just have the fields setup as checkboxes with 1 or 0 as the value. Would you create a global field with with a case formula to do the sort?

Hi again,

Choose(own;Choose(trade;3;Choose(sold;1;3)))

or

If(not IsEmpty(own and sold and trade);Case(own;1;trade;2;sold;3);0)

  • Author

I guess I answered my questions in the last post. Thanks for your help. This works great.

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.