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.

sort based on repeating field

Featured Replies

I have a repeating field that contains an ID but they can be entered in a random order like 2, 5, 6, 1. Then a portal to shows me related record for each ID number. But the portal only sorts in oder so it would be 1, 2, 5, 6 or 6, 5, 2, 1.

How can I force the portal to sort in the same order that the id number are entered in the repeating field. Or can I have the repeating field automatically sort itself?

If you want to keep the sort as it is in the repeating field, then create another calculated repeating field to base the sort upon.

For example

Let([

R=Get (CalculationRepetitionNumber )];

Right("0000"&R&YourRepNumber;4))

Forgot to say. Didn't tried this, so you may want to sort on a Value List of these calculated IDs.

It would be better to get rid of the repeating field.

  • Author

I would love to get rid of the repeating field but I haven't figured out how to display what I need to without it.

I need a way to easily show related records by typing an ID.

Can you elaborate? It sounds like you need a simple global to serial relationship.

  • Author

more details.

the solution is a many-to-many I have one table we can call Main it has fields for Main ID, USER ID, and Device ID and a portal to show me related info.

The Users table has a USER ID and related_device_ID and a bunch of stuff related to a person. The Device table is just about the same DEVICE_ID related to USER ID. (there are several more tables that are unrelated so i wont bother). A user can use one or many devices and a DEVICE can have one or many USERS

In the main table I can assign a user to a device or devices. The problem I am struggling with is when in the Devices table assigning it to multiple people. What is working for me so far is having a the USERID in the DEVICES table be a repeating field so i can enter more than on USERID and have each user show up in a portal.

maybe i am thinking about it wrong but the right way hasn't come to me yet. But what i need is to see is every user that is assigned to a device in the DEVICE table.

I hope that make sense.

grumbachr

It does not sound as if you have a join table, which would be very useful in this type of situation. Do a search for +join +table +many-to-many on this site for more info.

Yes, you need a join table with DeviceID and UserID. You could then even have other fields like start date or expiration date, etc.

  • Author

thanks for the help.

the join file was a little (okay a lot) confusing but not that I've finally worked through it and figured it out it makes complete sense.

again thanks for all your help.

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.